what is the {end time} for {Chiang Kai-shek} has {position held} as {President of the Executive Yuan} ?
Chiang Kai-shek was the president of the executive Yuan at what time?
when did Chiang Kai-shek work as the president of the executive Yuan?
SELECT ?r WHERE { ?i property:end_time ?r . ?i property:position_held resource:President_of_the_Executive_Yuan . resource:Chiang_Kai-shek property:position_held ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16574> .
?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/Q702650> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q16574 p:P39 ?s . ?s ps:P39 wd:Q702650 . ?s pq:P582 ?value}