Question: Which show has more seasons, ABC Afterschool Special or The Smurfs (the one whose number of episodes is 256)?
Choices:
ABC Afterschool Special
American Horror Story
Six Feet Under
Bleak House
Saturday Night's Main Event
Robot Chicken
Dancing with the Stars
The Smurfs
Phineas and Ferb
Seinfeld
Program:
function: Find
inputs: ABC Afterschool Special
function: Find
inputs: The Smurfs
function: FilterNum
dependencies: 1
inputs: number of episodes
256
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "ABC Afterschool Special" . } UNION { ?e <pred:name> "The Smurfs" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "256"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: ABC Afterschool Special