A black dog walking in dirt has a soccer ball in his mouth.
The animal outside is in contact with a ball.
A dog is an animal. If the dog is walking in dirt, that would be outside. With the ball in his mouth, he is in contact with the ball.
exists e1 s1 x1 x2 x3 x4 x5 x6.(Theme(e1,x4) & Actor(e1,x1) & v_have(e1) & in(x4,x6) & n_mouth(x6) & of(x6,x1) & n_male(x1) & n_ball(x4) & of(x4,x5) & n_soccer(x5) & in(x1,x3) & n_dirt(x3) & n_walking(x1) & of(x1,x2) & n_dog(x2) & a_black(s1) & Theme(s1,x1))
exists p1 x1 x2.(n_outside(x1) & of(x1,x2) & n_animal(x2) & exists x3 x4.(in(x1,x3) & with(x3,x4) & n_ball(x4) & n_contact(x3)))