You should watch:

Stargate SG-1: Season 10 Episode 10: The Quest (Part 1)

Perhaps you might want to check out The Order of Watching Stargate