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