What is the {colonial power} for {country} of {Lisbon}
Which colonial control controlled Lisbon?
Which colonial power controlled Lisbon?
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:colonial_power . resource:Lisbon property:country ?r }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q597> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> . ?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/Q20181813> } 
 select distinct ?obj where { wd:Q597 wdt:P17 ?obj . ?obj wdt:P31 wd:Q20181813 } 
Portugal