Question: Which has more people, Wichita (the one whose postal code is 67232) or East St. Louis?
Choices:
Greenville
Compton
Boulder
Lansing
Wichita
Columbus
East St. Louis
Waukegan
Franklin
Oakland
Program:
function: Find
inputs: Wichita
function: FilterStr
dependencies: 0
inputs: postal code
67232
function: Find
inputs: East St. Louis
function: SelectBetween
dependencies: 1
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wichita" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "67232" . } UNION { ?e <pred:name> "East St. Louis" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Wichita