Question: What sovereign state has Bulgaria–Slovenia diplomatic relations with Bulgaria?
Choices: Russian Soviet Federative Socialist Republic
Cambodia
Slovenia
Turkey
Weimar Republic
Iraq
Switzerland
Egypt
Kiribati
United Kingdom
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Bulgaria" .  [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Bulgaria–Slovenia relations" .  }
Program:
function: Find
inputs: Bulgaria
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Bulgaria–Slovenia relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: What
dependencies: 3
Answer: Slovenia