Question: In which location does Prince George's County share borders with Alexandria?
Choices: southwest
southeast
north-northwest
east
north
west-northwest
west
consolidated city-county
south-southeast
northeast
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Prince George's County" . ?e_2 <pred:name> "Alexandria" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <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: Prince George's County
function: Find
inputs: Prince George's County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Alexandria
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
direction relative to location
Answer: southwest