What number of party had a candidate  resigned when appointed judge democratic hold?
CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR)
SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR) Question: What number of party had a candidate  resigned when appointed judge democratic hold? [/INST] SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold" </s>