A small child smiles while bathing in muddy water.
The child in the muddy water smiled.
Both sentences are referring to child in the muddy water , who smiles.
exists e2 e1 s1 s2 x1 x2.(while(e1,e2) & in(e2,x2) & n_water(x2) & a_muddy(s2) & Theme(s2,x2) & Actor(e2,x1) & v_bath(e2) & Actor(e1,x1) & v_smile(e1) & n_child(x1) & a_small(s1) & Theme(s1,x1))
exists e1 s1 x1 x2.(n_water(x2) & a_muddy(s1) & Theme(s1,x2) & n_child(x1) & Actor(e1,x1) & v_smile(e1) & in(x1,x2))