This has the basic query parser in it that should work for base cases.