Question: Between the two of them, does The West Wing have fewer seasons or does Salem, the series with Brannon Braga as the creator?
Choices:
The West Wing
Game of Thrones
Six Feet Under
Bleak House
Saturday Night's Main Event
Seinfeld
Robot Chicken
Salem
Phineas and Ferb
Dancing with the Stars
Program:
function: Find
inputs: The West Wing
function: Find
inputs: Brannon Braga
function: Relate
dependencies: 1
inputs: creator
backward
function: Find
inputs: Salem
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The West Wing" .  } UNION { ?e <pred:name> "Salem" . ?e <creator> ?e_1 . ?e_1 <pred:name> "Brannon Braga" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Salem