We should support queries on embedded elements and collections. The former may be done already, that needs to be checked (not sure about all backends). The latter will require some more general ground works:
Enhance the parser "walker" SPI to notify us of visited joins
Enhance the query loader (or create a new one?) to deal with query results representing several "tables"