Question: Who did Nelson Mandela replace as the President of South Africa?
Paraphrase: Give me the name of the person Nelson Mandela replaced as the President of South Africa.
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q8023 p:P39 ?s . ?s ps:P39 wd:Q273884 . ?s pq:P1366 ?value}