SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/themeMusicComposer> <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>}
Which television show's theme music composer is Gary Portnoy and subsequent work is Frasier?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Television_Show . ?h property:theme_music_composer resource:Gary_Portnoy . ?h property:subsequent_work resource:Frasier }
Cheers
[Cheers] is the television show whose theme music was composed by Gary Portnoy and has Frasier as a subsequent work.
[Cheers] is a television show that Gary Portnoy wrote and produced.
[Cheers] is the television show whose theme music composer is him and subsequent work is Frasier.
[Cheers] is a television show in which he has a starring role and his subsequent work.
[Cheers] is the television show whose theme music composer is Gary Portnoy and subsequent work is the person.
[Cheers] is a TV show with Gary Portnoy as its title and The Beatles as its follow-up.