Rewritten queries should be wrapped in a ProfileQuery