If the left image includes at least one baboon perched on a cement ledge next to water, and the right image includes at least one baboon neck-deep in water.
return baboons ;return ledge ;return #2 that is  cement ;return water  ;return #3 next to #4 ;return #1 perched on #5 ;return #6 in  the  left image ;return number of #7 ;return if  #8 is  at least one  ;return #1 neck-deep in  #4 ;return #10 in  the  right image ;return number of #11 ;return if  #12 is  at least one  ;return if  both  #9 and #13 are  true
['select', 'select', 'filter', 'select', 'filter', 'filter', 'filter', 'aggregate', 'boolean', 'filter', 'filter', 'aggregate', 'boolean', 'boolean']