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