Question: Does Skopje or Newcastle upon Tyne (that is the twin administrative body to Haifa) have the lower elevation above sea level?
Choices:
Santo Domingo
Kingston
Abidjan
Dundee
Chihuahua
Trieste
Bergen
Cork
Skopje
Newcastle upon Tyne
Program:
function: Find
inputs: Skopje
function: Find
inputs: Haifa
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Newcastle upon Tyne
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Skopje" .  } UNION { ?e <pred:name> "Newcastle upon Tyne" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Haifa" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Newcastle upon Tyne