The dog stands in the sand near the ocean.
The dog stands outside.
Sand near the ocean is outside.
exists e1 x1 x2 x3.(n_ocean(x3) & n_sand(x2) & n_dog(x1) & in(e1,x2) & near(x2,x3) & Actor(e1,x1) & v_stand(e1))
exists e1 p1 x1.(n_dog(x1) & exists s1.(Theme(s1,x1) & a_outside(s1)) & Topic(e1,p1) & Actor(e1,x1) & v_stand(e1))