Support referencing an alias in the GROUP BY and ORDER BY clauses