If at least one image shows a woman holding a stick while working with sheep and dog.
return woman ;return stick ;return #1 holding #2 ;return sheep ;return dog ;return #3 working with #4 ;return #3 working with #5 ;return #3 in  both  #6 and #7 ;return if  #8 is in  at least one image
['select', 'select', 'filter', 'select', 'select', 'filter', 'filter', 'intersection', 'boolean']