( ( ( Protein and ) carbohydrates ) ( each ( ( ( ( provide ( ( four calories ) ( per gram ) ) ) , ) ( while ( fat ( provides ( ( nine calories ) ( per gram ) ) ) ) ) ) . ) ) )
(ROOT (S (NP (NP (NNP Protein)) (CC and) (NP (NNS carbohydrates))) (DT each) (VP (VBP provide) (NP (NP (CD four) (NNS calories)) (PP (IN per) (NP (NN gram)))) (, ,) (SBAR (IN while) (S (NP (NN fat)) (VP (VBZ provides) (NP (NP (CD nine) (NNS calories)) (PP (IN per) (NP (NN gram)))))))) (. .)))
Protein and carbohydrates each provide four calories per gram, while fat provides nine calories per gram.
(ROOT (S (NP (NP (CD One) (NN gram)) (PP (IN of) (NP (NNS carbohydrates)))) (VP (VBZ provides) (NP (NP (CD four) (NNS calories)) (PP (IN of) (NP (NN energy))))) (. .)))