CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
CREATE TABLE election (Party VARCHAR, Committee VARCHAR)

What are the names of parties that have both delegates on 'Appropriations' committee and
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"
SELECT "T2"."Party" FROM "election" AS "T1" JOIN "party" AS "T2" ON "T1"."Party" = "T2"."Party_ID" WHERE "Appropriations" = "T1"."Committee" INTERSECT SELECT "T2"."Party" FROM "election" AS "T1" JOIN "party" AS "T2" ON "T1"."Party" = "T2"."Party_ID" WHERE "Economic Matters" = "T1"."Committee"