Question: For Portsmouth (the one whose population is 96564), which shares a border with Hampton, to which location is it relative?
Choices:
south-southwest
south
northeast
southeast
north-northwest
southwest
northwest
west
east
north
Program:
function: Find
inputs: Portsmouth
function: FilterNum
dependencies: 0
inputs: population
96564
=
function: Find
inputs: Hampton
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Portsmouth" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "96564"^^xsd:double . ?e_2 <pred:name> "Hampton" . ?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: north