If one image features a hound wearing a hat, and no image shows more than one hound figure.
return hound ;return hat ;return #1 wearing #2 ;return if  #3 is in  one image  ;return images of #1 ;return number of  #1 for each  #5 ;return #5 where  #6 is higher than one ;return number of  #7 ;return if  #8 is equal to  zero ;return if  both  #4 and #9 are true
['select', 'select', 'filter', 'boolean', 'project', 'group', 'comparative', 'aggregate', 'boolean', 'boolean']