What is the {transcontinental country} for {diplomatic relation} of {Empire of Japan}
Outside of Asia, what countries did the Empire of Japan engage in diplomacy with?
With which transcontinental countries did the Empire of Japan have diplomatic relations?
SELECT DISTINCT ?w WHERE { resource:Empire_of_Japan property:diplomatic_relation ?w . ?w rdf:type ontology:transcontinental_country }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188712> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1323642> } 
 select distinct ?obj where { wd:Q188712 wdt:P530 ?obj . ?obj wdt:P31 wd:Q1323642 } 