Question: Does Key West or Mount Vernon, population 67292, have the lower elevation?
Choices:
New Haven
Compton
Franklin
Waukegan
Mount Vernon
Boulder
Oakland
Key West
Lansing
Greenville
Program:
function: Find
inputs: Key West
function: Find
inputs: Mount Vernon
function: FilterNum
dependencies: 1
inputs: population
67292
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Key West" . } UNION { ?e <pred:name> "Mount Vernon" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "67292"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Key West