Question: Does The Untouchables (that has Robert Stack as a cast member) or Fantastic Four (whose director is Joseph Barbera) have the lower number of seasons?
Choices:
Phineas and Ferb
Fantastic Four
Batman Beyond
The Untouchables
The Venture Bros.
Tiny Toon Adventures
American Dad!
Aladdin
The Cleveland Show
Robot Chicken
Program:
function: Find
inputs: Robert Stack
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Untouchables
function: And
dependencies: 1
2
function: Find
inputs: Joseph Barbera
function: Relate
dependencies: 4
inputs: director
backward
function: Find
inputs: Fantastic Four
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Untouchables" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Robert Stack" .   } UNION { ?e <pred:name> "Fantastic Four" . ?e <director> ?e_2 . ?e_2 <pred:name> "Joseph Barbera" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fantastic Four