Question: Where exactly does Montgomery County (the one that is a part of Washington metropolitan area) share a border with Prince George's County ?
Choices: north
northeast
north-northwest
south
south-southeast
southeast
southwest
east
consolidated city-county
south-southwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Montgomery County" . ?e_1 <part_of> ?e_3 . ?e_3 <pred:name> "Washington metropolitan area" . ?e_2 <pred:name> "Prince George's 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: Washington metropolitan area
function: Relate
dependencies: 0
inputs: part of
backward
function: Find
inputs: Montgomery County
function: And
dependencies: 1
2
function: Find
inputs: Prince George's County
function: QueryRelationQualifier
dependencies: 3
4
inputs: shares border with
direction relative to location
Answer: southeast