Question: Which has the lower elevation relative to sea level: Norman, founded in 1891, or Louisville?
Choices:
Greenville
Compton
Waukegan
Lansing
Norman
Columbus
New Haven
Franklin
Oakland
Louisville
Program:
function: Find
inputs: Norman
function: FilterYear
dependencies: 0
inputs: inception
1891
=
function: Find
inputs: Louisville
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norman" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1891 . } UNION { ?e <pred:name> "Louisville" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Louisville