Question: What was the capital of Alabama through 1846?
Paraphrase: Until the end of 1846, what was Alabama's capital?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q173 p:P36 ?s . ?s ps:P36 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1846')) }