What is the {capital} for {replaces} of {Tenochtitlan}
What city supplanted the capital of Tenochtitlan?
What city replaced the capital of Tenochtitlan?
SELECT DISTINCT ?n WHERE { ?n property:replaces resource:Tenochtitlan . ?n rdf:type ontology:capital }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?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> <http://wikidata.dbpedia.org/resource/Q13695> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5119> } 
 select distinct ?sbj where { ?sbj wdt:P1365 wd:Q13695 . ?sbj wdt:P31 wd:Q5119 } 
Mexico City