allow subqueries for filtering