what is the {end time} for {Alexander Pope} has {country of citizenship} as {Kingdom of England} ?
When did the Alexander pope die in the Kingdom of England
SELECT ?r WHERE { resource:Alexander_Pope property:country_of_citizenship ?b . ?b property:country_of_citizenship resource:Kingdom_of_England . ?b property:end_time ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q164047> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P27> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q179876> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q164047 p:P27 ?s . ?s ps:P27 wd:Q179876 . ?s pq:P582 ?value}