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