A man in a gray hat is standing in front of a display.
The man is wearing a hat.
Both subjects are wearing a hat
exists e1 s1 x1 x2 x3 x4.(in(e1,x3) & of(x3,x4) & n_display(x4) & n_front(x3) & Actor(e1,x1) & v_stand(e1) & in(x1,x2) & n_hat(x2) & a_gray(s1) & Theme(s1,x2) & n_man(x1))
exists e1 x1 x2.(n_man(x1) & Theme(e1,x2) & Actor(e1,x1) & v_wear(e1) & n_hat(x2))