The beagle is on a beach walking along the shoreline
The beagle is on the beach with it's master.
One cannot assume that the beagle is with it's master.
exists p1 x1 x4.(n_shoreline(x4) & n_beagle(x1) & exists x2 x3.(on(x1,x2) & along(x2,x4) & n_walking(x2) & of(x2,x3) & n_beach(x3)))
exists p1 x1 x2.(n_thing(x1) & n_beach(x2) & n_beagle(x1) & exists p2 x3.(on(x1,x2) & exists x4.((x3 = x4) & n_master(x4)) & (x2 = x3) & with(x2,x1)))