Are all of the purple objects metallic or matte?
return objects ;return #1 that  are purple ;return if  all #2 are metallic ;return if  all #2 are matte ;return #3 or #4
['select', 'filter', 'boolean', 'boolean', 'union']