Question: Which show has fewer seasons, The Mary Tyler Moore Show or Beauty and the Beast (the one that has Ron Perlman as a cast member)?
Choices:
Saturday Night's Main Event
American Horror Story
Beauty and the Beast
Six Feet Under
Robot Chicken
Bleak House
Seinfeld
Phineas and Ferb
Dancing with the Stars
The Mary Tyler Moore Show
Answer: Beauty and the Beast
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mary Tyler Moore Show" .  } UNION { ?e <pred:name> "Beauty and the Beast" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ron Perlman" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Mary Tyler Moore Show
function: Find
inputs: Ron Perlman
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
less