What is {end time} and {start time} of {{Belfast} has {country} as {United Kingdom of Great Britain and Ireland}}
When was Belfast a country of the UK?
Which is {end time} and {start time} of {{Belfast} has {country} as {United Kingdom of Great Britain and Ireland}}
SELECT ?i ?n WHERE { ?x property:country resource:United_Kingdom_of_Great_Britain_and_Ireland . ?x property:end_time ?i . resource:Belfast property:country ?x . ?x property:start_time ?n }
select distinct ?value1 ?value2 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/Q174193>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q10686 p:P17 ?s . ?s ps:P17 wd:Q174193 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }