Question: Denton County has a border with Dallas County, the one that has a border with Collin County, tell me the location is relative to.
Choices: northwest
consolidated city-county
south
south-southeast
southeast
north-northwest
north
southwest
northeast
west-northwest
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Denton County" . ?e_2 <pred:name> "Dallas County" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Collin 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: Denton County
function: Find
inputs: Collin County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Dallas County
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
direction relative to location
Answer: southeast