Question: If we know that Portsmouth (the one whose population is 95495) shares border with Chesapeake, which location is this border rreative to?
Choices:
south-southeast
south-southwest
consolidated city-county
east
northwest
southwest
south
north-northwest
northeast
west
Program:
function: Find
inputs: Portsmouth
function: FilterNum
dependencies: 0
inputs: population
95495
=
function: Find
inputs: Chesapeake
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> "95495"^^xsd:double . ?e_2 <pred:name> "Chesapeake" . ?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: south