CREATE TABLE election (election_id DECIMAL, counties_represented TEXT, district DECIMAL, delegate TEXT, party DECIMAL, first_elected DECIMAL, committee TEXT)
CREATE TABLE party (party_id DECIMAL, year DECIMAL, party TEXT, governor TEXT, lieutenant_governor TEXT, comptroller TEXT, attorney_general TEXT, us_senate TEXT)
CREATE TABLE county (county_id DECIMAL, county_name TEXT, population DECIMAL, zip_code TEXT)

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"