What is the {city} for {capital of} of {Meghalaya}
The Capital of Meghalaya is?
What is the Capital of Meghalaya.
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:city . ?a property:capital_of resource:Meghalaya }
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/P1376> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1195> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q515> } 
 select distinct ?sbj where { ?sbj wdt:P1376 wd:Q1195 . ?sbj wdt:P31 wd:Q515 } 
Shillong