Unnesting Arbitrary Queries.
Orthogonal optimization of subqueries and aggregation