What are the greatest and average capacity for rooms in each building?
return buildings ;return rooms in #1 ;return capacities of  #2 ;return highest #3 for each  #1 ;return average #3 for each  #1 ;return #4 ,  #5
['select', 'project', 'project', 'group', 'group', 'union']