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

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" "T1" JOIN "party" "T2" ON "T1"."Party" = "T2"."Party_ID" WHERE "Appropriations" = "T1"."Committee" INTERSECT SELECT "T2"."Party" FROM "election" "T1" JOIN "party" "T2" ON "T1"."Party" = "T2"."Party_ID" WHERE "Economic Matters" = "T1"."Committee"