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