If every image has more than one dog photographed outside, and the right and left hand images have the same number of dogs.
return images ;return dogs in  #1 ;return #2 that are outside ;return number of #3 for each  #1 ;return #1 where  #4 is higher than one ;return number of #5 ;return number of #1 ;return if  #6 is equal to  #7 ;return the  right hand image ;return the  left hand image ;return dogs in  #9 ;return dogs in  #10 ;return number of  #11 ;return number of #12 ;return if  #13 is equal to  #14 ;return if  both  #8 and #15 are true
['select', 'project', 'filter', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'select', 'project', 'project', 'aggregate', 'aggregate', 'boolean', 'boolean']