( ( ( these ( ( expand and ) contract ) ) ( with ( ( heat and ) cold ) ) ) . )
(ROOT (NP (NP (DT these) (NN expand) (CC and) (NN contract)) (PP (IN with) (NP (NN heat) (CC and) (NN cold))) (. .)))
these expand and contract with heat and 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)))))))) (. .)))