Question: Does Odessa (the one whose country is United States of America) or East St. Louis have less population?
Choices:
Columbus
Lansing
Greenville
Franklin
Odessa
Compton
New Haven
Waukegan
East St. Louis
Oakland
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Odessa
function: And
dependencies: 1
2
function: Find
inputs: East St. Louis
function: SelectBetween
dependencies: 3
4
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Odessa" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "East St. Louis" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: East St. Louis