Question: Which area is smaller, Hamilton County (the one whose population is 800940) or Logan County (the one whose area is 1209 square kilometre)?
Choices:
Stark County
Mahoning County
Wayne County
Delaware County
Summit County
Erie County
Hamilton County
Wood County
Logan County
Tuscarawas County
Program:
function: Find
inputs: Hamilton County
function: FilterNum
dependencies: 0
inputs: population
800940
=
function: Find
inputs: Logan County
function: FilterNum
dependencies: 2
inputs: area
1209 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamilton County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "800940"^^xsd:double . } UNION { ?e <pred:name> "Logan County" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "1209"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hamilton County