what is the {replaces} for {Samuel Taliaferro Rayburn} has {position held} as {Dean of the United States House of Representatives} ?
Who took over Samuel Talaferro Rayburns job after he left the Dean of the United States House of Representatives position?
Who replaced Samuel Taliaferro Rayburn as Dean of the United States House of Representatives?
SELECT ?t WHERE { resource:Samuel_Taliaferro_Rayburn property:position_held ?q . ?q property:replaces ?t . ?q property:position_held resource:Dean_of_the_United_States_House_of_Representatives }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1378052> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q5246680> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q1378052 p:P39 ?s . ?s ps:P39 wd:Q5246680 . ?s pq:P1365 ?value}