multitype query parser