Question: Is the population greater for Teaneck or Exeter (the one whose local dialing code is 603)?
Choices:
Exeter
Livingston
Belleville
Red Bank
Ridgewood
Verona
Teaneck
Whanganui
Princeton
Montclair
Program:
function: Find
inputs: Teaneck
function: Find
inputs: Exeter
function: FilterStr
dependencies: 1
inputs: local dialing code
603
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Teaneck" . } UNION { ?e <pred:name> "Exeter" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "603" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Teaneck