Question: Which area has a larger population, Newport Beach or Downey?
Choices:
Newport Beach
Waukegan
Downey
Lansing
Compton
Boulder
New Haven
Oakland
Columbus
Franklin
Program:
function: Find
inputs: Newport Beach
function: Find
inputs: Downey
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport Beach" .  } UNION { ?e <pred:name> "Downey" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Downey