SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/location> <http://dbpedia.org/resource/Massachusetts> . ?uri <http://dbpedia.org/property/themeMusicComposer> <http://dbpedia.org/resource/Gary_Portnoy> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Among which sitcoms in which theme music is composed by Gary Portnoy is located in Massachusetts?
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Television_Show . ?b property:theme_music_composer resource:Gary_Portnoy . ?b property:location resource:Massachusetts }
Cheers
[Cheers] is the television show located in Massachusetts and with theme music composed by Gary Portnoy.
[Cheers] is a television show from Massachusetts with a thematic musical composer, Gary Portnoy.
[Cheers] is the television show whose location is Massachusetts and theme music composer is the person.
[Cheers] is a television show set in Massachusetts with the person as music composer.