Question: Which has lower elevation above sea level, Luxembourg (the one whose native label is Luxemburg) or Istanbul (the one that is the twinned administrative body of Mexico City)?
Choices:
Manila
Mexico City
Istanbul
Doha
New Delhi
Sarajevo
Lausanne
Luxembourg
Moscow
Riga
Program:
function: Find
inputs: Luxembourg
function: FilterStr
dependencies: 0
inputs: native label
Luxemburg
function: Find
inputs: Mexico City
function: Relate
dependencies: 2
inputs: twinned administrative body
forward
function: Find
inputs: Istanbul
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Luxembourg" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "Luxemburg" . } UNION { ?e <pred:name> "Istanbul" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Mexico City" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Istanbul