jeffjiang: split current mixed QueryRules into three isolated ones