what is the {end time} for {Geneva} has {capital of} as {Republic of Geneva} ?
Geneva was declared the capitol of the republic of Geneva on what date?
when did Geneva become the capital of the republic of Geneva?
SELECT ?f WHERE { resource:Geneva property:capital_of ?g . ?g property:end_time ?f . ?g property:capital_of resource:Republic_of_Geneva }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q71> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q23366230> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q71 p:P1376 ?s . ?s ps:P1376 wd:Q23366230 . ?s pq:P582 ?value}