Using Results of SQL AVERAGE: Example of Filtering Data