user: Question: What is the last episode in the series written by Gregory S. Malins?
Columns: ['No(s). in series', 'No(s). in season', 'Title', 'Directed by', 'Written by', 'Original air date', 'Production code(s)', 'U.S. viewers (millions)']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'real', 'text']
Sample row: [148.0, 2.0, '"The One with Rachel\'s Book"', 'Michael Lembeck', 'Andrew Reich & Ted Cohen', 'October12,2000', 226402.0, '27.9']
SQL:

assistant: SELECT MAX("No(s). in series") FROM "Table" WHERE "Written by" = 'Gregory S. Malins';