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