Question: When did Philadelphia become capital of the USA?
Paraphrase: What year did Philadelphia become a capital in the USA?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q1345 p:P1376 ?s . ?s ps:P1376 wd:Q30 . ?s pq:P580 ?value}