Question: Which one has fewer episodes, Sleepy Hollow (the one whose production company is 20th Century Fox Television) or M*A*S*H ?
Choices:
Robot Chicken
M*A*S*H
Phineas and Ferb
American Horror Story
Bleak House
Saturday Night's Main Event
Sleepy Hollow
Dancing with the Stars
Game of Thrones
Six Feet Under
Answer: M*A*S*H
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sleepy Hollow" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox Television" .   } UNION { ?e <pred:name> "M*A*S*H" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 20th Century Fox Television
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Sleepy Hollow
function: And
dependencies: 1
2
function: Find
inputs: M*A*S*H
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater