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