3 - Google Graphics incl. Aggregate Function

sql statement enhanced to improve performance by using avg() and group
by