the lengths to which he 'll go to weave a protective cocoon around his own ego 
(ROOT (NP (NP (DT the) (NNS lengths)) (SBAR (WHPP (IN to) (WHNP (WDT which))) (S (NP (PRP he)) (VP (MD 'll) (VP (VB go) (S (VP (TO to) (VP (VB weave) (NP (DT a) (JJ protective) (NN cocoon)) (PP (IN around) (NP (PRP$ his) (JJ own) (NN ego))))))))))))
(ROOT (NP (NP (DT ) (NNS )) (SBAR (WHPP (IN ) (WHNP (WDT ))) (S (NP (PRP )) (VP (MD ) (VP (VB ) (S (VP (TO ) (VP (VB ) (NP (DT ) (JJ ) (NN )) (PP (IN ) (NP (PRP$ ) (JJ ) (NN ))))))))))))