Question: Which show had fewer episodes, Egypt (the one whose genre is documentary film) or Northern Exposure?
Choices:
Bleak House
Saturday Night's Main Event
Phineas and Ferb
Egypt
American Horror Story
Northern Exposure
Six Feet Under
Dancing with the Stars
Robot Chicken
Seinfeld
Program:
function: Find
inputs: documentary film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Egypt
function: And
dependencies: 1
2
function: Find
inputs: Northern Exposure
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Egypt" . ?e <genre> ?e_1 . ?e_1 <pred:name> "documentary film" .   } UNION { ?e <pred:name> "Northern Exposure" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Egypt