If each image shows a single afghan hound, and one image shows a hound with its blond hair sticking somewhat upward on its head.
return afghan hounds ;return images ;return number of  #1 for each  #2 ;return #2 where  #3 is equal to  one ;return number of  #2 ;return number of  #4 ;return if  #5 is equal to  #6 ;return hair of #1 ;return #1 where  #8 is blond ;return head of #9 ;return #9 where  #8 is sticking somewhat on #10 ;return if  #11 is in  one image  ;return if  both  #7 and #12 are true
['select', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'project', 'comparative', 'project', 'comparative', 'boolean', 'boolean']