How many groups helped the Lituanians and the Poles defeat the Teutonic knights?
return groups ;return #1 that helped the  Lituanians defeat the   Teutonic knights ;return #1 that helped the  Poles defeat the   Teutonic knights ;return #1 in  both #2 and  #3 ;return number of  #4
['select', 'filter', 'filter', 'intersection', 'aggregate']