If at least one elephant has it's trunk raised in one image.
return elephant ;return trunk of #1 ;return #2 that is raised ;return #1 that has #3 ;return images ;return number of  #4 for each  #5 ;return #5 where  #6 is at least one ;return number of  #7 ;return if  #8 is equal to  one
['select', 'project', 'filter', 'filter', 'select', 'group', 'comparative', 'aggregate', 'boolean']