Question: Considering two places, one being Somerville, which lies at 4 meters above sea level, and the other being Rock Island, which one lies at a lower elevation above sea level?
Choices:
Somerville
New Haven
Compton
Rock Island
Waukegan
Boulder
Oakland
Columbus
Greenville
Franklin
Program:
function: Find
inputs: Rock Island
function: Find
inputs: Somerville
function: FilterNum
dependencies: 1
inputs: elevation above sea level
4 metre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rock Island" . } UNION { ?e <pred:name> "Somerville" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "4"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Somerville