CREATE TABLE "thursday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);

Question: What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30?
SQL: SELECT "8_00" FROM "thursday" WHERE "9_00"='grey''s anatomy' AND "8_30"='ugly betty';

Question: What played at 8:00 when there was local programming at 10:00 and Supernatural played at 9:00?
SQL: SELECT "8_00" FROM "thursday" WHERE "10_00"='local programming' AND "9_00"='supernatural';

Question: What show played at 8:00 when Ugly Betty played at 8:30?
SQL: SELECT "8_00" FROM "thursday" WHERE "8_30"='ugly betty';

Question: When Grey's Anatomy aired at 9:30 what aired at 9:00?
SQL: SELECT "9_00" FROM "thursday" WHERE "9_30"='grey''s anatomy';

Question: When My Name is Earl played at 8:00 what aired at 9:30?
SQL: SELECT "9_30" FROM "thursday" WHERE "8_00"='my name is earl';