rewrite query (no query parsing)