Question: Which one is larger, Jackson (the one whose subreddit is jacksonmi) or Warren?
Choices:
Warren
Waukegan
Lansing
Oakland
Greenville
Jackson
Compton
Franklin
Columbus
New Haven
Program:
function: Find
inputs: Jackson
function: FilterStr
dependencies: 0
inputs: subreddit
jacksonmi
function: Find
inputs: Warren
function: SelectBetween
dependencies: 1
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jackson" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "jacksonmi" . } UNION { ?e <pred:name> "Warren" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Warren