Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004?
CREATE TABLE "judges" (
  "name" text,
  "appointed" real,
  "term_expiration" real,
  "appointing_governor" text,
  "law_school_attended" text
);
SELECT SUM("term_expiration") FROM "judges" WHERE "appointing_governor"='george pataki, republican' AND "appointed">2004;