What is the {self-governing colony of the British Empire} for {capital} of {Melbourne}
What is the capital of Melbourne?
What is the capital of Melbourne?
SELECT DISTINCT ?c WHERE { ?c property:capital resource:Melbourne . ?c rdf:type ontology:self-governing_colony_of_the_British_Empire }
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/P36> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3141> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7448101> } 
 select distinct ?sbj where { ?sbj wdt:P36 wd:Q3141 . ?sbj wdt:P31 wd:Q7448101 } 
Colony of Victoria