abstract query representations from QueryParser