Question: Which has the lowest elevation above sea level, Charleston with a population of 49138 or Walnut Creek?
Choices:
Walnut Creek
Lansing
Compton
Charleston
Greenville
Waukegan
Franklin
Oakland
New Haven
Columbus
Program:
function: Find
inputs: Charleston
function: FilterNum
dependencies: 0
inputs: population
49138
=
function: Find
inputs: Walnut Creek
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charleston" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "49138"^^xsd:double . } UNION { ?e <pred:name> "Walnut Creek" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Walnut Creek