Are two yellow things that are closest to the red thing the same shape?
return objects ;return #1 that are yellow ;return #2 that are closest to the  red thing ;return shapes of #3 ;return if the  two of #4 are the same
['select', 'filter', 'filter', 'project', 'boolean']