Question: Which has more area, Decatur whose PermID is 5035758938 or Carlsbad?
Choices:
Carlsbad
Waukegan
Franklin
Oakland
Columbus
Boulder
Decatur
Greenville
New Haven
Compton
Answer: Carlsbad
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Decatur" . ?e <PermID> ?pv_1 . ?pv_1 <pred:value> "5035758938" . } UNION { ?e <pred:name> "Carlsbad" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Decatur
function: FilterStr
dependencies: 0
inputs: PermID
5035758938
function: Find
inputs: Carlsbad
function: SelectBetween
dependencies: 1
2
inputs: area
greater