( ( As ( with ( any wave ) ) ) ( ( ( the speed ) ( of sound ) ) ( ( depends ( on ( ( the medium ) ( ( in which ) ( it ( is propagating ) ) ) ) ) ) . ) ) )
(ROOT (S (PP (IN As) (PP (IN with) (NP (DT any) (NN wave)))) (NP (NP (DT the) (NN speed)) (PP (IN of) (NP (NN sound)))) (VP (VBZ depends) (PP (IN on) (NP (NP (DT the) (NN medium)) (SBAR (WHPP (IN in) (WHNP (WDT which))) (S (NP (PRP it)) (VP (VBZ is) (VP (VBG propagating)))))))) (. .)))
As with any wave the speed of sound depends on the medium in which it is propagating.
(ROOT (S (NP (NP (DT The) (NN speed)) (PP (IN of) (NP (NN sound)))) (VP (VBZ depends) (PP (IN on) (NP (NN medium)))) (. .)))
The speed of sound depends on medium.