Question: Which has higher elevation above sea level, Santa Cruz or Santa Barbara that was established in 1847?
Choices:
Lansing
Santa Cruz
Boulder
Franklin
Waukegan
New Haven
Santa Barbara
Columbus
Oakland
Compton
Answer: Santa Barbara
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Cruz" . } UNION { ?e <pred:name> "Santa Barbara" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1847 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Santa Cruz
function: Find
inputs: Santa Barbara
function: FilterYear
dependencies: 1
inputs: inception
1847
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater