Question: Which one, Beverly Hills or Santa Barbara (the one that is the origin of the name Santa Barbara County), has greater elevation (above sea level)?
Choices:
Boulder
Greenville
Oakland
Columbus
Lansing
Santa Barbara
Waukegan
Compton
Beverly Hills
New Haven
Answer: Beverly Hills
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beverly Hills" .  } UNION { ?e <pred:name> "Santa Barbara" . ?e_1 <named_after> ?e . ?e_1 <pred:name> "Santa Barbara County" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Beverly Hills
function: Find
inputs: Santa Barbara County
function: Relate
dependencies: 1
inputs: named after
forward
function: Find
inputs: Santa Barbara
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater