Question: Does Princeton or Belleville (population 34044) possess a higher elevation relative to sea level?
Choices:
West Orange
Wexford
North Hollywood
Princeton
Verona
Red Bank
Belleville
Whanganui
Montclair
Livingston
Program:
function: Find
inputs: Princeton
function: Find
inputs: Belleville
function: FilterNum
dependencies: 1
inputs: population
34044
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Princeton" . } UNION { ?e <pred:name> "Belleville" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "34044"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Princeton