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