If in one image, two dogs of the same breed are near a fence, while the other image shows a single dog with its mouth open and tongue visible.
return one image  ;return dogs in  #1 ;return breed of #2 ;return #2 where  #3 are the  same ;return fence in  #1 ;return #4 that are near #5 ;return number of  #6 ;return if  #7 is equal to  two ;return other image  ;return dog in  #9 ;return mouth of #10 ;return #10 where  #11 is open ;return tongue of #12 ;return #12 where  #13 is visible ;return number of  #14 ;return if  #15 is equal to  one ;return if  both  #8 and #16 are true
['select', 'project', 'project', 'comparative', 'project', 'filter', 'aggregate', 'boolean', 'select', 'project', 'project', 'comparative', 'project', 'comparative', 'aggregate', 'boolean', 'boolean']