add first query operator: exists
add tests for query module