Question: Alexandria (the one that is the twinned administrative body of Saint Petersburg)  or Tianjin, Which city has greater elevation(above sea level)?
Choices:
Alexandria
Gibraltar
Tianjin
Busan
İzmir
Barcelona
Fremantle
Stand by Me
Odessa
Basra
Answer: Tianjin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexandria" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Saint Petersburg" .   } UNION { ?e <pred:name> "Tianjin" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Saint Petersburg
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Alexandria
function: And
dependencies: 1
2
function: Find
inputs: Tianjin
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater