Question: WHich sovereign state has a diplomatic relation with Germany (the subject of this statement is Côte d'Ivoire–Germany relations) and it is exported to Sierra Leone?
Choices:
Samoa
Kiribati
People's Republic of China
Ivory Coast
Switzerland
Weimar Republic
South Sudan
United Kingdom
Cambodia
Russian Soviet Federative Socialist Republic
Answer: Ivory Coast
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Germany" .  [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Côte d'Ivoire–Germany relations" . ?e <exported_to> ?e_2 . ?e_2 <pred:name> "Sierra Leone" .  }
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Côte d'Ivoire–Germany relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Find
inputs: Sierra Leone
function: Relate
dependencies: 4
inputs: exported to
backward
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: And
dependencies: 3
6
function: What
dependencies: 7