Question: Which has fewer seasons, Saturday Night Live or City of Angels (the one that has Maya Rudolph as a cast member)?
Choices:
American Horror Story
City of Angels
Bleak House
Game of Thrones
Saturday Night's Main Event
Robot Chicken
Seinfeld
Saturday Night Live
Phineas and Ferb
Dancing with the Stars
Program:
function: Find
inputs: Saturday Night Live
function: Find
inputs: Maya Rudolph
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: City of Angels
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saturday Night Live" .  } UNION { ?e <pred:name> "City of Angels" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Maya Rudolph" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: City of Angels