ZF-94: Boolean queries

Description

Boolean queries (subqueries) support must be done.

It's also improtant for several other issues.

Comments

Done.