According to Wikipedia,
Sherlock Holmes came first.
The Big Bang Theory Season 7, Episode 18
# Sherlock, Sherlock #
The Big Bang Theory Season 11, Episode 13
Sherlock Holmes always says,
"When you eliminate the impossible...
The Big Bang Theory Season 8, Episode 1
# Sherlock, Sherlock #
The Big Bang Theory Season 11, Episode 13
They slept together, Sherlock.
The Big Bang Theory Season 5, Episode 1