Question: Which has more population, Burbank or Jackson whose postal code is 49201–49204?
Choices:
Columbus
Oakland
Boulder
Greenville
Burbank
Franklin
Compton
Lansing
New Haven
Waukegan
Program:
function: Find
inputs: Burbank
function: Find
inputs: Jackson
function: FilterStr
dependencies: 1
inputs: postal code
49201–49204
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Burbank" . } UNION { ?e <pred:name> "Jackson" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "49201–49204" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Burbank