Question: Where does Madison County (the one whose FIPS 6-4 (US counties) is 01089) share its borden with Jackson County (the one whose population is 52419)?
Choices: north-northwest
southeast
west-northwest
east
north
south
consolidated city-county
southwest
northeast
west
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Madison County" . ?e_1 <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "01089" . ?e_2 <pred:name> "Jackson County" . ?e_2 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "52419"^^xsd:double . ?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: Madison County
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
01089
function: Find
inputs: Jackson County
function: FilterNum
dependencies: 2
inputs: population
52419
=
function: QueryRelationQualifier
dependencies: 1
3
inputs: shares border with
direction relative to location
Answer: east