What is the {capital} for {capital} of {Wales}
What is Wales the capital of?
What is Wales the capital of?
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:capital . resource:Wales property:capital ?e }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q25> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> . ?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/Q5119> } 
 select distinct ?obj where { wd:Q25 wdt:P36 ?obj . ?obj wdt:P31 wd:Q5119 } 
Cardiff