Question: Which has a lower elevation above sea level, Penzance or Brighton?
Choices:
Macclesfield
South Shields
Blackburn
Royal Tunbridge Wells
Edmonton
Wigan
Brighton
Penzance
Doncaster
Colchester
Program:
function: Find
inputs: Penzance
function: Find
inputs: Brighton
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Penzance" .  } UNION { ?e <pred:name> "Brighton" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Penzance