Question: Which has higher elevation above sea level, Lafayette (the one whose population is 67140) or Stamford?
Choices: Oakland
Waukegan
Columbus
New Haven
Lansing
Lafayette
Greenville
Compton
Franklin
Stamford
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lafayette" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "67140"^^xsd:double . } UNION { ?e <pred:name> "Stamford" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lafayette
function: FilterNum
dependencies: 0
inputs: population
67140
=
function: Find
inputs: Stamford
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
Answer: Lafayette