( ( ( The photosynthesis ) ( of ( the past ) ) ) ( ( is ( what ( had ( stored ( ( the ( Sun 's ) ) ( energy ( that ( ultimately ( produced coal ) ) ) ) ) ) ) ) ) ; ) )
(ROOT (S (NP (NP (DT The) (NN photosynthesis)) (PP (IN of) (NP (DT the) (NN past)))) (VP (VBZ is) (SBAR (WHNP (WP what)) (S (VP (VBD had) (VP (VBN stored) (NP (NP (DT the) (NNP Sun) (POS 's)) (NN energy) (SBAR (WHNP (WDT that)) (S (ADVP (RB ultimately)) (VP (VBD produced) (NP (NN coal))))))))))) (: ;)))
The photosynthesis of the past is what had stored the Sun's energy that ultimately produced coal;
(ROOT (S (NP (NP (DT The) (NN energy)) (VP (VBN stored) (PP (IN in) (NP (NP (DT the) (JJ organic) (NNS molecules)) (PP (IN of) (NP (NN food))))))) (ADVP (RB ultimately)) (VP (VBZ comes) (PP (IN from) (NP (DT the) (NN sun)))) (. .)))
The energy stored in the organic molecules of food ultimately comes from the sun.