How many times did the Curonians attack Riga before Albert of Buxhoeveden's death?
return the  Curonians ;return times attacked Riga of #1 ;return #2 that are before the  death of Albert of  Buxhoeveden ;return number of  #3
['select', 'project', 'filter', 'aggregate']