If left image shows one left-facing beetle with no dungball.
return left image ;return beetle in  #1 ;return #2 that is left-facing ;return dungball in  #1 ;return number of  #3 ;return number of  #4 ;return if  #5 is equal to  one ;return if  #6 is equal to  zero ;return if  both  #7 and #8 are true
['select', 'project', 'filter', 'project', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']