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