The dog does an obstacle course with his trainer.
A trainer works with his dog.
Doing an obstacle course with a trainer requires working with the trainer.
exists e1 x1 x2 x3 x4.(n_trainer(x4) & of(x4,x1) & n_male(x1) & n_dog(x1) & with(e1,x4) & Theme(e1,x2) & Actor(e1,x1) & v_do(e1) & n_course(x2) & of(x2,x3) & n_obstacle(x3))
exists e1 x1 x2.(with(e1,x2) & n_dog(x2) & of(x2,x1) & n_male(x1) & Actor(e1,x1) & v_work(e1) & n_trainer(x1))