Question: Which area has lower elevation above sea level, Midland (the one whose area is 92440000 square metre) or St. Petersburg?
Choices:
St. Petersburg
Oakland
New Haven
Columbus
Lansing
Compton
Franklin
Waukegan
Boulder
Midland
Program:
function: Find
inputs: Midland
function: FilterNum
dependencies: 0
inputs: area
92440000 square metre
=
function: Find
inputs: St. Petersburg
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Midland" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square metre" . ?pv_1 <pred:value> "92440000"^^xsd:double . } UNION { ?e <pred:name> "St. Petersburg" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: St. Petersburg