Question: Does Stamford or Chico (whose leader is a mayor) have the higher elevation above sea level?
Choices:
Stamford
Compton
Waukegan
New Haven
Chico
Greenville
Lansing
Boulder
Columbus
Oakland
Program:
function: Find
inputs: Stamford
function: Find
inputs: mayor
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Chico
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stamford" .  } UNION { ?e <pred:name> "Chico" . ?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
Answer: Chico