Question: Which English-language comedy has the most seasons?
Choices:
Mr. Smith Goes to Washington
stand-up comedy
farce
Queen's University Belfast
comedy of manners
Billy Crystal
The Monkees
Crunk
Oswego County
The Golden Girls
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: FilterConcept
dependencies: 1
inputs: comedy
function: SelectAmong
dependencies: 2
inputs: number of seasons
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "comedy" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .  ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Golden Girls