What is {diplomatic relation} of {Vietnam} that is {statement is subject of} is {Japan–Vietnam relations} ?
Which is the diplomatic relation between Vietnam and Japan?
What is Vietnam of Japan-Vietnam relations of statement is subject odf diplomatic relation?
SELECT ?g WHERE { ?o property:statement_is_subject_of resource:Japan–Vietnam_relations . resource:Vietnam property:diplomatic_relation ?o . ?o property:diplomatic_relation ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q881> .
?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 .
?statement <http://www.wikidata.org/entity/P805> <http://wikidata.dbpedia.org/resource/Q1051802>
} 

SELECT ?obj WHERE { wd:Q881 p:P530 ?s . ?s ps:P530 ?obj . ?s pq:P805 wd:Q1051802 }