CREATE TABLE "awards_and_nominations" (
  "year" real,
  "nominated_for" text,
  "award" text,
  "category" text,
  "result" text
);

Question: Name what was nominated in years before 2002 for most popular comedy performer at the national television awards
SQL: SELECT "nominated_for" FROM "awards_and_nominations" WHERE "year"<2002 AND "award"='national television awards' AND "category"='most popular comedy performer';

Question: Name the result for the bafta tv awards
SQL: SELECT "result" FROM "awards_and_nominations" WHERE "award"='bafta tv awards';

Question: Name the category for nominated at the british comedy awards
SQL: SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "award"='british comedy awards';

Question: Name the year that Birds of a feather category for most popular actress was nominated
SQL: SELECT AVG("year") FROM "awards_and_nominations" WHERE "category"='most popular actress' AND "nominated_for"='birds of a feather';