Question: Which one is lower relative to its position above sea level, Pleasantville (the one whose population is 20249) or Baltimore?
Choices:
Franklin
Boulder
Waukegan
Pleasantville
Lansing
New Haven
Compton
Columbus
Greenville
Oakland
Program:
function: Find
inputs: Pleasantville
function: FilterNum
dependencies: 0
inputs: population
20249
=
function: Find
inputs: Baltimore
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pleasantville" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "20249"^^xsd:double . } UNION { ?e <pred:name> "Baltimore" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Pleasantville