Question: Who replaced Aga Khan III as the Islmaili imam?
Paraphrase: Which person took over the Islmaili imam over Aga Khan III?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q366213 p:P39 ?s . ?s ps:P39 wd:Q38998920 . ?s pq:P1366 ?value}