Question: Which has the most seasons among the animated series whose genre is comedy-drama?
Choices:
King of the Hill
American Dad!
Robot Chicken
The Cleveland Show
Aladdin
The Venture Bros.
The Adventures of Tintin
Tiny Toon Adventures
South Park
Phineas and Ferb
Program:
function: Find
inputs: comedy-drama
function: Relate
dependencies: 0
inputs: genre
backward
function: FilterConcept
dependencies: 1
inputs: animated series
function: SelectAmong
dependencies: 2
inputs: number of seasons
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" . ?e <genre> ?e_1 . ?e_1 <pred:name> "comedy-drama" .  ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: King of the Hill