Question: Did The Surreal Life or Everybody Loves Raymond run for more episodes?
Choices:
Saturday Night's Main Event
Game of Thrones
Six Feet Under
Dancing with the Stars
American Horror Story
The Surreal Life
Robot Chicken
Phineas and Ferb
Bleak House
Everybody Loves Raymond
Program:
function: Find
inputs: The Surreal Life
function: Find
inputs: Everybody Loves Raymond
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Surreal Life" .  } UNION { ?e <pred:name> "Everybody Loves Raymond" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Everybody Loves Raymond