( Photosynthesis ( ( consists ( of ( ( carbon ( ( dioxide and ) water ) ) ( ( reacting ( in ( ( the presence ) ( of energy ) ) ) ) ( from ( ( sunlight , ) ( which ( produces ( ( glucose and ) oxygen ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (NNS Photosynthesis)) (VP (VBZ consists) (PP (IN of) (NP (NP (NN carbon) (NN dioxide) (CC and) (NN water)) (VP (VBG reacting) (PP (IN in) (NP (NP (DT the) (NN presence)) (PP (IN of) (NP (NN energy))))) (PP (IN from) (NP (NP (NN sunlight)) (, ,) (SBAR (WHNP (WDT which)) (S (VP (VBZ produces) (NP (NN glucose) (CC and) (NN oxygen))))))))))) (. .)))
Photosynthesis consists of carbon dioxide and water reacting in the presence of energy from sunlight, which produces glucose and oxygen.
(ROOT (S (NP (NNS Photosynthesis)) (VP (VBZ converts) (NP (NN carbon) (NN dioxide) (CC and) (NN water)) (PP (IN into) (NP (NN glucose)))) (. .)))