Question: South Holland shares which directional border with Utrecht, which borders Gelderland?
Choices:
east
south-southwest
northwest
southwest
west-northwest
southeast
north-northwest
northeast
south
consolidated city-county
Program:
function: Find
inputs: South Holland
function: Find
inputs: Gelderland
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Utrecht
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
direction relative to location
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "South Holland" . ?e_2 <pred:name> "Utrecht" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Gelderland" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <direction_relative_to_location> ?qpv .  }
Answer: northeast