Implement Query Parser and test case.