dynamic subqueries - macro predicates