If one dog is facing left and one dog is facing right.
return dog  ;return #1 that is facing left ;return #1 that is facing right ;return the  number of  #2 ;return the  number of  #3 ;return if  #4 is equal to  one ;return if  #5 is equal to  one ;return if  both  #6 and #7 is true
['select', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']