Question: What is the ISO 3166-1 alpha-2 code for Guatemala, bordering Honduras ?
Choices:
GR
MA
TN
PH
MY
KP
GT
WS
GY
BT
Answer: GT
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Honduras" .  [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Guatemala–Honduras border" . ?e <ISO_3166-1_alpha-2_code> ?pv .  }
Program:
function: Find
inputs: Honduras
function: Relate
dependencies: 0
inputs: shares border with
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Guatemala–Honduras border
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttr
dependencies: 3
inputs: ISO 3166-1 alpha-2 code