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