Question: Between Six Feet Under, first aired on HBO, or Homicide: Life on the Street, which boasts the most episodes?
Choices:
American Horror Story
Dancing with the Stars
Homicide: Life on the Street
Robot Chicken
Seinfeld
Game of Thrones
Saturday Night's Main Event
Phineas and Ferb
Babylon 5
Six Feet Under
Program:
function: Find
inputs: HBO
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Six Feet Under
function: And
dependencies: 1
2
function: Find
inputs: Homicide: Life on the Street
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Six Feet Under" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "HBO" .   } UNION { ?e <pred:name> "Homicide: Life on the Street" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Homicide: Life on the Street