Question: Relative to what is the location of Denton County, bordering Dallas County, the place with 2,453,907 people ?
Choices:
south-southeast
west-northwest
southwest
consolidated city-county
southeast
northwest
south-southwest
northeast
west
north-northwest
Answer: northwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Dallas County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2453907"^^xsd:double . ?e_2 <pred:name> "Denton 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: Dallas County
function: FilterNum
dependencies: 0
inputs: population
2453907
=
function: Find
inputs: Denton County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location