Properly name the output alias for subqueries