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