Schema: CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR)
Question: What number of party had a candidate  resigned when appointed judge democratic hold?
SQL: SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"