what is the {end time} for {Albrecht Dürer} has {residence} as {Nuremberg} ?
When did Albrecht Dürer end his residence in Nuremburg?
SELECT ?value WHERE { wd:Q5580 p:P551 ?s . ?s ps:P551 wd:Q2090 . ?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/Q5580> .
?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/Q2090> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

When had Albrecht Durer checked out his residence in Nuremburg?.