Question: Which work in the theatrical genre, nominated for a Primetime Emmy for Outstanding Comedy Series, ran the most seasons?
Choices:
The Monkees
The Golden Girls
The Poseidon Adventure
Nanjing
Mr. Smith Goes to Washington
Churches of Christ
farce
Royal Victorian Chain
stand-up comedy
comedy of manners
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Comedy Series
function: Relate
dependencies: 0
inputs: nominated for
backward
function: FilterConcept
dependencies: 1
inputs: theatrical genre
function: SelectAmong
dependencies: 2
inputs: number of seasons
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "theatrical genre" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Comedy Series" .  ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Golden Girls