Question: Relative to which location does Jefferson County, with the population of 538,878, border Boulder County ?
Choices:
south-southwest
west
south-southeast
southwest
west-northwest
southeast
south
north
north-northwest
east
Answer: north
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Jefferson County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "538878"^^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
538878
=
function: Find
inputs: Boulder County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location