Question: Among the comedies that use English language,which one has the smallest number of seasons ?
Choices:
Karen Black
Mr. Smith Goes to Washington
Brave
stand-up comedy
comedy of manners
Kate Moss
The Monkees
The Golden Girls
farce
Fiddler on the Roof
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
smallest
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 ?v LIMIT 1
Answer: Mr. Smith Goes to Washington