query filtering split across variants