what is the {replaces} for {J. J. Thomson} has {position held} as {President of the Royal Society} ?
Tell me who took the place of J. J. Thompson as Royal society president.
Who replaces J.J. Thompson as the President of the Royal Society?
SELECT ?t WHERE { ?m property:position_held resource:president_of_the_Royal_Society . ?m property:replaces ?t . resource:J._J._Thomson property:position_held ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q47285> .
?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/Q55713110> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q47285 p:P39 ?s . ?s ps:P39 wd:Q55713110 . ?s pq:P1365 ?value}