If one dog is sitting and the other is laying flat with paws forward.
return dog ;return #1 that is sitting ;return the  number of  #2 ;return if  #3 is equal to  one ;return #1 that is laying flat ;return paws of #1 ;return #5 where  #6 are forward ;return the  number of  #7 ;return if  #8 is equal to  one ;return if  both  #4 and #9 is true
['select', 'filter', 'aggregate', 'boolean', 'filter', 'project', 'comparative', 'aggregate', 'boolean', 'boolean']