Question: Of the television series that ended in 2004, which had the most seasons?
Choices: Sex and the City
Saturday Night's Main Event
Robot Chicken
Bleak House
Six Feet Under
Angel
The Practice
Frasier
American Horror Story
Friends
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <end_time> ?pv_1 . ?pv_1 <pred:year> 2004 . ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
2004
=
function: FilterConcept
dependencies: 1
inputs: television series
function: SelectAmong
dependencies: 2
inputs: number of seasons
largest
Answer: Frasier