What is {diplomatic relation} of {Brunei} that is {statement is subject of} is {Brunei–Canada relations} ?
Do Brunei and Canada have official political associations?
What are the diplomatic relations between Brunei and Canada?
SELECT ?m WHERE { resource:Brunei property:diplomatic_relation ?e . ?e property:diplomatic_relation ?m . ?e property:statement_is_subject_of resource:Brunei–Canada_relations }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q921> .
?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/Q15949089>
} 

SELECT ?obj WHERE { wd:Q921 p:P530 ?s . ?s ps:P530 ?obj . ?s pq:P805 wd:Q15949089 }