If there is a person in a green top standing near the dog.
return person ;return top of #1 ;return #1 where  #2 is green ;return dog ;return #3 that is standing near #4 ;return number of  #5 ;return if  #6 is at least one
['select', 'project', 'comparative', 'select', 'filter', 'aggregate', 'boolean']