If one dog is wearing a collar and sitting.
return dogs ;return collar ;return #1 wearing #2 ;return #3 that are sitting ;return number of  #4 ;return if  #5 is equal to  one
['select', 'select', 'filter', 'filter', 'aggregate', 'boolean']