A large, black dog is climbing over a wooden fence surrounded by bushes.
There is a large brick wall keeping the dog in the yard.
What's in the yard is either a wooden fence or a large brick wall, but not both, and if the dog is climbing over it, it is not keeping the dog in the yard.
exists e2 e1 s1 s2 s3 s4 x1 x2 x3 x4.(over(e1,x2) & Actor(e2,x4) & n_bush(x4) & Theme(e2,x3) & v_surround(e2) & (x2 = x3) & n_fence(x2) & a_wooden(s4) & Theme(s4,x2) & Actor(e1,x1) & v_climb(e1) & n_dog(x1) & a_black(s3) & Theme(s3,x1) & a_,(s2) & Theme(s2,x1) & a_large(s1) & Theme(s1,x1))
exists p1 x1 x5 x6.(n_yard(x6) & n_dog(x5) & exists e1 s1 x2 x3 x4.((x1 = x2) & in(e1,x6) & Theme(e1,x5) & Actor(e1,x4) & v_keep(e1) & (x2 = x4) & n_wall(x2) & of(x2,x3) & n_brick(x3) & a_large(s1) & Theme(s1,x2)))