Question: Which has more seasons, Star Trek: The Original Series or Dark Shadows (the one whose number of episodes is 12)?
Choices: Six Feet Under
Dancing with the Stars
Dark Shadows
Robot Chicken
Seinfeld
Star Trek: The Original Series
Phineas and Ferb
American Horror Story
Game of Thrones
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Trek: The Original Series" . } UNION { ?e <pred:name> "Dark Shadows" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "12"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Star Trek: The Original Series
function: Find
inputs: Dark Shadows
function: FilterNum
dependencies: 1
inputs: number of episodes
12
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater
Answer: Star Trek: The Original Series