Query rewriter - rule by wh words & valid tags