If the right image shows a black-and-white dog in a bounding pose, and the left image includes a dog behind sheep, looking at them.
return right image  ;return dog  in  #1 ;return #2 that is black-and-white ;return #3 that is in  a   bounding pose ;return number of  #4 ;return if  #5 is at least one ;return left image  ;return dog  in  #7 ;return sheep in  #7 ;return #8 that is behind #9 ;return #10 that is looking at #9 ;return number of  #11 ;return if  #12 is at least one ;return if  both  #6 and #13 are true
['select', 'project', 'filter', 'filter', 'aggregate', 'boolean', 'select', 'project', 'project', 'filter', 'filter', 'aggregate', 'boolean', 'boolean']