Question: Which directional border is shared between Collin County and Dallas County, population 2408488?
Choices:
west-northwest
south-southeast
north
south
north-northwest
northeast
east
consolidated city-county
southwest
west
Answer: north
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Dallas County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "2408488"^^xsd:double . ?e_2 <pred:name> "Collin 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
2408488
=
function: Find
inputs: Collin County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location