A small page-boy was waiting outside her own door when she returned to it.
( ( A ( small page-boy ) ) ( ( was ( ( waiting ( outside ( her ( own door ) ) ) ) ( when ( she ( returned ( to it ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT A) (JJ small) (NN page-boy)) (VP (VBD was) (VP (VBG waiting) (PP (IN outside) (NP (PRP$ her) (JJ own) (NN door))) (SBAR (WHADVP (WRB when)) (S (NP (PRP she)) (VP (VBD returned) (PP (TO to) (NP (PRP it)))))))) (. .)))
When she came back to her door she found something waiting.
( ( When ( she ( ( came back ) ( to ( her door ) ) ) ) ) ( she ( ( found ( something waiting ) ) . ) ) )
(ROOT (S (SBAR (WHADVP (WRB When)) (S (NP (PRP she)) (VP (VBD came) (ADVP (RB back)) (PP (TO to) (NP (PRP$ her) (NN door)))))) (NP (PRP she)) (VP (VBD found) (NP (NP (NN something)) (VP (VBG waiting)))) (. .)))