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