If all dogs have tall upright ears and brindle fur coloring, and no dogs wear harnesses or leashes.
return dogs ;return ears of #1 ;return #1 where  #2 are upright ;return #3 where  #2 are tall ;return fur coloring of #4 ;return #4 where  #5 is brindle ;return number of  #1 ;return number of  #6 ;return if  #7 is equal to  #8 ;return #1 that wear harness ;return #1 that wear leash ;return #10 , #11 ;return number of  #12 ;return if  #13 is equal to  zero ;return if  both  #9 and #14 are true
['select', 'project', 'comparative', 'comparative', 'project', 'comparative', 'aggregate', 'aggregate', 'boolean', 'filter', 'filter', 'union', 'aggregate', 'boolean', 'boolean']