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