Question: Which location has related to Montgomery County with postal code 20993 that shares border with Fairfax County?
Choices:
east
southwest
north
southeast
west
south
consolidated city-county
south-southeast
northeast
west-northwest
Answer: southwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "20993" . ?e_2 <pred:name> "Fairfax 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
20993
function: Find
inputs: Fairfax County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location