(S (S (PP (VBG Following) (BASENP (DT the) (NN game))) (COMMA ,) (S (S (BASENP (DT both) (NNS teams)) (VP (VBD were) (VP (ADVP (RB loudly)) (VBN cheered)))) (SBAR (IN as) (S (BASENP (PRP they)) (VP (VBD exited) (BASENP (DT the) (NN court))))))) (PERIOD .))