Question: Who replaced Sam Houston as President of the Republic of Texas?
Paraphrase: Which was the replacement for Sam Houston as President of the Republic of Texas?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q216547 p:P39 ?s . ?s ps:P39 wd:Q16157683 . ?s pq:P1366 ?value}