If in one image, a dog standing with legs straight and tail curled up is wearing a red collar.
return dog ;return #1 that is standing ;return legs of #1 ;return #2 where  #3 are straight ;return tail of #1 ;return #4 where  #5 is curled up ;return collar ;return #7 that is red ;return #6 wearing #8 ;return if  #9 is in  one image
['select', 'filter', 'project', 'comparative', 'project', 'comparative', 'select', 'filter', 'filter', 'boolean']