Question: To which location is it relative as El Paso County (the one whose area is 5516 square kilometre) shares a border with Douglas County (the one whose population is 285465)?
Choices: southwest
consolidated city-county
northeast
north
west
south
northwest
east
north-northwest
west-northwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "El Paso County" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "5516"^^xsd:double . ?e_2 <pred:name> "Douglas County" . ?e_2 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "285465"^^xsd:double . ?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: El Paso County
function: FilterNum
dependencies: 0
inputs: area
5516 square kilometre
=
function: Find
inputs: Douglas County
function: FilterNum
dependencies: 2
inputs: population
285465
=
function: QueryRelationQualifier
dependencies: 1
3
inputs: shares border with
direction relative to location
Answer: north