What party is thomas foglietta from?
CREATE TABLE table_1341472_40 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341472_40 WHERE incumbent = "Thomas Foglietta"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_1341472_40 (party VARCHAR, incumbent VARCHAR) Question: What party is thomas foglietta from? [/INST] SELECT party FROM table_1341472_40 WHERE incumbent = "Thomas Foglietta" </s>