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