Question: Does Lynn or Warren have a greater area?
Choices:
Warren
Oakland
Greenville
Waukegan
Columbus
Compton
Boulder
Franklin
New Haven
Lansing
Program:
function: Find
inputs: Lynn
function: FilterNum
dependencies: 0
inputs: elevation above sea level
9 metre
=
function: Find
inputs: Warren
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lynn" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "9"^^xsd:double . } UNION { ?e <pred:name> "Warren" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Warren