If the right image shows at least one person in a hat standing behind a straight glass-fronted cabinet filled with baked treats.
return right image ;return person in  #1 ;return hat in  #1 ;return cabinet in  #1 ;return baked treats in  #1 ;return #2 that is in  #3 ;return #6 that is standing ;return #4 that is glass-fronted ;return #8 that is straight ;return #9 that is filled with #5 ;return #7 that is behind #10 ;return number of  #11 ;return if  #12 is at least one
['select', 'project', 'project', 'project', 'project', 'filter', 'filter', 'filter', 'filter', 'filter', 'filter', 'aggregate', 'boolean']