Add support of subqueries