What is {position held} of {Auguste Beernaert} that is {replaces} is {Théophile de Lantsheere} ?
Name the position that Theophile de Lantsheere replaced Auguste Beernaert for.
Which position held by Auguste Beernaert that was replaced by Theophile de Lantsheere?
SELECT ?y WHERE { ?d property:replaces resource:Théophile_de_Lantsheere . resource:Auguste_Beernaert property:position_held ?d . ?d property:position_held ?y }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q202049> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1365> <http://wikidata.dbpedia.org/resource/Q7799889>
} 

SELECT ?obj WHERE { wd:Q202049 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q7799889 }