If there is one dog with a red collar around its neck.
return dog ;return neck of #1 ;return collar ;return #3 that is red ;return #1 that has #4 around #2 ;return the  number of  #5 ;return if  #6 is equal to  one
['select', 'project', 'select', 'filter', 'filter', 'aggregate', 'boolean']