Question: Which has more episodes, Beauty and the Beast that originally aired on The CW or Dark Shadows that was produced by Dan Curtis?
Choices:
Seinfeld
Game of Thrones
Robot Chicken
Phineas and Ferb
Dancing with the Stars
Dark Shadows
Bleak House
Saturday Night's Main Event
Six Feet Under
Beauty and the Beast
Program:
function: Find
inputs: The CW
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: Dan Curtis
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Dark Shadows
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beauty and the Beast" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "The CW" .   } UNION { ?e <pred:name> "Dark Shadows" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Dan Curtis" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Beauty and the Beast