the wagon man got killed when they attacked him
( ( the ( wagon man ) ) ( got ( killed ( when ( they ( attacked him ) ) ) ) ) )
(ROOT (S (NP (DT the) (NN wagon) (NN man)) (VP (VBD got) (SBAR (S (VP (VBD killed) (SBAR (WHADVP (WRB when)) (S (NP (PRP they)) (VP (VBD attacked) (NP (PRP him)))))))))))
The wagon man escaped from their attack.
( ( The ( wagon man ) ) ( ( escaped ( from ( their attack ) ) ) . ) )
(ROOT (S (NP (DT The) (NN wagon) (NN man)) (VP (VBD escaped) (PP (IN from) (NP (PRP$ their) (NN attack)))) (. .)))