Question: Does Midland (whose population is 41863) or Riverside have the smaller population?
Choices:
Midland
Compton
Greenville
Riverside
Oakland
Columbus
Waukegan
Lansing
New Haven
Boulder
Program:
function: Find
inputs: Midland
function: FilterNum
dependencies: 0
inputs: population
41863
=
function: Find
inputs: Riverside
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Midland" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "41863"^^xsd:double . } UNION { ?e <pred:name> "Riverside" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Midland