If each image contains just one ape, and each ape is hanging from a branch-like growth.
return images ;return apes in  #1 ;return growth in  #1 ;return #3 that is branch-like ;return #2 hanging from  #4 ;return number of  #2 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', 'project', 'filter', 'filter', 'group', 'group', 'comparative', 'comparative', 'aggregate', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']