Question: Does Oregan or Battle Creek (whose subreddit is BattleCreek) have the larger area?
Choices:
New Haven
Franklin
Ogden
Battle Creek
Compton
Columbus
Greenville
Boulder
Waukegan
Oakland
Program:
function: Find
inputs: Battle Creek
function: FilterStr
dependencies: 0
inputs: subreddit
BattleCreek
function: Find
inputs: Ogden
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Battle Creek" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "BattleCreek" . } UNION { ?e <pred:name> "Ogden" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Battle Creek