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