parseQuery