What is {diplomatic relation} of {sovereign state} of {Cape Cod} ?
Cape Cod has a place to which state, and tends towards which discretionary relation?
Cape Cod belongs to which state, and tends towards which diplomatic relation?
SELECT ?z WHERE { ?f property:diplomatic_relation ?z . resource:Cape_Cod property:country ?f }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q49152> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17>. ?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:Q49152 wdt:P17 ?X . ?X wdt:P530 ?answer}
Canada Japan Norway Ireland Hungary Belgium Luxembourg Finland Sweden Denmark Poland Lithuania Italy Switzerland Greece Turkey Portugal Netherlands Uruguay Mexico Ethiopia Ghana France United Kingdom People's Republic of China Brazil Russia Germany Belarus Iceland Estonia Latvia Ukraine Czech Republic Slovakia Slovenia Moldova Romania North Macedonia Albania Croatia Bosnia and Herzegovina Azerbaijan Andorra Cyprus Georgia Kazakhstan Malta Monaco Montenegro Belize Barbados Indonesia Algeria Uzbekistan Chile Singapore Liechtenstein Bahrain Armenia Serbia Australia Argentina Peru Cambodia European Union East Timor Chad New Zealand India Tuvalu Samoa Vanuatu Papua New Guinea Palau Federated States of Micronesia Marshall Islands Kiribati Mongolia Fiji Venezuela Suriname Paraguay Guyana Ecuador Bolivia Trinidad and Tobago Saint Vincent and the Grenadines Saint Lucia Jamaica Grenada Guatemala Honduras Dominica Dominican Republic Haiti El Salvador Iraq Costa Rica Israel Panama Yemen Nicaragua Kyrgyzstan Kuwait Laos Lebanon Maldives Malaysia Myanmar Nepal Pakistan Saudi Arabia Sri Lanka Syria Tajikistan Taiwan Turkmenistan Vietnam South Korea Afghanistan Bangladesh Mali Angola Brunei Tanzania Philippines Togo Tunisia Zambia South Sudan Benin Botswana Burkina Faso Burundi Comoros Republic of the Congo Democratic Republic of the Congo Djibouti Equatorial Guinea Eritrea Gabon The Gambia Guinea Guinea-Bissau Ivory Coast Cape Verde Lesotho Liberia Libya Madagascar Malawi Mauritania Mauritius Morocco Mozambique Namibia Niger Nigeria Uganda Rwanda São Tomé and Príncipe Senegal Seychelles Sierra Leone Somalia Sudan Eswatini Kosovo Cayman Islands Hong Kong Macau Soviet Union Aruba Bermuda Netherlands Antilles Russian Empire Kingdom of Hawaiʻi Holy See Republic of Texas State of Palestine