Table: thornberrys_episodes
Columns: episode
in_season
episode_name
airdate
location

Question: What is the lowest episode # with an air date of October 31, 2001?
SQL: SELECT MIN("episode") FROM thornberrys_episodes WHERE "airdate" = 'october 31, 2001'

Question: What is the average episode # located in Tanzania and whose # in season is larger than 5?
SQL: SELECT AVG("episode") FROM thornberrys_episodes WHERE "location" = 'tanzania' AND "in_season" > 5

Question: What is the average episode # with a name of the origin of Donnie (part 1)?
SQL: SELECT AVG("episode") FROM thornberrys_episodes WHERE "episode_name" = 'the origin of donnie (part 1)'

Question: Which air date has 5 for # in season?
SQL: SELECT "airdate" FROM thornberrys_episodes WHERE "in_season" = 5