Implemented simple match and negate queries (relates to #3)