SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/starring> <http://dbpedia.org/resource/Companion_(Doctor_Who)> . ?uri <http://dbpedia.org/ontology/related> <http://dbpedia.org/resource/The_Sarah_Jane_Adventures> . ?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 ?a WHERE { ?a property:starring resource:Companion_(_Doctor_Who) . ?a rdf:type ontology:Television_Show . ?a property:related resource:The_Sarah_Jane_Adventures }
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.