Question: Which show has fewer episodes, Seinfeld or The Cosby Show?
Choices:
Babylon 5
The Cosby Show
Robot Chicken
Bleak House
Saturday Night's Main Event
Game of Thrones
American Horror Story
Six Feet Under
Dancing with the Stars
Seinfeld
Program:
function: Find
inputs: Seinfeld
function: Find
inputs: The Cosby Show
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seinfeld" .  } UNION { ?e <pred:name> "The Cosby Show" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Seinfeld