what is the {start time} for {Alan García} has {position held} as {President of Peru} ?
Alan Garcia became President of Peru in what year?
When did Alan García become the President of Peru?
SELECT ?t WHERE { resource:Alan_García property:position_held ?l . ?l property:position_held resource:President_of_Peru . ?l property:start_time ?t }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q167211> .
?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/Q5708511> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q167211 p:P39 ?s . ?s ps:P39 wd:Q5708511 . ?s pq:P580 ?value}