user: ### NOW ANSWER:
Question: What party did the incumbent from the Virginia 5 district who was Re-elected and was first elected in 1797 belong to?
Columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result', 'Candidates']
Types: ['text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Virginia 2', 'David Holmes', 'Democratic-Republican', '1797', 'Re-elected', 'David Holmes (DR) Alexander Sinclair (F)']
SQL:

assistant: SELECT "Party" FROM "Table" WHERE "Result" = 'Re-elected' AND "First elected" = '1797' AND "District" = 'Virginia 5';