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