Question: Which area is smaller, Delaware County (the one whose population is 47840) or Cattaraugus County?
Choices:
Rensselaer County
Niagara County
Cattaraugus County
Albany County
Orange County
Delaware County
Clinton County
Cayuga County
Jefferson County
Warren County
Program:
function: Find
inputs: Delaware County
function: FilterNum
dependencies: 0
inputs: population
47840
=
function: Find
inputs: Cattaraugus County
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Delaware County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "47840"^^xsd:double . } UNION { ?e <pred:name> "Cattaraugus County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cattaraugus County