CREATE TABLE "owned_and_operated" (
  "city_of_license_market" text,
  "station" text,
  "channel_tv_rf" text,
  "year_of_affiliation" real,
  "year_of_disaffiliation" real
);

Question: What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
SQL: SELECT MAX("year_of_disaffiliation") FROM "owned_and_operated" WHERE "station"='chch-tv' AND "year_of_affiliation">2001;

Question: What is the earliest year of disaffiliation of a CHCH-TV station, licensed in Hamilton, Ontario?
SQL: SELECT MIN("year_of_disaffiliation") FROM "owned_and_operated" WHERE "city_of_license_market"='hamilton, ontario';