Question: Which Alabama county bordering Washington County, population 16877, occupies the least area?
Choices:
Mobile County
Shelby County
Dallas County
Washington County
Madison County
Montgomery County
Baldwin County
Monroe County
Jefferson County
Jackson County
Program:
function: Find
inputs: Washington County
function: FilterNum
dependencies: 0
inputs: population
16877
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Alabama
function: SelectAmong
dependencies: 3
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Washington County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "16877"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mobile County