If one dog is reclining and one is sitting, and there are only two animals in total.
return dogs ;return #1 that are reclining ;return #1 that are sitting ;return number of  #2 ;return number of  #3 ;return if  #4 is equal to  one ;return if  #5 is equal to  one ;return animals ;return number of  #8 ;return if  #9 is equal to  two ;return if  both  #6 and #7 are true ;return if  both  #10 and #11 are true
['select', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'boolean', 'select', 'aggregate', 'boolean', 'boolean', 'boolean']