If one image shows a juvenile chimp in front of a larger adult chimp, and the other image contains one frontward-turned chimp and no humans.
return one image  ;return chimp   in  #1 ;return #2 that is a  juvenile ;return #2 that is a  adult ;return if  #3 is in  front of #4 ;return the  other image  ;return chimps in  #6 ;return #7 that are frontward-turned ;return number of  #8 ;return if  #9 is equal to  one ;return humans in  #6 ;return number of  #11 ;return if  #12 is equal to  zero ;return if  both  #10 and #13 are true ;return if  both  #5 and #14 are true
['select', 'project', 'filter', 'filter', 'boolean', 'select', 'project', 'filter', 'aggregate', 'boolean', 'project', 'aggregate', 'boolean', 'boolean', 'boolean']