what is the {replaced by} for {George IV of the United Kingdom} has {position held} as {monarch} ?
Which Monarch took over from George IV of UK?
Who replaced George IV of the United Kingdom as monarch ?
SELECT ?u WHERE { ?k property:position_held resource:monarch . resource:George_IV_of_the_United_Kingdom property:position_held ?k . ?k property:replaced_by ?u }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q130586> .
?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/Q116> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q130586 p:P39 ?s . ?s ps:P39 wd:Q116 . ?s pq:P1366 ?value}