SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/The_Lost_Special> <http://dbpedia.org/property/series> ?uri. <http://dbpedia.org/resource/Sherlock_Holmes_(play)> <http://dbpedia.org/property/characters> ?uri}
Which series has an episode called The lost special and also a character named Sherlock Holmes ?
SELECT DISTINCT ?c WHERE { resource:Sherlock_Holmes_(play) property:characters ?c . resource:The_Lost_Special property:series ?c }
Sherlock Holmes
The series with The Lost Special as an episode and Sherlock Holmes as character is [Sherlock Holmes].
A show with The Special One as an episode and Sherlock Holmes as a character is [Sherlock Holmes].