Question: Which show has fewer episodes, Twin Peaks (the one that is shot in Washington) or Bad Teacher (the one that is originally aired on CBS)?
Choices: Saturday Night's Main Event
Bleak House
Six Feet Under
Dancing with the Stars
Twin Peaks
Seinfeld
Bad Teacher
Game of Thrones
Robot Chicken
American Horror Story
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Washington" .   } UNION { ?e <pred:name> "Bad Teacher" . ?e <original_network> ?e_2 . ?e_2 <pred:name> "CBS" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Washington
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Twin Peaks
function: And
dependencies: 1
2
function: Find
inputs: CBS
function: Relate
dependencies: 4
inputs: original network
backward
function: Find
inputs: Bad Teacher
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
less
Answer: Bad Teacher