Question: Which has lower elevation above sea level, Davis (the one whose population is 65622) or Santa Cruz?
Choices:
Lansing
Boulder
Greenville
Santa Cruz
Waukegan
Franklin
Compton
Oakland
Columbus
Davis
Program:
function: Find
inputs: Davis
function: FilterNum
dependencies: 0
inputs: population
65622
=
function: Find
inputs: Santa Cruz
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Davis" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "65622"^^xsd:double . } UNION { ?e <pred:name> "Santa Cruz" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Santa Cruz