Find the total credits of all classes offered by each department.
return department ;return classes offered by #1 ;return credits of  #2 ;return sum of #3 for each #1
['select', 'project', 'project', 'group']