Question: What is the relative location of the border between Montgomery County (the one whose postal code is 20824–20825) and Arlington County?
Choices: northeast
north
southeast
southwest
west-northwest
south-southwest
south-southeast
south
northwest
west
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "20824–20825" . ?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: FilterStr
dependencies: 0
inputs: postal code
20824–20825
function: Find
inputs: Arlington County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location
Answer: south