If one dog is wearing something around his neck.
return dogs ;return neck of #1 ;return #1 that are wearing something around #2 ;return number of  #3 ;return if  #4 is equal to  one
['select', 'project', 'filter', 'aggregate', 'boolean']