Question: Does Cambridge (the one that is the twinned administrative body of Yerevan) or Natchez have the greater elevation (above sea level)?
Choices:
Franklin
Cambridge
Waukegan
Lansing
Greenville
Boulder
New Haven
Natchez
Compton
Columbus
Program:
function: Find
inputs: Yerevan
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Cambridge
function: And
dependencies: 1
2
function: Find
inputs: Natchez
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cambridge" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Yerevan" .   } UNION { ?e <pred:name> "Natchez" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Natchez