Question: What is the ITU letter code of the sovereign state that shares a border with Togo (in the subject of Benin–Togo border)?
Choices:
TON
TKM
LBY
SNG
MNE
CAN
VTN
BEN
BAH
URG
Answer: BEN
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Togo" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Benin–Togo border" . ?e <ITU_letter_code> ?pv .  }
Program:
function: Find
inputs: Togo
function: Relate
dependencies: 0
inputs: shares border with
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Benin–Togo border
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttr
dependencies: 3
inputs: ITU letter code