Filtering data and saving query results

Filtering data and saving query results