Question: Which area has lower elevation above sea level, Valencia (the one that is the twinned administrative body of Sacramento) or Ljubljana?
Choices:
Cork
Ljubljana
Kingston
Trieste
Dundee
Abidjan
Chihuahua
Kilkenny
Bergen
Valencia
Program:
function: Find
inputs: Sacramento
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Valencia
function: And
dependencies: 1
2
function: Find
inputs: Ljubljana
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Valencia" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Sacramento" .   } UNION { ?e <pred:name> "Ljubljana" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Valencia