SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/openingTheme> <http://dbpedia.org/resource/Gary_Portnoy> . ?uri <http://dbpedia.org/ontology/subsequentWork> <http://dbpedia.org/resource/Frasier> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Name the TV show whose opening theme is Gary Portnoy and the subsequent work is Frasier?
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Television_Show . ?g property:subsequent_work resource:Frasier . ?g property:opening_theme resource:Gary_Portnoy }
Cheers
[Cheers] is the television show whose opening theme is Gary Portnoy and the subsequent work is Frasier.
[Cheers] is a TV show about Gary Portnoy and his follow-up.
The television show whose opening theme is him and subsequent work is Frasier is [Cheers].
The TV show, which focuses on Ozier and his subsequent work, is called Cheers.