A brown dog is walking on the grass beside a fence.
The dog walks near the fence.
The dog is beside a fence, therefore the dog is near the fence.
exists e1 s1 x1 x2 x3.(n_grass(x2) & beside(e1,x3) & n_fence(x3) & on(e1,x2) & Actor(e1,x1) & v_walk(e1) & n_dog(x1) & a_brown(s1) & Theme(s1,x1))
exists e1 x1 x2.(n_fence(x2) & n_dog(x1) & near(e1,x2) & Actor(e1,x1) & v_walk(e1))