Ability to dump a subset of records with a query