How many first elected years are provided for Thomas P. Moore?
CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = "Thomas P. Moore"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) Question: How many first elected years are provided for Thomas P. Moore? [/INST] SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = "Thomas P. Moore" </s>