Question: Which show has fewer episodes, Twin Peaks (the one that has Billy Zane as a cast member) or Battlestar Galactica (the one that has Callum Keith Rennie as a cast member)?
Choices: Six Feet Under
Game of Thrones
Phineas and Ferb
Bleak House
Dancing with the Stars
Robot Chicken
American Horror Story
Twin Peaks
Saturday Night's Main Event
Battlestar Galactica
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Billy Zane" .   } UNION { ?e <pred:name> "Battlestar Galactica" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Callum Keith Rennie" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Billy Zane
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Twin Peaks
function: And
dependencies: 1
2
function: Find
inputs: Callum Keith Rennie
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
less
Answer: Twin Peaks