what is the {replaced by} for {Ion Antonescu} has {position held} as {Prime Minister of Romania} ?
Who replaced Ion Antonescu as the Prime Minister of Romania?
Give me the name of the person who replaced Ion Antonescu for the position he held as the Prime Minister of Romania?
SELECT ?d WHERE { ?i property:replaced_by ?d . resource:Ion_Antonescu property:position_held ?i . ?i property:position_held resource:Prime_Minister_of_Romania }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q152030> .
?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/Q15304810> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q152030 p:P39 ?s . ?s ps:P39 wd:Q15304810 . ?s pq:P1366 ?value}