Support for nested queries in QueryBuilder.