CREATE TABLE table_1341472_40 (party VARCHAR(255), incumbent VARCHAR(255))
What party is thomas foglietta from?
    
SQL: SELECT party FROM table_1341472_40 WHERE incumbent = "Thomas Foglietta"