A beagle is playing with a tennis ball.
A dog plays with a ball.
A  beagle is synonymous with dog and of beagle playing with a tennis ball means playing with ball.
exists e1 x1 x2 x3.(with(e1,x2) & n_ball(x2) & of(x2,x3) & n_tennis(x3) & Actor(e1,x1) & v_play(e1) & n_beagle(x1))
exists e1 x1 x2.(with(e1,x2) & n_ball(x2) & Actor(e1,x1) & v_play(e1) & n_dog(x1))