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