Question: Which has lower elevation above sea level, Leiden or Dordrecht?
Choices:
Dordrecht
Delft
Alkmaar
Leiden
Groningen
Rotterdam
Nijmegen
Arnhem
Amsterdam
Hilversum
Program:
function: Find
inputs: Leiden
function: Find
inputs: Dordrecht
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leiden" .  } UNION { ?e <pred:name> "Dordrecht" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Leiden