what is the {replaced by} for {Viktor Orbán} has {position held} as {Prime Minister of Hungary} ?
Who was Viktor Orban's replacement as Prime Minister of Hungary?
Who replaced Viktor Orbán as Prime Minister of Hungary?
SELECT ?c WHERE { resource:Viktor_Orbán property:position_held ?m . ?m property:replaced_by ?c . ?m property:position_held resource:Prime_Minister_of_Hungary }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57641> .
?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/Q3315094> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q57641 p:P39 ?s . ?s ps:P39 wd:Q3315094 . ?s pq:P1366 ?value}