qnli question: What did one of the treaties between the Tang and Tibet help fix? sentence: Until the Tibetan Empire's collapse in the 9th century, it was the Tang's major rival in dominating Inner Asia.