Question: Among the animated series whose genre is television comedy, which has the largest number of episodes?
Choices:
Phineas and Ferb
Adrian
The Simpsons
The Smurfs
The Penguins of Madagascar
The Fairly OddParents
King of the Hill
Aladdin
Freakazoid!
SpongeBob SquarePants
Answer: The Simpsons
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" . ?e <genre> ?e_1 . ?e_1 <pred:name> "television comedy" .  ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: television comedy
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: animated series
function: SelectAmong
dependencies: 2
inputs: number of episodes
largest