Question: What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?
SQL: SELECT Party FROM table WHERE Result = Re-elected AND First elected = 1797 AND District = Virginia 5