Question: Among the counties of Maine that shares border with Somerset County (the one whose FIPS 6-4 (US counties) is 23025),which one has the largest area ?
Choices:
Somerset County
Penobscot County
Cumberland County
Aroostook County
York County
Hancock County
Franklin County
Oxford County
Washington County
Kennebec County
Program:
function: Find
inputs: Somerset County
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
23025
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Maine
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maine" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Somerset County" . ?e_1 <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "23025" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Aroostook County