Question: Which has higher elevation above sea level, Santa Barbara (the one that contains University of California, Santa Barbara) or Upland?
Choices: Columbus
Oakland
New Haven
Boulder
Upland
Lansing
Franklin
Santa Barbara
Greenville
Compton
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Barbara" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "University of California, Santa Barbara" .   } UNION { ?e <pred:name> "Upland" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: University of California, Santa Barbara
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Santa Barbara
function: And
dependencies: 1
2
function: Find
inputs: Upland
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
Answer: Upland