Question: Does Lisbon (whose elevation (above sea level) is 100 metre) or Luxembourg (whose population is 78912) have the less elevation (above sea level)?
Choices:
Lisbon
Mexico City
Riga
Moscow
Manila
Tallinn
Sarajevo
Luxembourg
New Delhi
Lausanne
Answer: Lisbon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lisbon" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "100"^^xsd:double . } UNION { ?e <pred:name> "Luxembourg" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "78912"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Lisbon
function: FilterNum
dependencies: 0
inputs: elevation above sea level
100 metre
=
function: Find
inputs: Luxembourg
function: FilterNum
dependencies: 2
inputs: population
78912
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less