If the right image shows dark hooved animals grazing behind zebra, and the left image shows zebra in a field with no watering hole visible.
return animals ;return #1 that are  dark hooved ;return zebra ;return #2 that are  grazing behind #3 ;return if  #4 are  in  the  right image ;return field ;return #6 with  no watering hole visible ;return #3 that are  in  #7 ;return if  #8 are  in  the  left image ;return if  both  #5 and #9 are  true
['select', 'filter', 'select', 'filter', 'boolean', 'select', 'filter', 'filter', 'boolean', 'boolean']