A man on the beach is taking a picture of another man.
A man in a hat is taking a picture of another person.
The man is not necessarily in a hat because on the beach.
exists e1 x1 x2 x3 x4.(n_beach(x2) & Theme(e1,x3) & Actor(e1,x1) & v_take(e1) & of(x3,x4) & n_man(x4) & -(x4 = x1) & n_man(x1) & n_man(x1) & n_picture(x3) & on(x1,x2))
exists e1 x1 x2 x3 x4 x5.(n_person(x4) & Theme(e1,x3) & Actor(e1,x1) & v_take(e1) & of(x3,x5) & n_person(x5) & -(x5 = x4) & n_picture(x3) & in(x1,x2) & n_hat(x2) & n_man(x1))