Question: Which has higher (above sea level), Santa Cruz or Palo Alto (the one whose native label is Palo Alto)?
Choices:
Franklin
Santa Cruz
Palo Alto
Oakland
Compton
Waukegan
Columbus
Lansing
New Haven
Greenville
Answer: Santa Cruz
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Cruz" . } UNION { ?e <pred:name> "Palo Alto" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "Palo Alto" . } ?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: Palo Alto
function: FilterStr
dependencies: 1
inputs: native label
Palo Alto
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater