user: ### NOW ANSWER:
Question: What episode number of the season did Tony Basgallop write?
Columns: ['No.', '#', 'Episode', 'Writer', 'Director', 'Original air date', 'Viewing figure']
Types: ['real', 'real', 'text', 'text', 'text', 'text', 'real']
Sample row: [8.0, 1.0, '"Cure and Contagion"', 'Toby Whithouse', 'Colin Teague', '10January2010', 1613000.0]
SQL:

assistant: SELECT MIN("#") FROM "Table" WHERE "Writer" = 'Tony Basgallop';