Question: Does Only Fools and Horses or Roots (the one that has Anna Paquin as a cast member) have less number of episodes ?
Choices:
The Diary of Anne Frank
Only Fools and Horses
Battlestar Galactica
Edge of Darkness
The Pacific
George Washington
The Civil War
Roots
The Stand
Emma
Program:
function: Find
inputs: Only Fools and Horses
function: Find
inputs: Anna Paquin
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Roots
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Only Fools and Horses" .  } UNION { ?e <pred:name> "Roots" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Anna Paquin" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Roots