Question: Which covers less area, Elizabeth which is found at 5 meters above sea level, or Camden?
Choices:
Perth Amboy
East Orange
Elizabeth
Paterson
Atlantic City
Passaic
Camden
Trenton
Plainfield
Jersey City
Program:
function: Find
inputs: Elizabeth
function: FilterNum
dependencies: 0
inputs: elevation above sea level
5 metre
=
function: Find
inputs: Camden
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "5"^^xsd:double . } UNION { ?e <pred:name> "Camden" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Camden