A man playing with a ball toy with his brown dog.
The man is playing with his dog.
Playing with a ball, with his dog, implies playing with the dog.
exists e1 s1 x1 x2 x3 x4 x5.(a_topic(x1) & with(e1,x3) & with(x3,x5) & n_dog(x5) & a_brown(s1) & Theme(s1,x5) & of(x5,x1) & n_male(x1) & n_toy(x3) & of(x3,x4) & n_ball(x4) & Actor(e1,x2) & v_play(e1) & (x1 = x2) & n_man(x1))
exists e1 x1 x2.(n_dog(x2) & of(x2,x1) & n_male(x1) & n_man(x1) & with(e1,x2) & Actor(e1,x1) & v_play(e1))