What is the {castle} for {replaces} of {Odessa}
In Odessa, what is the name of the castle?
What castle is located in Odessa?
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:castle . resource:Odessa property:replaces ?o }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1874> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1365> . ?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/Q23413> } 
 select distinct ?obj where { wd:Q1874 wdt:P1365 ?obj . ?obj wdt:P31 wd:Q23413 } 
Khadjibey