what is the {end time} for {Belfast} has {country} as {Kingdom of Ireland} ?
When did Belfast stop being part of Ireland's Kingdom?
When did Belfast stop being part of the Kingdom of Ireland?
SELECT ?c WHERE { ?z property:country resource:Kingdom_of_Ireland . resource:Belfast property:country ?z . ?z property:end_time ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q10686> .
?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/Q215530> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q10686 p:P17 ?s . ?s ps:P17 wd:Q215530 . ?s pq:P582 ?value}