Orthogonal optimization of subqueries and aggregation
Outerjoin simplification and reordering for query optimization