Question: What sovereign state has Indonesia–Yemen diplomatic relations with Indonesia?
Choices:
Iran
Weimar Republic
South Africa
Philippines
Cambodia
Switzerland
Kiribati
Laos
People's Republic of China
Yemen
Program:
function: Find
inputs: Indonesia
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Indonesia–Yemen relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Indonesia" .  [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Indonesia–Yemen relations" .  }
Answer: Yemen