where they they brew their own beer there
( ( where they ) ( they ( ( brew ( their ( own beer ) ) ) there ) ) )
(ROOT (SBARQ (WHADVP (WRB where) (NP (PRP they))) (SQ (NP (PRP they)) (VP (VB brew) (NP (PRP$ their) (JJ own) (NN beer)) (ADVP (RB there))))))
The beer comes from a factory that they purchase it from. 
( ( The beer ) ( ( ( comes ( from ( a factory ) ) ) ( that ( they ( ( purchase it ) from ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN beer)) (VP (VBZ comes) (PP (IN from) (NP (DT a) (NN factory))) (SBAR (IN that) (S (NP (PRP they)) (VP (VB purchase) (NP (PRP it)) (PP (IN from)))))) (. .)))