( they ( ( ( dilate ( in ( ( heat and ) contract ) ) ) ( in cold ) ) . ) )
(ROOT (S (NP (PRP they)) (VP (VBP dilate) (PP (IN in) (NP (NN heat) (CC and) (NN contract))) (PP (IN in) (NP (NN cold)))) (. .)))
they dilate in heat and contract in cold.
(ROOT (S (NP (NP (DT The) (NN liquid)) (PP (IN in) (NP (DT a) (NN thermometer)))) (VP (VP (VBZ expands)) (CC or) (VP (VBZ contracts) (S (VP (TO to) (VP (VB respond) (PP (TO to) (NP (NN heat) (CC or) (NN cold)))))))) (. .)))