Find the number of pets for each student who has any pet and student id.
return students ;return #1 who  have  any pet ;return pets of  #2 ;return number of  #3 for each  #2 ;return student  ids of  #2 ;return #4 ,  #5
['select', 'filter', 'project', 'group', 'project', 'union']