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