A dog rears up on its hind legs in a yard.
A dog in a yard.
in a both sentence  a dog in a yard.
exists e1 s1 x1 x2 x3 x4.(a_up(s1) & Manner(e1,s1) & on(e1,x2) & in(x2,x4) & n_yard(x4) & n_leg(x2) & of(x2,x3) & n_hind(x3) & of(x2,x1) & n_thing(x1) & Actor(e1,x1) & v_rear(e1) & n_dog(x1))
exists x1 x2.(a_topic(x1) & in(x1,x2) & n_yard(x2) & n_dog(x1))