Table: perry_payne_episodes
Columns: series_no
season_no
title
directed_by
written_by
original_air_date
production_code

Question: What is the first season written by joseph hampton & dani renee?
SQL: SELECT MIN("season_no") FROM perry_payne_episodes WHERE "written_by" = 'Joseph Hampton & Dani Renee'

Question: How many air dates are there for production code 206?
SQL: SELECT COUNT("original_air_date") FROM perry_payne_episodes WHERE "production_code" = 206

Question: What is the title for season 2?
SQL: SELECT "title" FROM perry_payne_episodes WHERE "season_no" = 2

Question: What is the series number for the title "Bad Influence"
SQL: SELECT MAX("series_no") FROM perry_payne_episodes WHERE "title" = '"Bad Influence"'

Question: How many seasons was series number 47 shown?
SQL: SELECT COUNT("season_no") FROM perry_payne_episodes WHERE "series_no" = 47