what is the {end time} for {Dublin} has {country} as {United Kingdom of Great Britain and Ireland} ?
What is the date that Dublin will not be a part of United Kingdom of Great Britain and Ireland?
When will Dublin stop being a part of United Kingdom of Great Britain and Ireland?
SELECT ?o WHERE { ?a property:end_time ?o . ?a property:country resource:United_Kingdom_of_Great_Britain_and_Ireland . resource:Dublin property:country ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1761> .
?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/Q174193> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q1761 p:P17 ?s . ?s ps:P17 wd:Q174193 . ?s pq:P582 ?value}