If the right image features one forward-looing beagle wearing a red collar, and the left image features a left-facing beagle with its tail upright.
return the  right image  ;return beagles in  #1 ;return #2 that are forward-looing ;return collar ;return #4 that is red ;return #3 wearing #5 ;return number of  #6 ;return if  #7 is equal to  one ;return the  left image  ;return beagle  in  #9 ;return #10 that is left-facing ;return tail of #11 ;return if  #12 is upright ;return if  both  #8 and #13 are true
['select', 'project', 'filter', 'select', 'filter', 'filter', 'aggregate', 'boolean', 'select', 'project', 'filter', 'project', 'boolean', 'boolean']