Yes, the two Select statements surrounded by parentheses are subqueries, so it wouldn't work within there. You would probably have to create those subqueries in separate sources like you did. I can't think of any other way to do it other than that or re-writing the query, which may not be possible anyway.