Question: Which sovereign state shares a border with a democracy that has 428 as its ISO 3166-1 numeric code and is related to the Latvia-Poland border?
Choices:
South Sudan
Samoa
Switzerland
Russian Soviet Federative Socialist Republic
Weimar Republic
Russia
Cambodia
Soviet Union
Poland
Kiribati
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-1 numeric code
428
function: FilterConcept
dependencies: 1
inputs: democracy
function: Relate
dependencies: 2
inputs: shares border with
forward
function: QFilterStr
dependencies: 3
inputs: statement is subject of
Latvia–Poland border
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_1 <ISO_3166-1_numeric_code> ?pv . ?pv <pred:value> "428" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Latvia–Poland border" .  }
Answer: Poland