If only german shepherd puppies are shown, and each image includes at least two puppies.
return puppies ;return #1 that are german shepherd ;return number of  #1 ;return number of  #2 ;return if  #3 is equal to  #4 ;return images ;return number of  #1 for each  #6 ;return #6 where  #7 is at least two ;return number of  #6 ;return number of  #8 ;return if  #9 is equal to  #10 ;return if  both  #5 and #11 are true
['select', 'filter', 'aggregate', 'aggregate', 'boolean', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'boolean']