what is the {latest date} for {Ivan Turgenev} has {residence} as {Berlin} ?
on what date did Ivan Turgenev leave his residence in Berlin?
When did Ivan Turgenev leave his residence in Berlin?
SELECT ?b WHERE { resource:Ivan_Turgenev property:residence ?k . ?k property:latest_date ?b . ?k property:residence resource:Berlin }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42831> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q64> .
?statement <http://www.wikidata.org/entity/P1326> ?value. 
} 

SELECT ?value WHERE { wd:Q42831 p:P551 ?s . ?s ps:P551 wd:Q64 . ?s pq:P1326 ?value}