Question: On which location does Denton County borders Dallas County (the one with 2,480,331 people)?
Choices:
consolidated city-county
southeast
south
south-southeast
east
north
west
north-northwest
west-northwest
northwest
Answer: southeast
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Denton County" . ?e_2 <pred:name> "Dallas County" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2480331"^^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: Denton County
function: Find
inputs: Dallas County
function: FilterNum
dependencies: 1
inputs: population
2480331
=
function: QueryRelationQualifier
dependencies: 0
2
inputs: shares border with
direction relative to location