I do not think @relation directive can achieve it. You will have to use @resolver directive, define a User Defined Function (UDF) which would accept an argument of list of drivers, has paginated:true as you want to see the list of cars to be returned. This UDF could internally check for the condition cars driven by all drivers in the given list of drivers using user created Indexes.