Question: Which show has more seasons, M*A*S*H or Deadwood?
Choices:
Phineas and Ferb
Dancing with the Stars
M*A*S*H
Saturday Night's Main Event
Game of Thrones
Deadwood
Robot Chicken
Bleak House
American Horror Story
Six Feet Under
Program:
function: Find
inputs: M*A*S*H
function: Find
inputs: Deadwood
function: SelectBetween
dependencies: 0
1
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "M*A*S*H" .  } UNION { ?e <pred:name> "Deadwood" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: M*A*S*H