modified queryanalyzer to support taking query from commandline