Question: Which has more area, Teaneck or Orange whose population is 32868?
Choices:
Montclair
Orange
Whanganui
Teaneck
Ridgewood
Belleville
North Hollywood
Livingston
Princeton
Red Bank
Program:
function: Find
inputs: Teaneck
function: Find
inputs: Orange
function: FilterNum
dependencies: 1
inputs: population
32868
=
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Teaneck" . } UNION { ?e <pred:name> "Orange" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "32868"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Teaneck