Question: What is the diplomatic relationship between Thailand and Australia, which also has diplomatic ties to South Korea?
Choices: Madagascar–Taiwan relations
Australia–Thailand relations
Macedonia–Taiwan relations
Belgium–Taiwan relations
Swaziland–United States relations
Greece–Zimbabwe relations
Belarus–Lithuania relations
France–Kosovo relations
Bangladesh–Tanzania relations
Montenegro–Serbia border
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Australia" . ?e_3 <diplomatic_relation> ?e_1 . ?e_3 <pred:name> "South Korea" . ?e_2 <pred:name> "Thailand" . ?e_1 <diplomatic_relation> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: South Korea
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Thailand
function: QueryRelationQualifier
dependencies: 3
4
inputs: diplomatic relation
statement is subject of
Answer: Australia–Thailand relations