what is the {end time} for {Goa} has {located in the administrative territorial entity} as {Portuguese India} ?
When is the end time for goa has located in the administrative territorial entity as portuguese india?
which is the end time for goa has located in the administrative territorial entity as portuguese india?
SELECT ?b WHERE { resource:Goa property:located_in_the_administrative_territorial_entity ?w . ?w property:end_time ?b . ?w property:located_in_the_administrative_territorial_entity resource:Portuguese_India }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1171> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q323904> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q1171 p:P131 ?s . ?s ps:P131 wd:Q323904 . ?s pq:P582 ?value}