Question: Which show has fewer episodes, Avatar: The Last Airbender (the one whose number of episodes is 61) or Lou Grant?
Choices:
South Park
Robot Chicken
Tiny Toon Adventures
Avatar: The Last Airbender
The Venture Bros.
Phineas and Ferb
Batman Beyond
The Cleveland Show
Aladdin
American Dad!
Program:
function: Find
inputs: Avatar: The Last Airbender
function: FilterNum
dependencies: 0
inputs: number of episodes
61
=
function: Find
inputs: Lou Grant
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Avatar: The Last Airbender" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "61"^^xsd:double . } UNION { ?e <pred:name> "Lou Grant" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Avatar: The Last Airbender