Question: Which area has more people, Perth Amboy or Camden?
Choices:
Trenton
Elizabeth
Atlantic City
Hoboken
East Orange
Perth Amboy
Paterson
Plainfield
Camden
Passaic
Program:
function: Find
inputs: Perth Amboy
function: Find
inputs: Camden
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Perth Amboy" .  } UNION { ?e <pred:name> "Camden" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Camden