Table: episode_info_12
Columns: no_in_series
no_in_season
title
directed_by
written_by
original_air_date
production_code

Question: How many episodes have the production code ip04004?
SQL: SELECT COUNT("title") FROM episode_info_12 WHERE "production_code" = 'IP04004'

Question: What season number is the episode "The Gang Cracks The Liberty Bell"?
SQL: SELECT MIN("no_in_season") FROM episode_info_12 WHERE "title" = '"The Gang Cracks the Liberty Bell"'

Question: How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?
SQL: SELECT COUNT("written_by") FROM episode_info_12 WHERE "title" = '"Paddy''s Pub: The Worst Bar in Philadelphia"'

Question: Who wrote episode number 11?
SQL: SELECT "written_by" FROM episode_info_12 WHERE "no_in_season" = 11

Question: Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?
SQL: SELECT "written_by" FROM episode_info_12 WHERE "title" = '"The Gang Gets Extreme: Home Makeover Edition"'