If each image includes exactly one adult animal with curved horns, and the right image features a horned animal with body aimed leftward and head turned forward.
return images ;return animals in  #1 ;return #2 that are adults ;return horns ;return #4 that are curved ;return #3 with #5 ;return number of  #6 for each  #1 ;return #1 where  #7 is equal to  one ;return number of  #8 ;return number of  #1 ;return if  #9 is equal to  #10 ;return animal  ;return #12 that is horned ;return body of #13 ;return #13 where  #14 is aimed leftward ;return head of #15 ;return #15 where  #16 is turned forward ;return if  #17 is in  the  right image  ;return if  both  #11 and #18 are true
['select', 'project', 'filter', 'select', 'filter', 'filter', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'filter', 'project', 'comparative', 'project', 'comparative', 'boolean', 'boolean']