Basic boolean query parsing