Table: va_elections_2007
Columns: district
incumbent
party
elected
status

Question: Party of republican, and a District of 7th is what elected?
SQL: SELECT "elected" FROM va_elections_2007 WHERE "party" = 'republican' AND "district" = '7th'

Question: Party of republican, and a District of 5th is what highest elected?
SQL: SELECT MAX("elected") FROM va_elections_2007 WHERE "party" = 'republican' AND "district" = '5th'

Question: Elected smaller than 2001, and a District of 83rd has what status?
SQL: SELECT "status" FROM va_elections_2007 WHERE "elected" < 2001 AND "district" = '83rd'

Question: Status of reelected, and a Incumbent of danny marshall iii is what highest elected?
SQL: SELECT MAX("elected") FROM va_elections_2007 WHERE "status" = 'reelected' AND "incumbent" = 'danny marshall iii'