CREATE TABLE table_12845 ("Election" CLOB, "1st Member" CLOB, "1st Party" CLOB, "2nd Member" CLOB, "2nd Party" CLOB)

Which 1st Party has a 2nd Member of william rawson shaw, and a 1st Member of sir james stansfeld?
SELECT "1st Party" FROM table_12845 WHERE "2nd Member" = 'william rawson shaw' AND "1st Member" = 'sir james stansfeld'
SELECT "1st Party" FROM "table_12845" WHERE "1st Member" = 'sir james stansfeld' AND "2nd Member" = 'william rawson shaw'