Question: Which area is smaller, Logan County (the one that shares border with Sangamon County) or DeKalb County (the one whose population is 105160)?
Choices:
Clinton County
Logan County
McLean County
Monroe County
Madison County
Sangamon County
DuPage County
McHenry County
DeKalb County
Peoria County
Answer: Logan County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Logan County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Sangamon County" . } UNION { ?e <pred:name> "DeKalb County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "105160"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Sangamon County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Logan County
function: And
dependencies: 1
2
function: Find
inputs: DeKalb County
function: FilterNum
dependencies: 4
inputs: population
105160
=
function: SelectBetween
dependencies: 3
5
inputs: area
less