Question: Montgomery County, which has a common border with Arlington County and a population of 971777, is relative to what location?
Choices:
consolidated city-county
southeast
west-northwest
east
south-southeast
south
north-northwest
south-southwest
north
northeast
Answer: south
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "971777"^^xsd:double . ?e_2 <pred:name> "Arlington 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: Montgomery County
function: FilterNum
dependencies: 0
inputs: population
971777
=
function: Find
inputs: Arlington County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location