what is the {end time} for {Mumbai} has {country} as {Portuguese Empire} ?
When did Mumbai ended up freed from the Portuguese Domain?
When did Mumbai become liberated from the Portuguese Empire?
SELECT ?d WHERE { ?h property:end_time ?d . ?h property:country resource:Portuguese_Empire . resource:Mumbai property:country ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1156> .
?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> <http://wikidata.dbpedia.org/resource/Q200464> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q1156 p:P17 ?s . ?s ps:P17 wd:Q200464 . ?s pq:P582 ?value}