If a dog is wearing a knit hat.
return dog ;return hat of #1 ;return #2 that is knit ;return #1 that has #3 ;return number of  #4 ;return if  #5 is at least one
['select', 'project', 'filter', 'filter', 'aggregate', 'boolean']