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