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

Question: What is the number of series of the title of "your wife's a payne"?
SQL: SELECT MAX("series") FROM tyler_perry_episodes WHERE "title" = '"Your Wife''s a Payne"'

Question: Who write "a grand payne"?
SQL: SELECT "written_by" FROM tyler_perry_episodes WHERE "title" = '"A Grand Payne"'

Question: What is the number of series with a title of "with friends like these"?
SQL: SELECT COUNT("series") FROM tyler_perry_episodes WHERE "title" = '"With Friends Like These"'

Question: What is the number of series with production code 503?
SQL: SELECT COUNT("series") FROM tyler_perry_episodes WHERE "production_code" = 503

Question: What is the title of production code 514?
SQL: SELECT "title" FROM tyler_perry_episodes WHERE "production_code" = 514