what is the {replaced by} for {Sebastian Piñera} has {position held} as {President of Chile} ?
Give me the name of the person Sebastian Pinera replaced as President of Chili.
Who did Sebastian Piñera replace as President of Chile?
SELECT ?e WHERE { ?y property:position_held resource:President_of_Chile . resource:Sebastián_Piñera property:position_held ?y . ?y property:replaced_by ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q306> .
?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/Q466956> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q306 p:P39 ?s . ?s ps:P39 wd:Q466956 . ?s pq:P1366 ?value}