Question: Which has lower elevation above sea level, Berlin or Amsterdam (the one whose population is 206000)?
Choices: Berlin
Santo Domingo
Chihuahua
Abidjan
Kilkenny
Dundee
Cork
Kingston
Amsterdam
Trieste
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Berlin" . } UNION { ?e <pred:name> "Amsterdam" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "206000"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Berlin
function: Find
inputs: Amsterdam
function: FilterNum
dependencies: 1
inputs: population
206000
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
Answer: Amsterdam