If one image has one dog and the other image has a pack of dogs.
return one image  ;return dog in  #1 ;return number of  #2 ;return if  #3 is equal to  one ;return other image  ;return pack of dogs in  #5 ;return number of  #6 ;return if  #7 is at least one ;return if  both  #4 and #8 are true
['select', 'project', 'aggregate', 'boolean', 'select', 'project', 'aggregate', 'boolean', 'boolean']