Query to apply to collection BEFORE exporting.