A person holding the leash of a dog as the dog sniffs the horse.
A horse stands near a dog and a person.
The dog must be near the horse in order to sniff it and the person is holding the leash, so the person must be near the horse too.
exists e1 p1 x1 x2 x3 x4 x5.(n_horse(x5) & n_leash(x3) & a_topic(x1) & exists e2.(Theme(e2,x5) & Actor(e2,x4) & v_sniff(e2)) & n_dog(x4) & n_dog(x4) & as(e1,p1) & Theme(e1,x3) & Actor(e1,x2) & v_hold(e1) & of(x3,x4) & (x1 = x2) & n_person(x1))
exists e1 x1 x2 x3 x4.(near(e1,x2) & subset_of(x4,x2) & n_person(x4) & subset_of(x3,x2) & n_dog(x3) & Actor(e1,x1) & v_stand(e1) & n_horse(x1))