What is {end time} and {start time} of {{Belgrade} has {country} as {Kingdom of Yugoslavia}}
During which years was Belgrade in the Kingdom of Yugoslavia?
From when until when was Belgrade in the Kingdom of Yugoslavia?
SELECT ?x ?h WHERE { resource:Belgrade property:country ?i . ?i property:end_time ?x . ?i property:country resource:Kingdom_of_Yugoslavia . ?i property:start_time ?h }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3711> . ?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/Q191077>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q3711 p:P17 ?s . ?s ps:P17 wd:Q191077 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }