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