Defining relations with the relation view