Question: Which one has less number of episodes between Twin Peaks (the one that has David Lynch as an executive producer) or Seven Brides for Seven Brothers (the one whose number of episodes is 22)?
Choices: Saturday Night's Main Event
Six Feet Under
Phineas and Ferb
American Horror Story
Game of Thrones
Twin Peaks
Seinfeld
Seven Brides for Seven Brothers
Dancing with the Stars
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "David Lynch" . } UNION { ?e <pred:name> "Seven Brides for Seven Brothers" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "22"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: David Lynch
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Twin Peaks
function: And
dependencies: 1
2
function: Find
inputs: Seven Brides for Seven Brothers
function: FilterNum
dependencies: 4
inputs: number of episodes
22
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
less
Answer: Seven Brides for Seven Brothers