Question: When did Riga become the capital of Latvia?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q1773 p:P17 ?s . ?s ps:P17 wd:Q211 . ?s pq:P580 ?value}