(S (S (BASENP (PRP He)) (VP (VBZ hopes) (S (S (BASENP (DT a) (NN solution)) (VP (VB be) (VP (VBN found)))) (SBAR (IN before) (S (BASENP (PRP he)) (VP (VBZ leaves) (BASENP (NN office)))))))) (PERIOD .))