user: Question: Which 1st Party has an Election of 1849 by-election?
Columns: ['Election', '1st Member', '1st Party', '2nd Member', '2nd Party']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['1832', 'Charles Shaw-Lefevre', 'Liberal', 'James Winter Scott', 'Liberal Party']
SQL:

assistant: SELECT "1st Party" FROM "Table" WHERE "Election" = '1849 by-election';