Question: Which has a smaller population, Anderson, with a population of 25514, or Meridian with an elevation of 105 meters above sea level?
Choices:
Lansing
Greenville
Franklin
Compton
Anderson
Boulder
Waukegan
Oakland
Columbus
Meridian
Program:
function: Find
inputs: Anderson
function: FilterNum
dependencies: 0
inputs: population
25514
=
function: Find
inputs: Meridian
function: FilterNum
dependencies: 2
inputs: elevation above sea level
105 metre
=
function: SelectBetween
dependencies: 1
3
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anderson" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "25514"^^xsd:double . } UNION { ?e <pred:name> "Meridian" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "105"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anderson