Question: Is Charlotte, population 82675, or mayor-led Chandler at a higher elevation?
Choices:
Franklin
Waukegan
Lansing
Columbus
New Haven
Oakland
Compton
Chandler
Charlotte
Boulder
Program:
function: Find
inputs: Charlotte
function: FilterNum
dependencies: 0
inputs: population
82675
=
function: Find
inputs: mayor
function: Relate
dependencies: 2
inputs: office held by head of government
backward
function: Find
inputs: Chandler
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlotte" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "82675"^^xsd:double . } UNION { ?e <pred:name> "Chandler" . ?e <office_held_by_head_of_government> ?e_1 . ?e_1 <pred:name> "mayor" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chandler