Question: which one has the least episodes, Smallville or Roots the next Generations?
Choices:
The Ten Commandments
The Pacific
Battlestar Galactica
Roots
Edge of Darkness
The Stand
The Diary of Anne Frank
The Civil War
Roots: The Next Generations
Smallville
Program:
function: Find
inputs: Smallville
function: Find
inputs: Roots: The Next Generations
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Smallville" .  } UNION { ?e <pred:name> "Roots: The Next Generations" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Roots: The Next Generations