Question: Which unitary state has a diplomatic relation with the sovereign state Kyrgyzstan (Kyrgyzstan–Tajikistan relations) ?
Choices:
Finland
Sweden
Kazakhstan
Fiji
Bulgaria
Cuba
Tajikistan
Kosovo
Greece
Luxembourg
Program:
function: Find
inputs: Kyrgyzstan
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 3
inputs: statement is subject of
Kyrgyzstan–Tajikistan relations
function: FilterConcept
dependencies: 4
inputs: unitary state
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Kyrgyzstan" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Kyrgyzstan–Tajikistan relations" .  }
Answer: Tajikistan