Question: Which Maine county with FIPS 6-4 (US counties) code 23005 borders York County, population 197131?
Choices:
Washington County
Somerset County
Kennebec County
Aroostook County
Hancock County
Cumberland County
York County
Franklin County
Penobscot County
Oxford County
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
23005
function: FilterConcept
dependencies: 1
inputs: county of Maine
function: Find
inputs: York County
function: FilterNum
dependencies: 3
inputs: population
197131
=
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: county of Maine
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maine" . ?e <FIPS_6-4_(US_counties)> ?pv . ?pv <pred:value> "23005" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "York County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "197131"^^xsd:double .  }
Answer: Cumberland County