SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/related> <http://dbpedia.org/resource/The_Sarah_Jane_Adventures> . ?uri <http://dbpedia.org/property/themeMusicComposer> <http://dbpedia.org/resource/Ron_Grainer> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/TelevisionShow>}
Name the TV show whose cast member is Companion (Doctor Who) and is related to The Sarah Jane Adventures?
SELECT DISTINCT ?i WHERE { ?i property:related resource:The_Sarah_Jane_Adventures . ?i rdf:type ontology:Television_Show . ?i property:theme_music_composer resource:Ron_Grainer }
Doctor Who
[Doctor Who] is the television show whose cast member is Companion and is related to The Sarah Jane Adventures.
[Doctor Who] is a TV show with a cast that includes Sarah Jane Fiennes.
The television show whose related is The Sarah Jane Adventures and theme music composer is the person is [Doctor Who].
The TV show, whose relative is Sarah Jane and who wrote the title music, is the character [Doctor Who].