Parentheses around subqueries to collect UNION and INTERSECT correctly