The black dog has a toy in its mouth and a person stands nearby.
The black dog has a toy in it's mouth and the stole it from a little girl next door.
The dog has a toy in its mouth with a person stands nearby,  and the second sentence refers to the dog stealing the toy
exists e1 e2 s1 s2 x1 x2 x3 x4.(n_mouth(x3) & of(x3,x1) & n_thing(x1) & n_dog(x1) & a_black(s1) & Theme(s1,x1) & a_nearby(s2) & Manner(e2,s2) & Actor(e2,x4) & v_stand(e2) & n_person(x4) & Theme(e1,x2) & Actor(e1,x1) & v_have(e1) & in(x2,x3) & n_toy(x2))
exists e1 p1 s1 s2 x1 x2 x3 x4 x7.(n_stole(x7) & n_thing(x1) & n_dog(x1) & a_black(s1) & Theme(s1,x1) & exists x5 x6.((x4 = x5) & subset_of(x7,x5) & subset_of(x6,x5) & n_mouth(x6)) & in(x4,x1) & n_toy(x4) & Theme(e1,x2) & Actor(e1,x1) & v_have(e1) & from(x2,x3) & n_next(x3) & Time(x3,x2) & n_door(x2) & n_girl(x3) & a_little(s2) & Theme(s2,x3) & n_thing(x2))