what is the {end time} for {Paul Krugman} has {educated at} as {Yale University} ?
Paul Krugman stopped his education at yale in what year?
when did Paul Krugman stop his education at Yale University?
SELECT ?v WHERE { ?h property:educated_at resource:Yale_University . resource:Paul_Krugman property:educated_at ?h . ?h property:end_time ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q131112> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q49112> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q131112 p:P69 ?s . ?s ps:P69 wd:Q49112 . ?s pq:P582 ?value}