If all dogs are black and tan dobermans, but one dog has pointed upright ears while the other has floppy rounded ears.
return dogs ;return #1 that are black and tan ;return #2 that are dobermans ;return ears of #3 ;return #3 where  #4 are pointed ;return #3 where  #4 are upright ;return #3 where  #4 are floppy ;return #3 where  #4 are rounded ;return #3 in  both  #5 and #6 ;return #3 in  both  #7 and #8 ;return number of  #9 ;return number of  #10 ;return if  #11 is equal to  one ;return if  #12 is equal to  one ;return number of  #1 ;return number of  #3 ;return if  #15 is equal to  #16 ;return if  both  #13 and #14 are true ;return if  both  #17 and #18 are true
['select', 'filter', 'filter', 'project', 'comparative', 'comparative', 'comparative', 'comparative', 'intersection', 'intersection', 'aggregate', 'aggregate', 'boolean', 'boolean', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']