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