What is {country} of {Kuril Islands} that is {end time} is {1875-0-0} ?
Name the country in the Kuril Islands that ends at 1875-0-0?
What is the country in the Kuril Islands that ends at 1875-0-0?
SELECT ?g WHERE { ?n property:end_time ?s . ?n property:country ?g . resource:Kuril_Islands property:country ?n . FILTER ( CONTAINS ( YEAR ( ?s ) , '1875' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80389> .
?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 .
?statement <http://www.wikidata.org/entity/P582> <1875-0-0>
} 

SELECT ?obj WHERE { wd:Q80389 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1875')) }