A black and white dog is playing with a golf ball in the sand.
Dog is playing with golf ball on beach
In the sand does not imply being on the beach.
exists e1 s1 s2 x1 x2 x3 x4.(n_sand(x4) & in(e1,x4) & with(e1,x2) & n_ball(x2) & of(x2,x3) & n_golf(x3) & Actor(e1,x1) & v_play(e1) & n_dog(x1) & a_white(s2) & Theme(s2,x1) & a_black(s1) & Theme(s1,x1))
exists e1 x1 x2 x3 x4.(ne_nam_dog(x1) & on(e1,x4) & n_beach(x4) & with(e1,x2) & n_ball(x2) & of(x2,x3) & n_golf(x3) & Actor(e1,x1) & v_play(e1))