Question: Does Upstairs, Downstairs or Alias -- with cast member Jennifer Garner -- have the fewer episodes?
Choices:
Upstairs, Downstairs
Six Feet Under
Dancing with the Stars
Phineas and Ferb
Game of Thrones
Robot Chicken
Seinfeld
Saturday Night's Main Event
American Horror Story
Alias
Answer: Upstairs, Downstairs
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Upstairs, Downstairs" .  } UNION { ?e <pred:name> "Alias" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jennifer Garner" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Upstairs, Downstairs
function: Find
inputs: Jennifer Garner
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Alias
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less