Question: Between Davis, councillor-headed, or Brisbane, at zip code 94005, which is higher above sea level?
Choices:
Davis
Boulder
Lansing
Franklin
Waukegan
Greenville
New Haven
Columbus
Brisbane
Oakland
Program:
function: Find
inputs: councillor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Davis
function: And
dependencies: 1
2
function: Find
inputs: Brisbane
function: FilterStr
dependencies: 4
inputs: postal code
94005
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Davis" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "councillor" . } UNION { ?e <pred:name> "Brisbane" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "94005" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Brisbane