Question: Does Waterford or Delhi have greater elevation (above sea level) ?
Choices:
Cork
Waterford
Kilkenny
Bergen
Dundee
Delhi
Santo Domingo
Trieste
Chihuahua
Kingston
Program:
function: Find
inputs: Waterford
function: Find
inputs: Delhi
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waterford" .  } UNION { ?e <pred:name> "Delhi" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Delhi