rewritten queries