The man is training a dog to zigzag through poles.
the man is training his cat to swat flies
The animal is either a dog or a cat and the tasks are different.
exists e1 p1 x1 x2.(n_man(x1) & Theme(e1,x2) & Actor(e1,x1) & v_train(e1) & Topic(x2,p1) & exists e2 x3.(through(e2,x3) & n_pole(x3) & Actor(e2,x2) & v_zigzag(e2)) & n_dog(x2))
exists e1 e2 x1 x2 x3 x4.(n_cat(x3) & of(x3,x1) & n_male(x1) & n_man(x1) & Actor(e2,x1) & v_fly(e2) & Theme(e1,x3) & Actor(e1,x2) & v_train(e1) & to(x3,x4) & n_swat(x4) & (x1 = x2))