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