Question: Is the population higher in Enid, elevation 378 meters, or Salem, location of Willamette University?
Choices: Salem
Enid
Lansing
Compton
New Haven
Boulder
Franklin
Greenville
Columbus
Oakland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Enid" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "378"^^xsd:double . } UNION { ?e <pred:name> "Salem" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Willamette University" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Enid
function: FilterNum
dependencies: 0
inputs: elevation above sea level
378 metre
=
function: Find
inputs: Willamette University
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Salem
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater
Answer: Salem