If the combined images include a person near a dog and a dog next to a horse.
return person ;return dog  ;return horse ;return #1 near #2 ;return #2 next to  #3 ;return if  #4 is in  the  images ;return if  #5 is in  the  images ;return if  both  #6 and #7 are true
['select', 'select', 'select', 'filter', 'filter', 'boolean', 'boolean', 'boolean']