What is the {district of India} for {capital of} of {Allahabad}
Give me the name of Allahabad's district capital?
What is the name of district of capital of Allahabad of India?
SELECT DISTINCT ?i WHERE { resource:Allahabad property:capital_of ?i . ?i rdf:type ontology:district_of_India }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q162442> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376> . ?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/Q1149652> } 
 select distinct ?obj where { wd:Q162442 wdt:P1376 ?obj . ?obj wdt:P31 wd:Q1149652 } 
Allahabad district