Question: Does The Andy Griffith Show or Dallas (that has Jim Beaver as a cast member) have fewer episodes?
Choices:
Six Feet Under
Dallas
Dancing with the Stars
The Andy Griffith Show
Seinfeld
Phineas and Ferb
Bleak House
Robot Chicken
Game of Thrones
Saturday Night's Main Event
Answer: The Andy Griffith Show
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Andy Griffith Show" .  } UNION { ?e <pred:name> "Dallas" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jim Beaver" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Andy Griffith Show
function: Find
inputs: Jim Beaver
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Dallas
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less