What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
CREATE TABLE "former_teams" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
SELECT SUM("enrollment") FROM "former_teams" WHERE "location"='buffalo, new york' AND "affiliation"='public' AND "founded">1846;