what is the {end time} for {Grand Duchy of Finland} has {capital} as {Turku} ?
Until when was the capital of the Grand Duchy of Finland Turku?
SELECT ?value WHERE { wd:Q62633 p:P36 ?s . ?s ps:P36 wd:Q38511 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q62633> .
?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> <http://wikidata.dbpedia.org/resource/Q38511> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

Turku was the capital of the Grand Duchy of Finland until what date?