Question: Which one is longer, Stargate SG-1 or Rogue (the one whose number of episodes is 50) ?
Choices: Saturday Night's Main Event
Phineas and Ferb
Rogue
Seinfeld
Stargate SG-1
Dancing with the Stars
Bleak House
Six Feet Under
Game of Thrones
American Horror Story
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stargate SG-1" . } UNION { ?e <pred:name> "Rogue" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "50"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Stargate SG-1
function: Find
inputs: Rogue
function: FilterNum
dependencies: 1
inputs: number of episodes
50
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
Answer: Stargate SG-1