Question: Which has a greater elevation above sea level, Birmingham (whose subreddit is BirminghamMI) or Baltimore?
Choices:
Columbus
Waukegan
Oakland
Greenville
Boulder
Franklin
Baltimore
Birmingham
Lansing
New Haven
Answer: Birmingham
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Birmingham" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "BirminghamMI" . } UNION { ?e <pred:name> "Baltimore" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Birmingham
function: FilterStr
dependencies: 0
inputs: subreddit
BirminghamMI
function: Find
inputs: Baltimore
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater