Who replaced Napoleon III as president of the French Republic?
SELECT ?value WHERE { wd:Q7721 p:P39 ?s . ?s ps:P39 wd:Q191954 . ?s pq:P1365 ?value}
napoleon iii: Q7721 president of the french republic: Q191954