If one image shows a beetle but no ball, and the other image shows a beetle partly perched on a ball.
return one image  ;return beetle  in  #1 ;return ball in  #1 ;return number of  #2 ;return number of  #3 ;return if  #4 is at least one ;return if  #5 is equal to  zero ;return if  both  #6 and #7 are true ;return other image  ;return beetle  in  #9 ;return ball in  #9 ;return #10 that is partly perched on #11 ;return number of  #12 ;return if  #13 is at least one ;return if  both  #8 and #14 are true
['select', 'project', 'project', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean', 'select', 'project', 'project', 'filter', 'aggregate', 'boolean', 'boolean']