( ( When ( exposed ( to ( extreme ( ( heat or ) cold ) ) ) ) ) ( ( the media ) ( ( will ( ( expand or ) contract ) ) . ) ) )
(ROOT (S (SBAR (WHADVP (WRB When)) (S (VP (VBN exposed) (PP (TO to) (NP (JJ extreme) (NN heat) (CC or) (NN cold)))))) (NP (DT the) (NNS media)) (VP (MD will) (VP (VB expand) (CC or) (VB contract))) (. .)))
When exposed to extreme heat or cold the media will expand or contract.
(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)))))))) (. .)))