Question: Which has higher elevation above sea level, Camden or Paterson (the one whose population is 125600)?
Choices:
Trenton
Jersey City
Paterson
Hoboken
Passaic
Atlantic City
Perth Amboy
Elizabeth
Plainfield
Camden
Program:
function: Find
inputs: Camden
function: Find
inputs: Paterson
function: FilterNum
dependencies: 1
inputs: population
125600
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Camden" . } UNION { ?e <pred:name> "Paterson" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "125600"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Paterson