( ( All bodies ) ( ( ( expand ( with ( ( heat and ) contract ) ) ) ( with cold ) ) ; ) )
(ROOT (S (NP (DT All) (NNS bodies)) (VP (VBP expand) (PP (IN with) (NP (NN heat) (CC and) (NN contract))) (PP (IN with) (NP (NN cold)))) (: ;)))
All bodies expand with heat and contract with 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)))))))) (. .)))