A man with sunglasses on top of his head is playing a slot machine.
A man with sunglasses on is dancing in the casino
The first sentence talks about a man with his sunglasses on top of his head playing a slot machine, while in the second the man has his sunglasses on and is dancing.
exists e1 x1 x2 x3 x4 x5 x6.(Theme(e1,x5) & Actor(e1,x1) & v_play(e1) & n_machine(x5) & of(x5,x6) & n_slot(x6) & with(x1,x2) & on(x2,x3) & of(x3,x4) & n_head(x4) & of(x4,x1) & n_male(x1) & n_top(x3) & n_sunglass(x2) & n_man(x1))
exists e1 s1 x1 x2 x3 x4.(n_casino(x4) & in(e1,x4) & Actor(e1,x1) & v_dance(e1) & with(x1,x2) & Theme(s1,x3) & a_on(s1) & (x2 = x3) & n_sunglass(x2) & n_man(x1))