How many foreigners came from the three largest groups combined?
return groups ;return foreigners of #1 ;return number of  #2 for each #1 ;return the  three highest of #3 ;return sum of #4
['select', 'project', 'group', 'aggregate', 'aggregate']