Question: Among the animated series with a publication date before 2008, which one has the largest number of episodes?
Choices:
The Boondocks
Aladdin
Animaniacs
Sonic the Hedgehog
SpongeBob SquarePants
The Fairly OddParents
Freakazoid!
Disney's House of Mouse
Ben 10
Avatar: The Last Airbender
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2008
<
function: FilterConcept
dependencies: 1
inputs: animated series
function: SelectAmong
dependencies: 2
inputs: number of episodes
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> ?v_1 . FILTER ( ?v_1 < 2008 ) . ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: SpongeBob SquarePants