what is the {end time} for {CERN} has {manager/director} as {Rolf-Dieter Heuer} ?
Rolf-Dieter Heure left the position of director of CERN in what year?
When did Rolf-Dieter Heuer stop being the director of CERN?
SELECT ?a WHERE { resource:CERN property:director_/_manager ?d . ?d property:director_/_manager resource:Rolf-Dieter_Heuer . ?d property:end_time ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42944> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1037> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q65092> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q42944 p:P1037 ?s . ?s ps:P1037 wd:Q65092 . ?s pq:P582 ?value}