what is the {end time} for {Vladimir Lenin} has {residence} as {Podolsk} ?
When did Vladimir Lenin stop living in Podolsk?
SELECT ?value WHERE { wd:Q1394 p:P551 ?s . ?s ps:P551 wd:Q19520 . ?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/Q1394> .
?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/Q19520> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

What year did Vladimir Lenin leave Podolsk?