what is the {end time} for {Adolphe Thiers} has {position held} as {head of government of France} ?
When did Adolphe Thiers resign his position as the head of government in France?
At what end time did Adolphe Thiers give up his position held as the head of government in France?
SELECT ?l WHERE { ?a property:end_time ?l . ?a property:position_held resource:head_of_government_of_France . resource:Adolphe_Thiers property:position_held ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5738> .
?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/Q15135541> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q5738 p:P39 ?s . ?s ps:P39 wd:Q15135541 . ?s pq:P582 ?value}