Question: Which one has more number of episodes between Star Trek: The Next Generation (the one that has the series spin-off Star Trek: Deep Space Nine) and The Singing Detective (the one whose genre is film noir)?
Choices:
Robot Chicken
Phineas and Ferb
The Singing Detective
Six Feet Under
Saturday Night's Main Event
Seinfeld
Bleak House
Star Trek: The Next Generation
Dancing with the Stars
American Horror Story
Program:
function: Find
inputs: Star Trek: Deep Space Nine
function: Relate
dependencies: 0
inputs: series spin-off
backward
function: Find
inputs: Star Trek: The Next Generation
function: And
dependencies: 1
2
function: Find
inputs: film noir
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: The Singing Detective
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Trek: The Next Generation" . ?e <series_spin-off> ?e_1 . ?e_1 <pred:name> "Star Trek: Deep Space Nine" .   } UNION { ?e <pred:name> "The Singing Detective" . ?e <genre> ?e_2 . ?e_2 <pred:name> "film noir" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Star Trek: The Next Generation