CREATE TABLE "former_teams" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);

Question: What's the team nickname of the private/catholic school whose enrollment is larger than 3,490?
SQL: SELECT "team_nickname" FROM "former_teams" WHERE "affiliation"='private/catholic' AND "enrollment">'3,490';

Question: What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
SQL: SELECT SUM("enrollment") FROM "former_teams" WHERE "location"='buffalo, new york' AND "affiliation"='public' AND "founded">1846;