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