A dog on the edge of a body of water.
A dog is by water.
A dog is near a body of water.
exists x1 x2 x3 x4.(n_edge(x2) & a_topic(x1) & on(x1,x2) & of(x2,x3) & of(x3,x4) & n_water(x4) & n_body(x3) & n_dog(x1))
exists p1 x1.(exists x2.(by(x1,x2) & n_water(x2)) & n_dog(x1))