Question: On the topic of the France–Luxembourg border, which state has a common border with France?
Choices: Bulgaria
Tajikistan
Monaco
Finland
Luxembourg
Lithuania
Kazakhstan
Kosovo
Sweden
Fiji
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "France" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "France–Luxembourg border" .  }
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: shares border with
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
France–Luxembourg border
function: FilterConcept
dependencies: 2
inputs: state
function: What
dependencies: 3
Answer: Luxembourg