This was simply an amazing episode. Sometimes only having a few jokes in an episode isn't really enough to keep you entertained (especially if you're not a huge sci-fi fan, but simply enjoy the drama and stories). Firefly was a good example of this, where almost every seen had some sort of comedic value to it, and this episode of Sg-1 was PERFECT in accomplishing this.
While it clearly didn't have any direct reference to the actual storyline (except maybe the O'Neil being Mitchell's father?? part), the comedy throughout was brilliant, especially making fun of the show that Mitchell and Vala are originally from (what was that called again?)
Absolutely amazing in my eyes.