when was the incumbent first elected in the district where the result was a democratic-republican gain?
1799.0