a dog runs on the shore.
A dog is near water.
On the shore implies being near water.
exists e1 x1 x2.(n_shore(x2) & on(e1,x2) & Actor(e1,x1) & v_run(e1) & n_dog(x1))
exists p1 x1.(exists s1 x2.((x1 = x2) & n_water(x2) & a_near(s1) & Theme(s1,x2)) & n_dog(x1))