A dog waits for a man to throw a ball into the ocean.
A dog is on the beach.
The ocean is near the beach.
exists e1 p1 x1 x2 x4.(n_ocean(x4) & for(e1,x2) & Topic(x2,p1) & exists e2 x3.(into(e2,x4) & Theme(e2,x3) & Actor(e2,x2) & v_throw(e2) & n_ball(x3)) & n_man(x2) & Actor(e1,x1) & v_wait(e1) & n_dog(x1))
exists p1 x1 x2.(n_beach(x2) & on(x1,x2) & n_dog(x1))