Question: Which has fewer episodes, The Twilight Zone (with 44 episodes) or Babylon 5?
Choices:
Bleak House
Six Feet Under
Robot Chicken
The Twilight Zone
Dancing with the Stars
Phineas and Ferb
Seinfeld
Babylon 5
Saturday Night's Main Event
American Horror Story
Program:
function: Find
inputs: The Twilight Zone
function: FilterNum
dependencies: 0
inputs: number of episodes
44
=
function: Find
inputs: Babylon 5
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Twilight Zone" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "44"^^xsd:double . } UNION { ?e <pred:name> "Babylon 5" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Twilight Zone