A dog gets its legs tangled with a stick.
There is a dog by a stick.
The dog is tangled with a stick so he must be by a stick.
exists e2 e1 x1 x2 x3 x4.(Theme(e2,x2) & Actor(e2,x1) & v_get(e2) & with(e1,x4) & n_stick(x4) & Actor(e1,x3) & v_tangle(e1) & (x2 = x3) & n_leg(x2) & of(x2,x1) & n_thing(x1) & n_dog(x1))
exists p1 x1 x2 x3.((x1 = x2) & by(x2,x3) & n_stick(x3) & n_dog(x2))