Allow select statements to be used in scalar subqueries