what is the {end time} for {Harold Macmillan} has {position held} as {Member of the 38th Parliament of the United Kingdom} ?
When did Harold MacMillan leave the 38th Parliament of the United Kingdom?
When did Harold MacMillan end his position as Member of the 38th Parliament of the United Kingdom?
SELECT ?e WHERE { ?n property:end_time ?e . resource:Harold_Macmillan property:position_held ?n . ?n property:position_held resource:Member_of_the_38th_Parliament_of_the_United_Kingdom }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128985> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q41582597> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q128985 p:P39 ?s . ?s ps:P39 wd:Q41582597 . ?s pq:P582 ?value}