Question: Which one, Logan County (the one whose population is 30027) or Cook County, has greater area?
Choices:
Montgomery County
Clinton County
DuPage County
McLean County
Peoria County
Cook County
Madison County
DeKalb County
Monroe County
Logan County
Program:
function: Find
inputs: Logan County
function: FilterNum
dependencies: 0
inputs: population
30027
=
function: Find
inputs: Cook County
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Logan County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "30027"^^xsd:double . } UNION { ?e <pred:name> "Cook County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Cook County