user: ### NOW ANSWER:
Question: What party did the incumbent Thomas P. Moore belong to?
Columns: ['District', 'Incumbent', 'Party', 'First elected', 'Result', 'Candidates']
Types: ['text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Kentucky 1', 'David Trimble', 'Adams', '1816', 'Lost re-election Jacksonian gain', 'Henry Daniel (J) 52.2% David Trimble (A) 47.8%']
SQL:

assistant: SELECT "Party" FROM "Table" WHERE "Incumbent" = 'Thomas P. Moore';