CREATE TABLE table_12822 ("Election" TEXT, "1st Member" TEXT, "1st Party" TEXT, "2nd Member" TEXT, "2nd Party" TEXT)

What is 1st Party, when 2nd Party is 'Liberal', and when 1st Member is 'James Kershaw'?
SELECT "1st Party" FROM table_12822 WHERE "2nd Party" = 'liberal' AND "1st Member" = 'james kershaw'
SELECT "1st Party" FROM "table_12822" WHERE "1st Member" = 'james kershaw' AND "2nd Party" = 'liberal'