Daniel nodded, fetching me a glass of beer.
( Daniel ( ( ( nodded , ) ( fetching ( me ( ( a glass ) ( of beer ) ) ) ) ) . ) )
(ROOT (S (NP (NNP Daniel)) (VP (VBD nodded) (, ,) (S (VP (VBG fetching) (S (NP (PRP me)) (NP (NP (DT a) (NN glass)) (PP (IN of) (NP (NN beer)))))))) (. .)))
It was Daniel who got me the beer. 
( It ( ( was ( Daniel ( who ( got ( me ( the beer ) ) ) ) ) ) . ) )
(ROOT (S (NP (PRP It)) (VP (VBD was) (NP (NP (NNP Daniel)) (SBAR (WHNP (WP who)) (S (VP (VBD got) (S (NP (PRP me)) (NP (DT the) (NN beer)))))))) (. .)))