Question: Which location is the border, that Montgomery County (the one bordering Loudoun County) shares with Frederick County (the one whose ISNI is 0000 0004 0433 6919), relative to ?
Choices:
consolidated city-county
south-southwest
east
west
north-northwest
northwest
west-northwest
southwest
south-southeast
southeast
Program:
function: Find
inputs: Loudoun County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Montgomery County
function: And
dependencies: 1
2
function: Find
inputs: Frederick County
function: FilterStr
dependencies: 4
inputs: ISNI
0000 0004 0433 6919
function: QueryRelationQualifier
dependencies: 3
5
inputs: shares border with
direction relative to location
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Loudoun County" . ?e_2 <pred:name> "Frederick County" . ?e_2 <ISNI> ?pv . ?pv <pred:value> "0000 0004 0433 6919" . ?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 .  }
Answer: northwest