added experimental nested conditions support
Merge pull request #26 from bauer01/nested-conditions

queries: added support for nested conditions [closes #14]