Question: Which area is smaller, Norwich (the one whose population is 40493) or Denton?
Choices:
Greenville
Denton
Waukegan
Franklin
Boulder
Norwich
Lansing
Oakland
Compton
Columbus
Program:
function: Find
inputs: Norwich
function: FilterNum
dependencies: 0
inputs: population
40493
=
function: Find
inputs: Denton
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norwich" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "40493"^^xsd:double . } UNION { ?e <pred:name> "Denton" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Norwich