Question: Which has fewer episodes, The Firm - executive produced by John Grisham - or Mad Men?
Choices: Phineas and Ferb
Bleak House
Dancing with the Stars
Seinfeld
American Horror Story
The Firm
Robot Chicken
Six Feet Under
Saturday Night's Main Event
Game of Thrones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Firm" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "John Grisham" .   } UNION { ?e <pred:name> "Mad Men" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Grisham
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: The Firm
function: And
dependencies: 1
2
function: Find
inputs: Mad Men
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
less
Answer: The Firm