I know this may sound a little vague, but i’m hoping that someone can help me get this stupid tune off my mind. In one of the Simpsons episodes, the nerdy comicbook store owner sings something to the tune of a Star Trek song. The only thing I can remeber is the ending which he says “Skinner”. I believe that the line comes from the episode where Lisa joins the “smart” society and the mayor skips town for some reason or another and Lisa’s group assumes the Mayor’s job.
Can’t place the episode off the top of my head, but an excellent resource to check is the The Simpsons Archive. You can search the Episode Capsules they have which are basically transcipts of the show.