Later, Tom testified against John so as to avoid the electric chair.
( Later ( , ( Tom ( ( ( ( testified ( against John ) ) ( so as ) ) ( to ( avoid ( the ( electric chair ) ) ) ) ) . ) ) ) )
(ROOT (S (ADVP (RB Later)) (, ,) (NP (NNP Tom)) (VP (VBD testified) (PP (IN against) (NP (NNP John))) (ADVP (RB so) (RB as)) (S (VP (TO to) (VP (VB avoid) (NP (DT the) (JJ electric) (NN chair)))))) (. .)))
Tom was willing to speak against the other man to avoid his own execution.
( Tom ( ( was ( willing ( to ( ( speak ( against ( the ( other man ) ) ) ) ( to ( avoid ( his ( own execution ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Tom)) (VP (VBD was) (ADJP (JJ willing) (S (VP (TO to) (VP (VB speak) (PP (IN against) (NP (DT the) (JJ other) (NN man))) (S (VP (TO to) (VP (VB avoid) (NP (PRP$ his) (JJ own) (NN execution)))))))))) (. .)))