(S (S (PP (IN With) (NP (BASENP (DT the) (NNP USSR) (POS 's)) (NN collapse))) (COMMA ,) (S (S (BASENP (NNP Armenia) (CC and) (NNP Azerbaijan)) (VP (VBD re-emerged) (PP (IN as) (BASENP (JJ independent) (NNS states))))) (COLON --) (SBAR (SINV (SINV (VP (VBD as-did)) (BASENP (JJ old) (NNS rivalries))) (PP (IN over) (BASENP (NN territory))))))) (PERIOD .))