extended query parser for parsing range queries