Question: When did the Tang dynasty end for Sichuan?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q19770 p:P131 ?s . ?s ps:P131 wd:Q9683 . ?s pq:P582 ?value}