How many professors attained either Ph.D. or Masters degrees?
return professors ;return degrees of  #1 ;return #1 where  #2 is  Ph.D. ;return #1 where  #2 is  Masters ;return #3 or  #4 ;return number of #5
['select', 'project', 'comparative', 'comparative', 'union', 'aggregate']