human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Episode #, Title, Air Date, Rating, Share, 18–49, Viewers, Rank
###Question: What is the average Episode # with a share of 9, and #35 is rank and less than 8.21 viewers?
gpt
SELECT AVG Episode # FROM table WHERE Share = 9 AND Rank = #35 AND Viewers < 8.21