Question: Between Irvine (which has the same name in its native label) and Eureka (which is governed by councillor), which one has a higher elevation above sea level?
Choices:
Greenville
Columbus
Franklin
Compton
Lansing
Irvine
Oakland
Waukegan
Eureka
Boulder
Program:
function: Find
inputs: Irvine
function: FilterStr
dependencies: 0
inputs: native label
Irvine
function: Find
inputs: councillor
function: Relate
dependencies: 2
inputs: office held by head of government
backward
function: Find
inputs: Eureka
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Irvine" . ?e <native_label> ?pv_1 . ?pv_1 <pred:value> "Irvine" . } UNION { ?e <pred:name> "Eureka" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "councillor" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Irvine