preliminary support for subqueries