what is the {replaces} for {Humayun} has {position held} as {Mughal emperor} ?
Which emperor took over for Humayun of the Munghal empire?
Who replaced Humayun as the emperor of the Munghal empire ?
SELECT ?h WHERE { resource:Humayun property:position_held ?r . ?r property:position_held resource:Mughal_emperor . ?r property:replaces ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q486188> .
?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/Q15390704> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q486188 p:P39 ?s . ?s ps:P39 wd:Q15390704 . ?s pq:P1365 ?value}