(S (S (BASENP (DT Both) (NNS men)) (VP (VBD kept) (NP (BASENP (NNS diaries)) (SBAR (WHNP (WDT which)) (S (VP (VBD served) (PP (IN as) (NP (BASENP (DT the) (NN basis)) (PP (IN for) (NP (NP (BASENP (DT the) (NN 2004) (NN film)) (PRN (COMMA ,) (BASENP (DT The) (NN Motorcycle) (NNS Diaries)) (COMMA ,))) (VP (VP (VBN produced) (PP (IN by) (BASENP (NNP Robert) (NNP Redford)))) (CC and) (VP (VBN directed) (PP (IN by) (BASENP (NNP Walter) (NNP Salles))))))))))))))) (PERIOD .))