(S (S (NP (BASENP (NNP Navy) (NNP Lt.) (NNP Commander)) (PRN (LRB -LRB-) (SBAR (WHNP (WP who)) (S (VP (VBD testified) (PP (IN for) (NP (BASENP (NNP Kerry) (POS 's)) (BASENP (NNP Iran-Contra) (NNS hearings))))))) (RRB -RRB-))) (VP (VBZ alleges) (SBAR (IN that) (S (SBAR (WHADVP (WRB when)) (S (BASENP (NNP David) (NNP Margolis)) (VP (VBD was) (BASENP (DT the) (NNP Domestic) (NNP Criminal) (NNP Section) (NNP Chief))))) (COMMA ,) (S (BASENP (PRP he)) (VP (VBD helped) (S (VP (VP (VB limit) (NP (BASENP (DT the) (NN liability)) (PP (IN of) (NP (BASENP (NNP Ronald) (NNP Reagan)) (CC and) (BASENP (NNP George) (NNP H.) (NNP W.) (NNP Bush)))))) (PP (IN in) (BASENP (DT the) (NNP Iran-Contra) (NN affair))))))))))) (PERIOD .))