What is {diplomatic relation} of {place of origin} of {Over the Rainbow} ?
What is the political connection of the origin of Over the Rainbow?
What is the diplomatic relation of the birthplace of Over the Rainbow?
SELECT ?g WHERE { resource:Over_the_Rainbow property:country_of_origin ?p . ?p property:diplomatic_relation ?g }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q161402> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P495>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q161402 wdt:P495 ?X . ?X wdt:P530 ?answer}