Question: Does the smaller run of seasons belong to Seinfeld or to Sex and the City, a SAG Award nominee for Outstanding Performance by an Ensemble in a Comedy Series?
Choices:
Game of Thrones
Sex and the City
Babylon 5
Seinfeld
American Horror Story
Saturday Night's Main Event
Six Feet Under
Robot Chicken
Dancing with the Stars
Phineas and Ferb
Program:
function: Find
inputs: Seinfeld
function: Find
inputs: Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Comedy Series
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Sex and the City
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Seinfeld" .  } UNION { ?e <pred:name> "Sex and the City" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Comedy Series" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sex and the City