Question: Who replaced Albus Dumbledore as headmaster of Hogwarts?
Paraphrase: Who succeeded Dumbledore as Hogwart's headmaster?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q712548 p:P39 ?s . ?s ps:P39 wd:Q2473303 . ?s pq:P1366 ?value}