If one image is a standing dog and one is a dog's head.
return dog  ;return #1 that is  standing ;return head of  #1 ;return images of  #2 ;return images of  #3 ;return number of #4 ;return number of #5 ;return if  #6 is  equal to one  ;return if  #7 is  equal to one  ;return if  both  #8 and #9 are  true
['select', 'filter', 'project', 'project', 'project', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']