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