What is {capital} of {Kingdom of Sicily} that is {end time} is {1816-1-1} ?
What was Kingdom of Sicily's capital in the year of 1816?
SELECT ?obj WHERE { wd:Q188586 p:P36 ?s . ?s ps:P36 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1816')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188586> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1816-1-1>
} 

In 1816, what was the capital of Sicily?