Question: Is Danville (300 meters above sea level) or Tuscaloosa lower in elevation above sea level?
Choices:
New Haven
Lansing
Waukegan
Oakland
Franklin
Tuscaloosa
Boulder
Danville
Greenville
Compton
Program:
function: Find
inputs: Danville
function: FilterNum
dependencies: 0
inputs: elevation above sea level
300 metre
=
function: Find
inputs: Tuscaloosa
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Danville" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "300"^^xsd:double . } UNION { ?e <pred:name> "Tuscaloosa" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tuscaloosa