Question: Maryland, location of Cecil County, has which directional border in common with Pennsylvania?
Choices:
west
south-southeast
southeast
west-northwest
southwest
consolidated city-county
northeast
south
north
south-southwest
Program:
function: Find
inputs: Cecil County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Maryland
function: And
dependencies: 1
2
function: Find
inputs: Pennsylvania
function: QueryRelationQualifier
dependencies: 3
4
inputs: shares border with
direction relative to location
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Maryland" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Cecil County" . ?e_2 <pred:name> "Pennsylvania" . ?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: north