( Both ( in ( ( ( anatomy and ) ( in function ) ) ( , ( they ( ( consist ( of ( ( ( two ( distinct regions ) ) : ) ( ( ( ( ( an ( outer layer ) ) , ) ( the ( adrenal cortex ) ) ) , ) ( which ( surrounds ( the ( adrenal medulla ) ) ) ) ) ) ) ) . ) ) ) ) ) )
(ROOT (S (NP (DT Both)) (ADVP (RB in)) (UCP (ADVP (RB anatomy)) (CC and) (PP (IN in) (NP (NN function)))) (, ,) (NP (PRP they)) (VP (VBP consist) (PP (IN of) (NP (NP (CD two) (JJ distinct) (NNS regions)) (: :) (NP (NP (DT an) (JJ outer) (NN layer)) (, ,) (NP (DT the) (JJ adrenal) (NN cortex)) (, ,) (SBAR (WHNP (WDT which)) (S (VP (VBZ surrounds) (NP (DT the) (JJ adrenal) (NN medulla))))))))) (. .)))
Both in anatomy and in function, they consist of two distinct regions: an outer layer, the adrenal cortex , which surrounds the adrenal medulla .
(ROOT (S (NP (NP (DT The) (NN pleura)) (SBAR (WHNP (WDT that)) (S (VP (VBZ surrounds) (NP (DT the) (NNS lungs)))))) (VP (VBZ consists) (PP (IN of) (NP (CD two) (NNS layers)))) (. .)))