Table schema:
CREATE TABLE table_1341472_40 (party VARCHAR, incumbent VARCHAR)

Question: What party is thomas foglietta from?
SQL: SELECT party FROM table_1341472_40 WHERE incumbent = "Thomas Foglietta"