Question: which one has a bigger elevation (over sea level), Innsbruck or Porto Alegre?
Choices:
Cork
Trieste
Porto Alegre
Bergen
Abidjan
Dundee
Kingston
Innsbruck
Chihuahua
Santo Domingo
Program:
function: Find
inputs: Porto Alegre
function: Find
inputs: Innsbruck
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Porto Alegre" .  } UNION { ?e <pred:name> "Innsbruck" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Innsbruck