Question: On which location does Jefferson county, with popuation of 551,798, share its border with Boulder County?
Choices:
south-southeast
southwest
northwest
west
east
north
southeast
north-northwest
west-northwest
consolidated city-county
Answer: north
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jefferson County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "551798"^^xsd:double . ?e_2 <pred:name> "Boulder County" . ?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 .  }
Program:
function: Find
inputs: Jefferson County
function: FilterNum
dependencies: 0
inputs: population
551798
=
function: Find
inputs: Boulder County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location