A black dog is running along the beach.
a dog is running on the beach
As far as a beach is concerned it can be ran along or on depending on where the dog is running.
exists e1 s1 x1 x2.(n_beach(x2) & along(e1,x2) & Actor(e1,x1) & v_run(e1) & n_dog(x1) & a_black(s1) & Theme(s1,x1))
exists e1 x1 x2.(n_beach(x2) & on(e1,x2) & Actor(e1,x1) & v_run(e1) & n_dog(x1))