A husky breed dog is sniffing a horse's shoulder while the dog's owner is petting the two brown horses.
A dog is next to a horse.
To sniff a horse, the dog needs to be next to a horse.
exists e1 p1 s1 s2 x1 x2 x3 x4 x5.(exists e2.(Theme(e2,x3) & Actor(e2,x5) & v_pet(e2)) & n_horse(x3) & n_horse(x3) & a_brown(s2) & Theme(s2,x3) & card_eq_2(x3) & n_owner(x5) & of(x5,x1) & n_dog(x1) & n_dog(x1) & while(e1,p1) & Theme(e1,x4) & Actor(e1,x1) & v_sniff(e1) & n_shoulder(x4) & of(x4,x3) & of(x1,x2) & n_breed(x2) & a_husky(s1) & Theme(s1,x1))
exists s1 x1 x2.(to(s1,x2) & n_horse(x2) & Theme(s1,x1) & a_next(s1) & n_dog(x1))