Question: Which has more elevation above sea level, Natchez or Fontana which is headed by mayor?
Choices:
Waukegan
Lansing
Columbus
Natchez
Greenville
Oakland
New Haven
Franklin
Boulder
Fontana
Answer: Fontana
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Natchez" .  } UNION { ?e <pred:name> "Fontana" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Natchez
function: Find
inputs: mayor
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Fontana
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater