what is the {end time} for {Scandinavian Airlines} has {manager/director} as {John Dueholm} ?
When did Scandinavian Airline's John Dueholm end his position of manager/director?
When John Dueholm ended as manager/director at Scandinavian Airlines?
SELECT ?o WHERE { ?m property:end_time ?o . ?m property:director_/_manager resource:John_Dueholm . resource:Scandinavian_Airlines property:director_/_manager ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q187854> .
?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/Q24175767> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q187854 p:P1037 ?s . ?s ps:P1037 wd:Q24175767 . ?s pq:P582 ?value}