Question: Does Red Bank or Montclair have more population?
Choices:
North Hollywood
Ridgewood
Princeton
Livingston
Wexford
Verona
West Orange
Red Bank
Belleville
Montclair
Program:
function: Find
inputs: Red Bank
function: Find
inputs: Montclair
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Red Bank" .  } UNION { ?e <pred:name> "Montclair" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Montclair