Sample Query to Generate Averages