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