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