If the left image features water buffalo at least chest deep in water, and the right image includes a camera-facing water buffalo on dry ground.
return left image  ;return water buffalo  in  #1 ;return water in  #1 ;return if  #2 is at least chest deep in  #3 ;return right image  ;return water buffalo  in  #5 ;return ground in  #5 ;return #7 that is dry ;return #6 that is camera-facing ;return if  #9 is on #8 ;return if  both  #4 and #10 are true
['select', 'project', 'project', 'boolean', 'select', 'project', 'project', 'filter', 'filter', 'boolean', 'boolean']