If the image on the right has no more than one person wearing a hat.
return right image ;return person in  #1 ;return hat in  #1 ;return #2 that is wearing #3 ;return number of  #4 ;return if  #5 is at most one
['select', 'project', 'project', 'filter', 'aggregate', 'boolean']