SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/openingTheme> <http://dbpedia.org/resource/Where_Everybody_Knows_Your_Name> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
What is the television show whose opening theme is Where Everybody Knows Your Name?
SELECT DISTINCT ?f WHERE { ?f property:opening_theme resource:Where_Everybody_Knows_Your_Name . ?f rdf:type ontology:Television_Show }
Cheers
The television show whose opening theme is Where Everybody Knows Your Name is [Cheers].
A TV show whose main theme is Where Everyone Knows His Name is [Cheers]