How many times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24?
CREATE TABLE table_2668199_2 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR)
SELECT COUNT(first_elected) FROM table_2668199_2 WHERE result = "Re-elected" AND party = "Anti-Masonic" AND district = "Pennsylvania 24"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668199_2 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) Question: How many times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24? [/INST] SELECT COUNT(first_elected) FROM table_2668199_2 WHERE result = "Re-elected" AND party = "Anti-Masonic" AND district = "Pennsylvania 24" </s>