If one doberman faces forward and wears a collar, and the other doberman has its head turned and wears no collar.
return doberman  ;return #1 that faces forward ;return #2 that wears  a  collar  ;return number of  #3 ;return if  #4 is equal to  one ;return head of #1 ;return #1 where  #6 is turned ;return #7 that wears  a  collar  ;return #7 besides  #8 ;return number of  #9 ;return if  #10 is equal to  one ;return if  both  #5 and   #11 are true
['select', 'filter', 'filter', 'aggregate', 'boolean', 'project', 'comparative', 'filter', 'discard', 'aggregate', 'boolean', 'boolean']