derivequery: pass search filter to query