Question: What sovereign state has a diplomatic relations with North Korea (Guinea-Bissau - North Korea relations) and reports 624 as the ISO 3166-1 numeric code ?
Choices: Russian Soviet Federative Socialist Republic
Cambodia
Socialist Federal Republic of Yugoslavia
Weimar Republic
Kiribati
Guinea-Bissau
Samoa
Switzerland
South Sudan
Benin
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "North Korea" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Guinea-Bissau–North Korea relations" . ?e <ISO_3166-1_numeric_code> ?pv . ?pv <pred:value> "624" .  }
Program:
function: Find
inputs: North Korea
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Guinea-Bissau–North Korea relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: FindAll
function: FilterStr
dependencies: 4
inputs: ISO 3166-1 numeric code
624
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: And
dependencies: 3
6
function: What
dependencies: 7
Answer: Guinea-Bissau