Question: The Laos–Thailand border is shared between which sovereign state and Thailand?
Choices:
Malaysia
South Sudan
Laos
Myanmar
Socialist Federal Republic of Yugoslavia
Kiribati
Switzerland
Samoa
Russian Soviet Federative Socialist Republic
Weimar Republic
Program:
function: Find
inputs: Thailand
function: Relate
dependencies: 0
inputs: shares border with
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Laos–Thailand border
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Thailand" .  [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Laos–Thailand border" .  }
Answer: Laos