what is the {end time} for {Pierre Trudeau} has {position held} as {Prime Minister of Canada} ?
what is the {conclusion time} for {Pierre Trudeau} who has {position held} as {Prime Serve of Canada} ?
what is the {end time} for {Pierre Trudeau} who has {position held} as {Prime Minister of Canada} ?
SELECT ?y WHERE { ?z property:position_held resource:Prime_Minister_of_Canada . resource:Pierre_Trudeau property:position_held ?z . ?z property:end_time ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8619> .
?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/Q839078> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q8619 p:P39 ?s . ?s ps:P39 wd:Q839078 . ?s pq:P582 ?value}