SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/openingTheme> <http://dbpedia.org/resource/Where_Everybody_Knows_Your_Name> . ?uri <http://dbpedia.org/ontology/location> <http://dbpedia.org/resource/Massachusetts> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Which television show is based in Massachusetts and has opening theme as "Where Everybody Knows Your Name" ?
SELECT DISTINCT ?i WHERE { ?i property:location resource:Massachusetts . ?i property:opening_theme resource:Where_Everybody_Knows_Your_Name . ?i rdf:type ontology:Television_Show }
Cheers
[Cheers] is the television show whose opening theme is Where Everybody Knows Your Name and location is Massachusetts.
[Cheers] is a television show having opening theme is Where everyone knows their name and located in Massachusetts.