Question: Montgomery Province (the one whose zone is 506.9 square mile) offers border with Fairfax District, which area is it relative to
Choices:
south
north-northwest
consolidated city-county
northwest
northeast
west
west-northwest
south-southwest
southwest
north
Answer: southwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <area> ?pv . ?pv <pred:unit> "square mile" . ?pv <pred:value> "506.9"^^xsd:double . ?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: FilterNum
dependencies: 0
inputs: area
506.9 square mile
=
function: Find
inputs: Fairfax County
function: QueryRelationQualifier
dependencies: 1
2
inputs: shares border with
direction relative to location