Question: I would like to know the one that has least elevation (over sea level), Cardiff or Rotterdam (which has a population of 619879)
Choices: Cardiff
Chihuahua
Bergen
Kilkenny
Cork
Santo Domingo
Kingston
Rotterdam
Dundee
Abidjan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cardiff" . } UNION { ?e <pred:name> "Rotterdam" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "619879"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cardiff
function: Find
inputs: Rotterdam
function: FilterNum
dependencies: 1
inputs: population
619879
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
Answer: Rotterdam