what is the {end time} for {Pedro Pablo Kuczynski} has {country of citizenship} as {United States of America} ?
Give me the year Pedro Pablo Kuczynski last had citizenship of the USA.
What was the year Pedro Pablo Kuczynski had his last citizenship of the United States of America?
SELECT ?i WHERE { ?o property:end_time ?i . ?o property:country_of_citizenship resource:United_States_of_America . resource:Pedro_Pablo_Kuczynski property:country_of_citizenship ?o }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q381027> .
?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/Q30> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q381027 p:P27 ?s . ?s ps:P27 wd:Q30 . ?s pq:P582 ?value}