If at least one dog wears something around his neck.
return dog ;return neck of #1 ;return something around #2 ;return #1 that wears #3 ;return number of  #4 ;return if  #5 is at least one
['select', 'project', 'project', 'filter', 'aggregate', 'boolean']