training_input
stringlengths
118
1.06k
###context:CREATE TABLE table_28621502_1 (title VARCHAR, publisher VARCHAR) ###human: Which titles have been published by Gamehouse Live? ###assistant: SELECT title FROM table_28621502_1 WHERE publisher = "GameHouse Live"
###context:CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR) ###human: What was pinky's bmi at the reunion? ###assistant: SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky"
###context:CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR) ###human: What was miles's bmi att the reunion? ###assistant: SELECT COUNT(reunion_bmi) FROM table_28654454_5 WHERE contestant = "Miles"
###context:CREATE TABLE table_28654454_5 (lbs_lost_reunion VARCHAR, finale_weight VARCHAR) ###human: How many lbs were lost at the reunion by the contestant whose finale weight was 151.4? ###assistant: SELECT lbs_lost_reunion FROM table_28654454_5 WHERE finale_weight = "151.4"
###context:CREATE TABLE table_28654454_5 (finale_weight VARCHAR, starting_bmi VARCHAR) ###human: How many contestants had a starting bmi of 33.1? ###assistant: SELECT COUNT(finale_weight) FROM table_28654454_5 WHERE starting_bmi = "33.1"
###context:CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_reunion VARCHAR) ###human: What is the reunion weight of the contestant that lost 52 lbs at the reunion? ###assistant: SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reunion = 52
###context:CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_finale VARCHAR) ###human: What is the reunion weight of the contestant who lost 74.4 lbs at the finale? ###assistant: SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_finale = "74.4"
###context:CREATE TABLE table_28628309_8 (team VARCHAR, category VARCHAR) ###human: Who is the team when the category is blocks per game? ###assistant: SELECT team FROM table_28628309_8 WHERE category = "Blocks per game"
###context:CREATE TABLE table_28628309_8 (games_played VARCHAR, player VARCHAR) ###human: What is the listed in games played when the player is jimmy alapag? ###assistant: SELECT games_played FROM table_28628309_8 WHERE player = "Jimmy Alapag"
###context:CREATE TABLE table_28628309_8 (team VARCHAR, player VARCHAR) ###human: What is the team when player is listed as Ronjay Buenafe? ###assistant: SELECT team FROM table_28628309_8 WHERE player = "Ronjay Buenafe"
###context:CREATE TABLE table_28628309_8 (player VARCHAR, category VARCHAR) ###human: What is the name of the player when the category is listed as field goal percentage? ###assistant: SELECT player FROM table_28628309_8 WHERE category = "Field goal percentage"
###context:CREATE TABLE table_28628309_8 (games_played INTEGER, category VARCHAR) ###human: What is the games played when the category is points per game? ###assistant: SELECT MIN(games_played) FROM table_28628309_8 WHERE category = "Points per game"
###context:CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR) ###human: Who is the player when the category is steals per game? ###assistant: SELECT player FROM table_28628309_9 WHERE category = "Steals per game"
###context:CREATE TABLE table_28628309_9 (category VARCHAR, player VARCHAR) ###human: What are the names of the categories when the player is olsen racela? ###assistant: SELECT category FROM table_28628309_9 WHERE player = "Olsen Racela"
###context:CREATE TABLE table_28628309_9 (totals VARCHAR, player VARCHAR) ###human: How many times is a total listed when the player is Jay Washington? ###assistant: SELECT COUNT(totals) FROM table_28628309_9 WHERE player = "Jay Washington"
###context:CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR) ###human: What is the total listed when the average is 0.667 and the category is 3-pt field goal percentage? ###assistant: SELECT totals FROM table_28628309_9 WHERE average = "0.667" AND category = "3-pt field goal percentage"
###context:CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR) ###human: What is the name of the player when the category is 3-pt field goal percentage? ###assistant: SELECT player FROM table_28628309_9 WHERE category = "3-pt field goal percentage"
###context:CREATE TABLE table_2866514_1 (title VARCHAR, us_viewers__million_ VARCHAR) ###human: What are the titles of episodes with 5.66 million US viewers? ###assistant: SELECT title FROM table_2866514_1 WHERE us_viewers__million_ = "5.66"
###context:CREATE TABLE table_2866514_1 (title VARCHAR, directed_by VARCHAR) ###human: What are the titles of episodes directed by whitney ransick? ###assistant: SELECT title FROM table_2866514_1 WHERE directed_by = "Whitney Ransick"
###context:CREATE TABLE table_2866514_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) ###human: Who wrote the episode with 3.96 million US viewers? ###assistant: SELECT written_by FROM table_2866514_1 WHERE us_viewers__million_ = "3.96"
###context:CREATE TABLE table_28677723_8 (christer_tornell INTEGER, trine_dehli_cleve VARCHAR) ###human: What was the maximum value that Christer Tornell gave when Trine Dehli Cleve gave a 9? ###assistant: SELECT MAX(christer_tornell) FROM table_28677723_8 WHERE trine_dehli_cleve = 9
###context:CREATE TABLE table_28693349_2 (games INTEGER, player VARCHAR) ###human: How many games did Robert Peare play? ###assistant: SELECT MAX(games) FROM table_28693349_2 WHERE player = "Robert Peare"
###context:CREATE TABLE table_28693349_2 (free_throws INTEGER, player VARCHAR) ###human: How many free throws did Charles Pearman score? ###assistant: SELECT MAX(free_throws) FROM table_28693349_2 WHERE player = "Charles Pearman"
###context:CREATE TABLE table_2869837_1 (Shared VARCHAR, last_final VARCHAR) ###human: How many shared titles does the club whose last final was 2012 have? ###assistant: SELECT Shared AS titles FROM table_2869837_1 WHERE last_final = 2012
###context:CREATE TABLE table_2869837_1 (last_final VARCHAR, last_title VARCHAR) ###human: What was the year of the last final for the club whose last title was 1990? ###assistant: SELECT last_final FROM table_2869837_1 WHERE last_title = "1990"
###context:CREATE TABLE table_2869837_1 (Shared INTEGER, last_final VARCHAR) ###human: What is the minimum number of shared titles for the club whose last final was in 2006? ###assistant: SELECT MIN(Shared) AS titles FROM table_2869837_1 WHERE last_final = 2006
###context:CREATE TABLE table_2869837_1 (last_final INTEGER, last_title VARCHAR) ###human: What is the latest year of last final for the club whose last title was in 1994? ###assistant: SELECT MAX(last_final) FROM table_2869837_1 WHERE last_title = "1994"
###context:CREATE TABLE table_2869837_1 (runners_up VARCHAR, school VARCHAR) ###human: What are the number of runners up for Royal School Dungannon? ###assistant: SELECT runners_up FROM table_2869837_1 WHERE school = "Royal school Dungannon"
###context:CREATE TABLE table_28715942_5 (track VARCHAR, vocal_percussionist VARCHAR) ###human: What is the track whent the vocal percussionist is unknown? ###assistant: SELECT track FROM table_28715942_5 WHERE vocal_percussionist = "unknown"
###context:CREATE TABLE table_28715942_5 (arranger_s_ VARCHAR, vocal_percussionist VARCHAR) ###human: Who is the arranger when the vocal percussionist is Alexei Kalveks and Dave Brennan? ###assistant: SELECT arranger_s_ FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks and Dave Brennan"
###context:CREATE TABLE table_28715942_5 (original_artist VARCHAR, vocal_percussionist VARCHAR) ###human: What is the original artist when the vocal percussionist is Alexei Kalveks? ###assistant: SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks"
###context:CREATE TABLE table_28741_1 (area__km_2__ INTEGER, capital VARCHAR) ###human: How few km 2 does the area with Nay Pyi Taw as capital cover? ###assistant: SELECT MIN(area__km_2__) FROM table_28741_1 WHERE capital = "Nay Pyi Taw"
###context:CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR) ###human: What is the 2012 population of Indonesia? ###assistant: SELECT population_2012_ FROM table_28741_1 WHERE country = "Indonesia"
###context:CREATE TABLE table_28741_1 (_usd__2012_ VARCHAR, gdp__nominal__per_capita VARCHAR, capital VARCHAR) ###human: What are the numbers for GDP (nominal) per capita and USD (2012) of the area with Phnom Penh as capital? ###assistant: SELECT COUNT(gdp__nominal__per_capita), _usd__2012_ FROM table_28741_1 WHERE capital = "Phnom Penh"
###context:CREATE TABLE table_28750142_1 (distance VARCHAR, jockey VARCHAR) ###human: What is the distance of jockey Jason Titley? ###assistant: SELECT distance FROM table_28750142_1 WHERE jockey = "Jason Titley"
###context:CREATE TABLE table_28750142_1 (jockey VARCHAR, name VARCHAR) ###human: What is the name of the jockey for Pink Gin? ###assistant: SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin"
###context:CREATE TABLE table_28768469_10 (date VARCHAR, location_attendance VARCHAR) ###human: The location attendance is ford center 17,021 on what dates? ###assistant: SELECT date FROM table_28768469_10 WHERE location_attendance = "Ford Center 17,021"
###context:CREATE TABLE table_28768469_10 (high_assists VARCHAR, game VARCHAR) ###human: In game 73, what were the total number of high assists? ###assistant: SELECT COUNT(high_assists) FROM table_28768469_10 WHERE game = 73
###context:CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR) ###human: What is the location for the game on October 20 with it's corresponding attendance? ###assistant: SELECT location_attendance FROM table_28768469_2 WHERE date = "October 20"
###context:CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR) ###human: Who directed episode 11 of the season? ###assistant: SELECT director FROM table_28785738_1 WHERE no_in_season = 11
###context:CREATE TABLE table_28802668_3 (title VARCHAR, no_in_season VARCHAR) ###human: How many episode titles does episode 19 in the season have? ###assistant: SELECT COUNT(title) FROM table_28802668_3 WHERE no_in_season = 19
###context:CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR) ###human: if the bbi is 4/39 what is the average ###assistant: SELECT average FROM table_28798161_3 WHERE bbi = "4/39"
###context:CREATE TABLE table_28798161_3 (bbi VARCHAR, economy VARCHAR) ###human: if the economy is 3.63 what is the bbi ###assistant: SELECT bbi FROM table_28798161_3 WHERE economy = "3.63"
###context:CREATE TABLE table_28798161_3 (Id VARCHAR) ###human: in the leage what was the minimum 4wi ###assistant: SELECT MIN(4 AS wi) FROM table_28798161_3
###context:CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR) ###human: What is the poor law union on Marshalstown? ###assistant: SELECT poor_law_union FROM table_28802165_1 WHERE townland = "Marshalstown"
###context:CREATE TABLE table_28802165_1 (s_acre INTEGER, civil_parish VARCHAR) ###human: What is the maximum acres in Castledermot? ###assistant: SELECT MAX(s_acre) FROM table_28802165_1 WHERE civil_parish = "Castledermot"
###context:CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR) ###human: What is the civil parish of Aghafullim? ###assistant: SELECT civil_parish FROM table_28802165_1 WHERE townland = "Aghafullim"
###context:CREATE TABLE table_28802165_1 (s_acre VARCHAR, townland VARCHAR) ###human: How many acres is the townland of Maddenstown Middle? ###assistant: SELECT s_acre FROM table_28802165_1 WHERE townland = "Maddenstown Middle"
###context:CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR) ###human: How many original air dates did the episode directed by Bethany rooney have? ###assistant: SELECT COUNT(original_air_date) FROM table_28859177_3 WHERE directed_by = "Bethany Rooney"
###context:CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR) ###human: What is the production code for the episode that aired on October 15, 2004? ###assistant: SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004"
###context:CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) ###human: What is the original air date for episode graeme clifford directed and lindsay sturman wrote? ###assistant: SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
###context:CREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR) ###human: Who was the player that was picked by Los Angeles Kings? ###assistant: SELECT player FROM table_2886617_6 WHERE nhl_team = "Los Angeles Kings"
###context:CREATE TABLE table_2886617_6 (nationality VARCHAR, player VARCHAR) ###human: What nationality was peter slamiar? ###assistant: SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar"
###context:CREATE TABLE table_2886617_4 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ###human: What team did the New York Rangers recruit a player from? ###assistant: SELECT college_junior_club_team FROM table_2886617_4 WHERE nhl_team = "New York Rangers"
###context:CREATE TABLE table_2886617_4 (nationality VARCHAR, player VARCHAR) ###human: How many countries had players named Marc Savard get picked? ###assistant: SELECT COUNT(nationality) FROM table_2886617_4 WHERE player = "Marc Savard"
###context:CREATE TABLE table_2886617_4 (nationality VARCHAR, nhl_team VARCHAR) ###human: What country does the player who joined the Vancouver Canucks originally hail from? ###assistant: SELECT nationality FROM table_2886617_4 WHERE nhl_team = "Vancouver Canucks"
###context:CREATE TABLE table_2886617_4 (pick VARCHAR, player VARCHAR) ###human: How many times did Alyn McCauley get picked? ###assistant: SELECT COUNT(pick) FROM table_2886617_4 WHERE player = "Alyn McCauley"
###context:CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR) ###human: Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)? ###assistant: SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)"
###context:CREATE TABLE table_2886617_3 (nhl_team VARCHAR, player VARCHAR) ###human: Which nhl team has the player kevin mckay? ###assistant: SELECT nhl_team FROM table_2886617_3 WHERE player = "Kevin McKay"
###context:CREATE TABLE table_2886617_3 (pick VARCHAR, nationality VARCHAR, player VARCHAR) ###human: How many picks have canada as the nationality and larry courville is the player? ###assistant: SELECT COUNT(pick) FROM table_2886617_3 WHERE nationality = "Canada" AND player = "Larry Courville"
###context:CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR) ###human: Which pick has marko makinen as the player? ###assistant: SELECT pick FROM table_2886617_3 WHERE player = "Marko Makinen"
###context:CREATE TABLE table_2886617_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ###human: What college club team did the Dallas Stars choose their draft pick from? ###assistant: SELECT college_junior_club_team FROM table_2886617_9 WHERE nhl_team = "Dallas Stars"
###context:CREATE TABLE table_2886617_9 (player VARCHAR, nhl_team VARCHAR) ###human: Who was picked for the draft by St. Louis Blues? ###assistant: SELECT player FROM table_2886617_9 WHERE nhl_team = "St. Louis Blues"
###context:CREATE TABLE table_28885977_1 (stadium VARCHAR, location VARCHAR) ###human: Which stadium is located in Adelaide, South Australia? ###assistant: SELECT stadium FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
###context:CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR) ###human: In what location was a stadium built for the St Kilda Football Club? ###assistant: SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club"
###context:CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR) ###human: What is the location of the Moorabbin Oval stadium? ###assistant: SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval"
###context:CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR) ###human: What was the stadium in Adelaide, South Australia built for? ###assistant: SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
###context:CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR) ###human: What was the stadium in Moorabbin, Victoria built for? ###assistant: SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria"
###context:CREATE TABLE table_28885977_1 (capacity_at_construction VARCHAR, location VARCHAR) ###human: What was the capacity at construction of the stadium in Gold Coast, Queensland? ###assistant: SELECT capacity_at_construction FROM table_28885977_1 WHERE location = "Gold Coast, Queensland"
###context:CREATE TABLE table_2889810_2 (moto2_250cc VARCHAR, country VARCHAR) ###human: how many total number of moto2/250cc when country is united states ###assistant: SELECT COUNT(moto2_250cc) FROM table_2889810_2 WHERE country = "United States"
###context:CREATE TABLE table_2889810_2 (Id VARCHAR) ###human: how many minimum 350cc has ###assistant: SELECT MIN(350 AS cc) FROM table_2889810_2
###context:CREATE TABLE table_2889810_2 (country VARCHAR, moto3_125cc VARCHAR) ###human: how many country has moto3/125cc with 15 ###assistant: SELECT country FROM table_2889810_2 WHERE moto3_125cc = 15
###context:CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR) ###human: When arthur collins is the winner what is the reason? ###assistant: SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins"
###context:CREATE TABLE table_28898948_3 (date VARCHAR, incumbent VARCHAR) ###human: When ihaia tainui is the incumbent what is the date? ###assistant: SELECT date FROM table_28898948_3 WHERE incumbent = "Ihaia Tainui"
###context:CREATE TABLE table_28898948_3 (winner VARCHAR, electorate VARCHAR) ###human: When rangitikei is the electorate who is the winner? ###assistant: SELECT winner FROM table_28898948_3 WHERE electorate = "Rangitikei"
###context:CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR) ###human: When waikaia is the electorate what is the highest by-election? ###assistant: SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"
###context:CREATE TABLE table_28898948_3 (incumbent VARCHAR, reason VARCHAR, by_election VARCHAR) ###human: When 1881 is the by-election and death is the reason who is the incumbent? ###assistant: SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = 1881
###context:CREATE TABLE table_28948937_3 (partner VARCHAR, outcome VARCHAR, surface VARCHAR) ###human: What is the name of the partner that has a winner outcome and a hard surface? ###assistant: SELECT partner FROM table_28948937_3 WHERE outcome = "Winner" AND surface = "Hard"
###context:CREATE TABLE table_28946565_2 (week_2 VARCHAR, week_7 VARCHAR) ###human: How many week 2 scores have a week 7 score of 40 + 40 = 80? ###assistant: SELECT COUNT(week_2) FROM table_28946565_2 WHERE week_7 = 40 + 40 = 80
###context:CREATE TABLE table_28946565_2 (week_3 INTEGER) ###human: What is the smallest week 3 score? ###assistant: SELECT MIN(week_3) FROM table_28946565_2
###context:CREATE TABLE table_28946565_2 (couple VARCHAR, week_2 VARCHAR) ###human: Which couple had a week 2 score of exactly 23? ###assistant: SELECT couple FROM table_28946565_2 WHERE week_2 = 23
###context:CREATE TABLE table_28967275_3 (series__number VARCHAR, episode__number VARCHAR) ###human: when 68 is the episode number what is the series number? ###assistant: SELECT series__number FROM table_28967275_3 WHERE episode__number = 68
###context:CREATE TABLE table_28967275_3 (original_air_date VARCHAR, episode__number VARCHAR) ###human: when 69 is the episode number what is the air date? ###assistant: SELECT original_air_date FROM table_28967275_3 WHERE episode__number = 69
###context:CREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR) ###human: What draft pick is a goaltender? ###assistant: SELECT pick__number FROM table_2897457_1 WHERE position = "Goaltender"
###context:CREATE TABLE table_2897457_1 (position VARCHAR, player VARCHAR) ###human: What position does Olaf Kolzig play? ###assistant: SELECT position FROM table_2897457_1 WHERE player = "Olaf Kolzig"
###context:CREATE TABLE table_2897457_1 (nhl_team VARCHAR, nationality VARCHAR) ###human: What team drafted a player from Sweden? ###assistant: SELECT nhl_team FROM table_2897457_1 WHERE nationality = "Sweden"
###context:CREATE TABLE table_29023680_2 (company VARCHAR, date_of_election_commission VARCHAR) ###human: How many company commanders were commissioned or elected on November 12, 1861? ###assistant: SELECT COUNT(company) AS Commander FROM table_29023680_2 WHERE date_of_election_commission = "November 12, 1861"
###context:CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR) ###human: In the 250 series on clay what were the scores? ###assistant: SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series"
###context:CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR) ###human: what is the most amount of cattle where they live in british columbia ###assistant: SELECT MAX(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "British Columbia"
###context:CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_cows VARCHAR) ###human: what is the most number where cattle is 13000 ###assistant: SELECT COUNT(province) FROM table_29012710_1 WHERE number_of_dairy_cows = 13000
###context:CREATE TABLE table_29012710_1 (production__hectolitres_ VARCHAR, province VARCHAR) ###human: what is the amount where the area is new brunswick ###assistant: SELECT production__hectolitres_ FROM table_29012710_1 WHERE province = "New Brunswick"
###context:CREATE TABLE table_29012710_1 (province VARCHAR, number_of_dairy_farms VARCHAR) ###human: what is the location where there are over 200 cattle businesses ###assistant: SELECT province FROM table_29012710_1 WHERE number_of_dairy_farms = 200
###context:CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER) ###human: what is the least amount of cattle head ###assistant: SELECT MIN(number_of_dairy_cows) FROM table_29012710_1
###context:CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR) ###human: what is the least amount of milk cattle in ontario ###assistant: SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "Ontario"
###context:CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) ###human: What is the production code of the episode that was watched by 3.81 million U.S. viewers? ###assistant: SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81"
###context:CREATE TABLE table_29087004_2 (written_by VARCHAR, production_code VARCHAR) ###human: Who wrote the episode with a production code of 116? ###assistant: SELECT written_by FROM table_29087004_2 WHERE production_code = 116
###context:CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR) ###human: What number episode in the series had and original United States air date of December 24, 2010? ###assistant: SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"
###context:CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR) ###human: Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011? ###assistant: SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011"
###context:CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR) ###human: What is the original United States air date of the episode written by Mike Ferris? ###assistant: SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris"
###context:CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR) ###human: Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe? ###assistant: SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe"