Who replaced Sam Houston as President of the Republic of Texas?
SELECT ?value WHERE { wd:Q216547 p:P39 ?s . ?s ps:P39 wd:Q16157683 . ?s pq:P1366 ?value}
sam houston: Q216547 president of the republic of texas: Q16157683