what is the {end time} for {Vicente Fox} has {position held} as {Governor of Guanajuato} ?
When was Vicente Fox's position end as Governor of Guanajuato?
Give me the end time for Vicente Fox has position held as Governor of Guanajuato?
SELECT ?i WHERE { ?h property:position_held resource:Governor_of_Guanajuato . resource:Vicente_Fox_Quesada property:position_held ?h . ?h property:end_time ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q190572> .
?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/Q5589657> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q190572 p:P39 ?s . ?s ps:P39 wd:Q5589657 . ?s pq:P582 ?value}