Question: Does Paterson (whose postal code is 07505) or Atlantic City (whose population is 39558) have the lower elevation above sea level?
Choices:
Bayonne
East Orange
Atlantic City
Elizabeth
Hoboken
Trenton
Perth Amboy
Jersey City
Plainfield
Passaic
Program:
function: Find
inputs: Paterson
function: FilterStr
dependencies: 0
inputs: postal code
07505
function: Find
inputs: Atlantic City
function: FilterNum
dependencies: 2
inputs: population
39558
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paterson" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "07505" . } UNION { ?e <pred:name> "Atlantic City" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "39558"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Atlantic City