If one of the dogs is sitting on or lying next to a pillow.
return dogs ;return pillow ;return #1 that is sitting ;return #1 that is lying ;return #3 , #4 ;return #5 that is next to  #2 ;return number of  #6 ;return if  #7 is equal to  one
['select', 'select', 'filter', 'filter', 'union', 'filter', 'aggregate', 'boolean']