What is the {landlocked country} for {replaced by} of {Czechoslovakia}
Which country, that is landlocked, replaced Czechoslovakia?
What landlocked country replaced Czechoslovakia?
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:landlocked_country . resource:Czechoslovakia property:replaced_by ?t }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q33946> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1366> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q123480> } 
 select distinct ?obj where { wd:Q33946 wdt:P1366 ?obj . ?obj wdt:P31 wd:Q123480 } 