If in the left image, there are two pugs--one sitting and the other laying down.
return left image ;return pugs in  #1 ;return number of  #2 ;return if  #3 is equal to  two ;return #2 that is sitting ;return #2 that is laying down ;return number of  #5 ;return number of  #6 ;return if  #7 is equal to  one ;return if  #8 is equal to  one ;return if  both  #9 and #10 are true ;return if  both  #4 and #11 are true
['select', 'project', 'aggregate', 'boolean', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean', 'boolean']