what is the {end time} for {Jonathan Swift} has {residence} as {Whitehaven} ?
When did Jonathan Swift, a resident of Whitehaven, die?
What is the end time for Whitehaven resident Jonathan Swift?
SELECT ?m WHERE { ?v property:end_time ?m . resource:Jonathan_Swift property:residence ?v . ?v property:residence resource:Whitehaven }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41166> .
?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/Q1012481> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q41166 p:P551 ?s . ?s ps:P551 wd:Q1012481 . ?s pq:P582 ?value}