Find the total credits of courses provided by different department.
return departments ;return courses of  #1 ;return credits of  #2 ;return sum of  #3 for each #1
['select', 'project', 'project', 'group']