Question: Does the Lafayette led by a mayor or Amarillo possess the higher elevation?
Choices:
Waukegan
Compton
New Haven
Greenville
Lafayette
Oakland
Franklin
Columbus
Amarillo
Boulder
Answer: Amarillo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lafayette" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" .   } UNION { ?e <pred:name> "Amarillo" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Lafayette
function: And
dependencies: 1
2
function: Find
inputs: Amarillo
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater