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