Table: tv_schedule_0809_2
Columns: 8_00
8_30
9_00
9_30
10_00

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 tv_schedule_0809_2 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 tv_schedule_0809_2 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 tv_schedule_0809_2 WHERE "8_30" = 'ugly betty'

Question: When Grey's Anatomy aired at 9:30 what aired at 9:00?
SQL: SELECT "9_00" FROM tv_schedule_0809_2 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 tv_schedule_0809_2 WHERE "8_00" = 'my name is earl'