What is the {mainland territory of Australia} for {replaced by} of {Northern Territory}
Which territory of Australia was replaced as  Northern Territory?
Which territory of Australia was replaced by the Northern Territory?
SELECT DISTINCT ?y WHERE { resource:Northern_Territory property:replaced_by ?y . ?y rdf:type ontology:mainland_territory_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/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/Q14192234> } 
 select distinct ?obj where { wd:Q3235 wdt:P1366 ?obj . ?obj wdt:P31 wd:Q14192234 } 
North Australia