When was the incumbent first elected in the district where the result was a democratic-republican gain?
CREATE TABLE table_28934 (
    "District" text,
    "Incumbent" text,
    "Party" text,
    "First elected" text,
    "Result" text,
    "Candidates" text
)
SELECT "First elected" FROM table_28934 WHERE "Result" = 'Democratic-Republican gain'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When was the incumbent first elected in the district where the result was a democratic-republican gain? ### Input: CREATE TABLE table_28934 (
    "District" text,
    "Incumbent" text,
    "Party" text,
    "First elected" text,
    "Result" text,
    "Candidates" text
) ### Response: SELECT "First elected" FROM table_28934 WHERE "Result" = 'Democratic-Republican gain'