Question: Of all the television programs that ended in 2007, which has the most episodes?
Choices:
Monster House
The Wire, season 2
Lost, season 3
The Wire, season 1
The Wire, season 3
Peter Pan
Cold War
The Wire, season 5
Cranford
The Larry Sanders Show
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: end time
2007
=
function: FilterConcept
dependencies: 1
inputs: television program
function: SelectAmong
dependencies: 2
inputs: number of episodes
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television program" . ?e <end_time> ?pv_1 . ?pv_1 <pred:year> 2007 . ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lost, season 3