If each image contains just one horned animal, and one image shows an animal reclining on a rock, with large boulders behind it.
return animals ;return #1 that are  horned ;return images ;return number of #2 for each #3 ;return #3 where #4 is  equal to one  ;return number of #3 ;return number of #5 ;return If #6 is  equal to #7 ;return rock ;return #1 that is  reclining on #9 ;return boulders ;return #11 that are  large ;return #10 that is  with  #12 behind it ;return If #13 is  in  one  image ;return If both  #8 and #14 are  true
['select', 'filter', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'filter', 'select', 'filter', 'filter', 'boolean', 'boolean']