Question: Which one lies lower in relation to sea level, Shimla or Madrid ?
Choices:
Kilkenny
Santo Domingo
Dundee
Chihuahua
Shimla
Abidjan
Madrid
Trieste
Cork
Kingston
Program:
function: Find
inputs: Shimla
function: Find
inputs: Madrid
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shimla" .  } UNION { ?e <pred:name> "Madrid" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Madrid