What is the {state of Malaysia} for {enclave within} of {Kuala Lumpur}
Is Kuala Lumpur Malaysia's state
Is Kuala Lumpur the state of Malaysia
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:state_of_Malaysia . resource:Kuala_Lumpur property:enclave_within ?v }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1865> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P501> . ?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/Q15063586> } 
 select distinct ?obj where { wd:Q1865 wdt:P501 ?obj . ?obj wdt:P31 wd:Q15063586 } 
Selangor