Question: Which has lower elevation above sea level, Norwalk that is headed by a mayor or Gary whose population is 80294?
Choices:
Columbus
Norwalk
Boulder
Greenville
New Haven
Compton
Gary
Waukegan
Oakland
Lansing
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Norwalk
function: And
dependencies: 1
2
function: Find
inputs: Gary
function: FilterNum
dependencies: 4
inputs: population
80294
=
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Norwalk" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" . } UNION { ?e <pred:name> "Gary" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "80294"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Norwalk