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)))))))))))
They attacked and killed the wagon man.
( They ( ( ( attacked and ) ( killed ( the ( wagon man ) ) ) ) . ) )
(ROOT (S (NP (PRP They)) (VP (VP (VBD attacked)) (CC and) (VP (VBD killed) (NP (DT the) (NN wagon) (NN man)))) (. .)))