Question: Which show has more episodes, The Surreal Life or The Shining (the one that is originally aired on American Broadcasting Company)?
Choices:
Dancing with the Stars
Robot Chicken
Game of Thrones
Seinfeld
Bleak House
Phineas and Ferb
Six Feet Under
American Horror Story
The Surreal Life
Saturday Night's Main Event
Program:
function: Find
inputs: The Surreal Life
function: Find
inputs: American Broadcasting Company
function: Relate
dependencies: 1
inputs: original network
backward
function: Find
inputs: The Shining
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Surreal Life" .  } UNION { ?e <pred:name> "The Shining" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "American Broadcasting Company" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Surreal Life