If each image contains a single horned animal, which has its head turned directly toward the camera.
return images ;return animals in  #1 ;return #2 that are horned ;return head of #3 ;return #3 where  #4 is turned directly toward the  camera ;return number of  #3 for each  #1 ;return number of  #5 for each  #1 ;return #1 where  #6 is equal to  one ;return #1 where  #7 is equal to  one ;return number of  #1 ;return number of  #8 ;return number of  #9 ;return if  #11 is equal to  #10 ;return if  #12 is equal to  #10 ;return if  both  #13 and #14 are true
['select', 'project', 'filter', 'project', 'comparative', 'group', 'group', 'comparative', 'comparative', 'aggregate', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']