Table: episode_data_25
Columns: series
season
title
directed_by
written_by
original_air_date
production_code

Question: Which season used production code "am10"?
SQL: SELECT COUNT("season") FROM episode_data_25 WHERE "production_code" = 'AM10'

Question: When did Jeremy Kagan's episode first air?
SQL: SELECT "original_air_date" FROM episode_data_25 WHERE "directed_by" = 'Jeremy Kagan'

Question: What seasons  in series 7 did David E. Kelley write ?
SQL: SELECT COUNT("season") FROM episode_data_25 WHERE "written_by" = 'David E. Kelley' AND "series" = 7