If in one image there is a lone basset hound standing outside facing the left side of the image.
return basset hound ;return #1 that is standing outside ;return images ;return left side of #3 ;return #2 that is facing #4 ;return number of  #1 for each  #3 ;return #3 where  #6 is equal to  one ;return number of  #5 for each  #7 ;return #7 where  #8 is equal to  one ;return number of  #9 ;return if  #10 is equal to  one
['select', 'filter', 'select', 'project', 'filter', 'group', 'comparative', 'group', 'comparative', 'aggregate', 'boolean']