Question: Does Paterson (whose population is 78347) or Perth Amboy have the larger area?
Choices:
Trenton
Passaic
Bayonne
Paterson
East Orange
Atlantic City
Jersey City
Elizabeth
Hoboken
Plainfield
Program:
function: Find
inputs: Paterson
function: FilterNum
dependencies: 0
inputs: population
78347
=
function: Find
inputs: Perth Amboy
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paterson" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "78347"^^xsd:double . } UNION { ?e <pred:name> "Perth Amboy" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Paterson