What is {has capital} of {Pallava}, that has {in administrative unit} is {Kanchipuram district} ?
"What is the capital of Pallava that has the administrative unit in the Kanchipuram district?"
"What is the capital of Pallava that has the administrative unit in the Kanchipuram district?"
SELECT ?q WHERE { ?q property:located_in_the_administrative_territorial_entity resource:Kanchipuram_district . resource:Pallava_dynasty property:capital ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q466803> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q15157> . }
SELECT ?answer WHERE { wd:Q466803 wdt:P36 ?answer . ?answer wdt:P131 wd:Q15157}
Kanchipuram