Question: What animated series that started before 2005 has the smallest number of episodes?
Choices:
Robot Chicken
The Fairly OddParents
King of the Hill
American Dad!
Batman Beyond
Aladdin
The Simpsons
Tiny Toon Adventures
The Cleveland Show
Hercules
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: date of first performance
2005
<
function: FilterConcept
dependencies: 1
inputs: animated series
function: SelectAmong
dependencies: 2
inputs: number of episodes
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" . ?e <date_of_first_performance> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 < 2005 ) . ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hercules