What is {subtopic of} of {economy of Japan}, that has {diplomatic relation} is {Afghanistan} ?
What is the subtopic within the economy of Japan with conciliatory connection with Afghanistan?
What is the subtopic in the economy of Japan with diplomatic relation with Afghanistan?
SELECT ?w WHERE { resource:economy_of_Japan property:facet_of ?w . ?w property:diplomatic_relation resource:Afghanistan }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q319831> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?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> <http://wikidata.dbpedia.org/resource/Q889> . }
SELECT ?answer WHERE { wd:Q319831 wdt:P1269 ?answer . ?answer wdt:P530 wd:Q889}