If an image shows just one herd dog behind and to the left of a group of sheep.
return herd dogs ;return a  group of sheep ;return #1 behind #2 ;return #1 to  the  left of #2 ;return #1 in  both  #3 and #4 ;return images of #5 ;return number of  #5 for each  #6 ;return #6 where  #7 is equal to  one ;return number of  #8 ;return if  #9 is equal to  one
['select', 'select', 'filter', 'filter', 'intersection', 'project', 'group', 'comparative', 'aggregate', 'boolean']