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