what is the {replaces} for {Frank Forde} has {position held} as {Member of the Queensland Legislative Assembly} ?
When Frank Forde left as a member of the Queensland Legislative Assembly, who replaced him?
Who replaced Frank Forde as Member of the Queensland Legislative Assembly?
SELECT ?b WHERE { ?e property:position_held resource:Member_of_the_Queensland_Legislative_Assembly . resource:Frank_Forde property:position_held ?e . ?e property:replaces ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q459146> .
?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/Q18526194> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q459146 p:P39 ?s . ?s ps:P39 wd:Q18526194 . ?s pq:P1365 ?value}