Question: Is the population greater for Ames or Decatur (the one whose PermID is 5035758938)?
Choices:
Lansing
New Haven
Oakland
Waukegan
Boulder
Columbus
Ames
Franklin
Decatur
Greenville
Answer: Ames
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ames" . } UNION { ?e <pred:name> "Decatur" . ?e <PermID> ?pv_1 . ?pv_1 <pred:value> "5035758938" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ames
function: Find
inputs: Decatur
function: FilterStr
dependencies: 1
inputs: PermID
5035758938
function: SelectBetween
dependencies: 0
2
inputs: population
greater