If all dogs wear a leash or collar.
return dogs ;return leash ;return collar ;return #1 that wear #2 ;return #1 that wear #3 ;return #4 , #5 ;return the  number of  #6 ;return the  number of  #1 ;return if  #7 is equal to  #8
['select', 'select', 'select', 'filter', 'filter', 'union', 'aggregate', 'aggregate', 'boolean']