Question: Which one has more people, Carlsbad or Pueblo?
Choices:
Lansing
Oakland
Carlsbad
Franklin
Greenville
Waukegan
New Haven
Compton
Boulder
Pueblo
Program:
function: Find
inputs: Carlsbad
function: Find
inputs: Pueblo
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carlsbad" .  } UNION { ?e <pred:name> "Pueblo" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pueblo