A dog walks on the sand along the water.
A puppy walks on the beach next to the ocean.
Just because it is sand along the water does not mean it is the beach next to the ocean.
exists e1 x1 x2 x3.(n_water(x3) & n_sand(x2) & on(e1,x2) & along(x2,x3) & Actor(e1,x1) & v_walk(e1) & n_dog(x1))
exists e1 x1 x2 x3 x4.(n_ocean(x4) & n_beach(x2) & on(e1,x2) & to(x3,x4) & next(x2,x3) & n_thing(x3) & Actor(e1,x1) & v_walk(e1) & n_puppy(x1))