If 1 of the dogs has a tail that is in a resting position.
return dogs ;return tails of #1 ;return #1 where  #2 are in  a  resting position ;return number of  #3 ;return if  #4 is equal to  one
['select', 'project', 'comparative', 'aggregate', 'boolean']