Question: Which has more episodes, Eat Bulaga! or Saturday Night's Main Event?
Choices:
Saturday Night's Main Event
Dancing with the Stars
Game of Thrones
Bleak House
Babylon 5
Seinfeld
American Horror Story
Phineas and Ferb
Robot Chicken
Eat Bulaga!
Program:
function: Find
inputs: Eat Bulaga!
function: Find
inputs: Saturday Night's Main Event
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eat Bulaga!" .  } UNION { ?e <pred:name> "Saturday Night's Main Event" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Eat Bulaga!