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