Question: Which has more epidodes, Brideshead Revisited, with Laurence Olivier in the cast, or Mad TV?
Choices:
Phineas and Ferb
Dancing with the Stars
Seinfeld
Six Feet Under
Robot Chicken
Bleak House
Game of Thrones
Brideshead Revisited
Mad TV
American Horror Story
Answer: Mad TV
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brideshead Revisited" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Laurence Olivier" .   } UNION { ?e <pred:name> "Mad TV" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Laurence Olivier
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Brideshead Revisited
function: And
dependencies: 1
2
function: Find
inputs: Mad TV
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater