don't generate unneeded query clauses for virtual pages