If each dog is outdoors wearing a collar and gazing off to the side, and at least one dog is sitting upright.
return dogs ;return #1 that are outdoors ;return collar ;return #2 wearing #3 ;return #4 that are gazing off to  the  side ;return number of  #1 ;return number of  #5 ;return if  #7 is equal to  #6 ;return #1 that are sitting upright ;return number of  #9 ;return if  #10 is at least one ;return if  both  #8 and #11 are true
['select', 'filter', 'select', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'filter', 'aggregate', 'boolean', 'boolean']