Question: Which show has fewer episodes, The Young and the Restless or The Shining (the one that has Elliott Gould as a cast member)?
Choices: The Shining
The Stand
The Ten Commandments
The Diary of Anne Frank
The Pacific
Edge of Darkness
Roots
Battlestar Galactica
The Civil War
The Young and the Restless
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Young and the Restless" .  } UNION { ?e <pred:name> "The Shining" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Elliott Gould" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Young and the Restless
function: Find
inputs: Elliott Gould
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Shining
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
Answer: The Shining