Question: Does Charlotte (whose elevation is 229 meters above sea level) or Salt Lake City have less area?
Choices:
Compton
Salt Lake City
Boulder
Columbus
Oakland
Waukegan
Greenville
Lansing
Charlotte
New Haven
Program:
function: Find
inputs: Charlotte
function: FilterNum
dependencies: 0
inputs: elevation above sea level
229 metre
=
function: Find
inputs: Salt Lake City
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlotte" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "229"^^xsd:double . } UNION { ?e <pred:name> "Salt Lake City" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Salt Lake City