Question: What is the direction of Hunsville which shares a border with Decatur (the one that shares border with Huntsville)?
Choices:
164
east
northeast
Ukraine relief location map.jpg
southwest
west
13578
north
ML0106
north-northeast
Answer: southwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Huntsville" . ?e_2 <pred:name> "Decatur" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Huntsville" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <direction> ?qpv .  }
Program:
function: Find
inputs: Huntsville
function: Find
inputs: Huntsville
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Decatur
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
direction