If there is a large gorilla in one image and at least a baby gorilla in the other image.
return one image  ;return gorilla  in  #1 ;return #2 that is large ;return other image  ;return gorilla  in  #4 ;return #5 that is baby ;return number of  #6 ;return if  #7 is at least one ;return number of  #3 ;return if  #9 is at least one ;return if  both  #10 and #8 are true
['select', 'project', 'filter', 'select', 'project', 'filter', 'aggregate', 'boolean', 'aggregate', 'boolean', 'boolean']