What is the {state of Australia} for {replaces} of {Northern Territory}
[]
Which state of Australia replaces Northern Territory?
SELECT DISTINCT ?j WHERE { resource:Northern_Territory property:replaces ?j . ?j rdf:type ontology:state_of_Australia }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3235> . ?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/Q5852411> } 
 select distinct ?obj where { wd:Q3235 wdt:P1365 ?obj . ?obj wdt:P31 wd:Q5852411 } 
South Australia