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