Question: Which Illinois county that borders Montgomery county, which has a population of 30096, has the least area?
Choices:
Logan County
DeKalb County
Peoria County
Sangamon County
DuPage County
Clinton County
Montgomery County
Madison County
McHenry County
Monroe County
Answer: Madison County
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Montgomery County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "30096"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Montgomery County
function: FilterNum
dependencies: 0
inputs: population
30096
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Illinois
function: SelectAmong
dependencies: 3
inputs: area
smallest