Question: Who replaced Napoleon III as president of the French Republic?
Paraphrase: Who was the president of the French Republic after Napoleon III?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q7721 p:P39 ?s . ?s ps:P39 wd:Q191954 . ?s pq:P1365 ?value}