Indeed Queries solves this, and the beautiful part is that combining Views and tables with queries you can nest this into almost any structure. By nesting I mean a view that uses a query that uses a different view that has its own query. There are several examples in standard using this.
:-)
Happy daxing, Rudi!