text_output
stringlengths
114
770
<s>[INST] <<SYS>> CREATE TABLE table_21726793_1 (directed_by VARCHAR, production_code VARCHAR) <</SYS>> SELECT directed_by FROM table_21726793_1 WHERE production_code = "2T5710"[/INST] who directed the production code 2t5710?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_14 (location VARCHAR, date VARCHAR) <</SYS>> SELECT location FROM table_name_14 WHERE date = "11 november"[/INST] What is the location of the race on 11 November?</s>
<s>[INST] <<SYS>> CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) <</SYS>> SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous"[/INST] Name the result for already famous</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_7 (championship VARCHAR) <</SYS>> SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (4)"[/INST] What is the 54 holes for The Open Championship (4)?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_86 (location VARCHAR, size VARCHAR) <</SYS>> SELECT location FROM table_name_86 WHERE size = "245 acres"[/INST] What location was the campus that has a size of 245 acres?</s>
<s>[INST] <<SYS>> CREATE TABLE table_20704243_6 (original_air_date VARCHAR, season__number VARCHAR) <</SYS>> SELECT original_air_date FROM table_20704243_6 WHERE season__number = 11[/INST] What was the original air date for season 11?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_79 (australian VARCHAR, american VARCHAR) <</SYS>> SELECT australian FROM table_name_79 WHERE american = "ɑ"[/INST] What is the Australian for the American ɑ?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2668401_12 (party VARCHAR, district VARCHAR) <</SYS>> SELECT party FROM table_2668401_12 WHERE district = "Pennsylvania 8"[/INST] What are the parties listed for Pennsylvania 8?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_61 (name VARCHAR, route_of_administration VARCHAR, investigation VARCHAR) <</SYS>> SELECT name FROM table_name_61 WHERE route_of_administration = "oral or iv" AND investigation = "thyroid imaging thyroid metastases imaging"[/INST] What Name is administered by oral or iv, and is being investigated for thyroid imaging thyroid metastases imaging?</s>
<s>[INST] <<SYS>> CREATE TABLE country (country_id VARCHAR, country VARCHAR); CREATE TABLE city (country_id VARCHAR) <</SYS>> SELECT COUNT(*) FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id WHERE T2.country = 'Australia'[/INST] How many cities are in Australia?</s>
<s>[INST] <<SYS>> CREATE TABLE table_189893_1 (population__2011_ INTEGER) <</SYS>> SELECT MIN(population__2011_) FROM table_189893_1[/INST] What is the lowest population(2011)?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_43 (record VARCHAR, attendance INTEGER) <</SYS>> SELECT record FROM table_name_43 WHERE attendance > 28 OFFSET 459[/INST] Which record has an attendance larger than 28,459?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_94 (catalog VARCHAR, date VARCHAR) <</SYS>> SELECT catalog FROM table_name_94 WHERE date = "may 27, 2009"[/INST] What is the catalog of the record released on May 27, 2009?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_10 (player VARCHAR, rank VARCHAR, seasons VARCHAR) <</SYS>> SELECT player FROM table_name_10 WHERE rank = 2 AND seasons = "1982–83, 1983–84, 1984–85"[/INST] What player is ranked 2 and played in the seasons of 1982–83, 1983–84, 1984–85?</s>
<s>[INST] <<SYS>> CREATE TABLE table_21091162_1 (date VARCHAR, opponent VARCHAR) <</SYS>> SELECT COUNT(date) FROM table_21091162_1 WHERE opponent = "Boston College"[/INST] How many dates have boston college as the opponent?</s>
<s>[INST] <<SYS>> CREATE TABLE table_23018775_3 (_number_number INTEGER, team VARCHAR) <</SYS>> SELECT MIN(_number_number) FROM table_23018775_3 WHERE team = "team 3G"[/INST] What is tthe lowest number on team 3g?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2522473_1 (team VARCHAR, seasons VARCHAR) <</SYS>> SELECT COUNT(team) FROM table_2522473_1 WHERE seasons = 8[/INST] How many teams have been in Topperserien for 8 seasons? </s>
<s>[INST] <<SYS>> CREATE TABLE table_name_79 (quarterfinals VARCHAR, rank VARCHAR) <</SYS>> SELECT quarterfinals FROM table_name_79 WHERE rank = "bronze"[/INST] What's the quarterfinals when the rank was bronze?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_11 (venue VARCHAR, round VARCHAR) <</SYS>> SELECT venue FROM table_name_11 WHERE round = 20[/INST] What venue was round 20 held at?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_39 (br_no INTEGER, secr_no VARCHAR) <</SYS>> SELECT MAX(br_no) FROM table_name_39 WHERE secr_no = 765[/INST] What is the highest BR number with a SECR number of 765?</s>
<s>[INST] <<SYS>> CREATE TABLE table_1965650_4 (pick__number INTEGER, nhl_team VARCHAR) <</SYS>> SELECT MIN(pick__number) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"[/INST] What's the smallest pick number of a player playing in Minnesota North Stars?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_8 (population INTEGER, country_territory_entity VARCHAR, rank VARCHAR) <</SYS>> SELECT MAX(population) FROM table_name_8 WHERE country_territory_entity = "seychelles" AND rank < 13[/INST] Name the most population for seychelles and rank less than 13</s>
<s>[INST] <<SYS>> CREATE TABLE table_21220720_1 (position VARCHAR, name VARCHAR) <</SYS>> SELECT position FROM table_21220720_1 WHERE name = "van den Brink, Bas"[/INST] Name the position for van den brink, bas</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_60 (tournament VARCHAR) <</SYS>> SELECT 2004 FROM table_name_60 WHERE 2005 = "a" AND 2006 = "a" AND tournament = "us open"[/INST] What shows for 2004 when 2005 is A, 2006 is A, tournament is US Open?</s>
<s>[INST] <<SYS>> CREATE TABLE table_15887683_5 (n° VARCHAR, television_service VARCHAR, package_option VARCHAR, content VARCHAR) <</SYS>> SELECT n° FROM table_15887683_5 WHERE package_option = "Sky Cinema" AND content = "cinema" AND television_service = "Sky Cinema" + 24[/INST] What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_13 (class VARCHAR, year INTEGER) <</SYS>> SELECT class FROM table_name_13 WHERE year > 1986[/INST] What is the Class after 1986?</s>
<s>[INST] <<SYS>> CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, master_customer_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Parking_Fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) <</SYS>> SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id[/INST] Wat is the tax source system code and master customer id of the taxes related to each parking fine id?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_74 (to_par VARCHAR, year_s__won VARCHAR) <</SYS>> SELECT to_par FROM table_name_74 WHERE year_s__won = "1960"[/INST] What was the score to par in 1960?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_73 (score VARCHAR, home_team VARCHAR) <</SYS>> SELECT score FROM table_name_73 WHERE home_team = "wycombe wanderers"[/INST] What was the score for the game where the home team was Wycombe Wanderers?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_70 (country VARCHAR, place VARCHAR, score VARCHAR) <</SYS>> SELECT country FROM table_name_70 WHERE place = "t7" AND score = 69 - 68 - 72 = 209[/INST] What is the country with a t7 place and a 69-68-72=209 score?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_91 (nba_draft VARCHAR, school VARCHAR) <</SYS>> SELECT nba_draft FROM table_name_91 WHERE school = "st. mary's high school"[/INST] Which NBA draft has a School of st. mary's high school?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_76 (performer_4 VARCHAR, performer_1 VARCHAR, date VARCHAR) <</SYS>> SELECT performer_4 FROM table_name_76 WHERE performer_1 = "greg proops" AND date = "25 august 1995"[/INST] Performer 1 of greg proops, and a Date of 25 august 1995 is what performer 4?</s>
<s>[INST] <<SYS>> CREATE TABLE table_25711913_14 (field_goals__4_points_ VARCHAR, touchdowns__5_points_ VARCHAR) <</SYS>> SELECT field_goals__4_points_ FROM table_25711913_14 WHERE touchdowns__5_points_ = 7[/INST] How many field goals were scored by the player that got 7 touchdowns? </s>
<s>[INST] <<SYS>> CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR) <</SYS>> SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name[/INST] Select the average price of each manufacturer's products, showing the manufacturer's name.</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR) <</SYS>> SELECT time_retired FROM table_name_88 WHERE grid = 13[/INST] What is the grid 13 time score?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22879323_10 (score VARCHAR, game VARCHAR) <</SYS>> SELECT score FROM table_22879323_10 WHERE game = 80[/INST] What was the score when the game was 80?</s>
<s>[INST] <<SYS>> CREATE TABLE table_16729063_2 (date VARCHAR, game_site VARCHAR) <</SYS>> SELECT COUNT(date) FROM table_16729063_2 WHERE game_site = "Cleveland Stadium"[/INST] How many games were played at Cleveland Stadium?</s>
<s>[INST] <<SYS>> CREATE TABLE table_14418812_1 (opponent VARCHAR, week VARCHAR) <</SYS>> SELECT opponent FROM table_14418812_1 WHERE week = 12[/INST] Name the opponent for week 12</s>
<s>[INST] <<SYS>> CREATE TABLE county_public_safety (Police_force VARCHAR) <</SYS>> SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force[/INST] Please show the police forces and the number of counties with each police force.</s>
<s>[INST] <<SYS>> CREATE TABLE table_2248784_4 (rank_asia INTEGER) <</SYS>> SELECT MIN(rank_asia) FROM table_2248784_4[/INST] What is the smallest Asian rank?</s>
<s>[INST] <<SYS>> CREATE TABLE table_1990460_1 (division INTEGER) <</SYS>> SELECT MAX(division) FROM table_1990460_1[/INST] What's the highest division number through the years?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_40 (lost INTEGER, season VARCHAR, avg_attend VARCHAR) <</SYS>> SELECT MAX(lost) FROM table_name_40 WHERE season > 1979 AND avg_attend = 16 OFFSET 605[/INST] What is the maximum number of losses that the Minnesota Kicks had after 1979 with an average attendance of 16,605?</s>
<s>[INST] <<SYS>> CREATE TABLE table_28846752_4 (runs INTEGER, highest_score VARCHAR) <</SYS>> SELECT MIN(runs) FROM table_28846752_4 WHERE highest_score = "228*"[/INST] How many runs are there when the highest score is 228*?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_85 (played INTEGER, lost INTEGER) <</SYS>> SELECT MIN(played) FROM table_name_85 WHERE lost > 10[/INST] What is the lowest played with a lost bigger than 10?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_71 (conference VARCHAR, school VARCHAR) <</SYS>> SELECT conference FROM table_name_71 WHERE school = "mayville state"[/INST] What conference has mayville state as the school?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22357065_1 (league VARCHAR, nation VARCHAR) <</SYS>> SELECT league AS Cup FROM table_22357065_1 WHERE nation = "Northern Ireland"[/INST] Name the league cup for northern ireland</s>
<s>[INST] <<SYS>> CREATE TABLE college (state VARCHAR, enr INTEGER) <</SYS>> SELECT COUNT(DISTINCT state) FROM college WHERE enr < (SELECT AVG(enr) FROM college)[/INST] What is the number of states that has some colleges whose enrollment is smaller than the average enrollment?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_18 (score VARCHAR, place VARCHAR) <</SYS>> SELECT score FROM table_name_18 WHERE place = "3"[/INST] Which Score has a Place of 3?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_46 (gold VARCHAR, total INTEGER) <</SYS>> SELECT gold FROM table_name_46 WHERE total > 33[/INST] Name the gold with total larger than 33</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_54 (score_in_final VARCHAR, champion VARCHAR) <</SYS>> SELECT score_in_final FROM table_name_54 WHERE champion = "boris becker"[/INST] What score in final has boris becker as the champion?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_93 (team VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR) <</SYS>> SELECT team FROM table_name_93 WHERE class = "350cc" AND points < 13 AND year = 1959[/INST] What Team has a Class of 350cc, with less than 13 points in 1959?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_20 (attendance VARCHAR, location VARCHAR, game VARCHAR) <</SYS>> SELECT COUNT(attendance) FROM table_name_20 WHERE location = "td banknorth garden" AND game > 31[/INST] What is the total number of people in attendance when the game was at TD Banknorth Garden, in a game higher than 31?</s>
<s>[INST] <<SYS>> CREATE TABLE table_18161217_2 (estimated_end_date VARCHAR, _clarification_needed_ VARCHAR, cospar_id VARCHAR) <</SYS>> SELECT estimated_end_date[_clarification_needed_] FROM table_18161217_2 WHERE cospar_id = "2001-037A"[/INST] What is the estimated end date for the 2001-037a international designated satellite?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_30 (away_team VARCHAR, crowd INTEGER) <</SYS>> SELECT away_team FROM table_name_30 WHERE crowd > 17 OFFSET 000[/INST] Which away team has an attendance of more than 17,000?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_97 (alternate VARCHAR, second VARCHAR) <</SYS>> SELECT alternate FROM table_name_97 WHERE second = "hubert gründhammer"[/INST] What is the alternate of the nation with hubert gründhammer as the second?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_20 (place VARCHAR, score VARCHAR) <</SYS>> SELECT place FROM table_name_20 WHERE score = 68 - 67 - 73 - 68 = 276[/INST] what is the place when the score is 68-67-73-68=276?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_1 (video VARCHAR, channel VARCHAR, programming VARCHAR) <</SYS>> SELECT video FROM table_name_1 WHERE channel < 35.66 AND programming = "nhk world"[/INST] Which Video has a Channel smaller than 35.66, and a Programming of nhk world?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_17 (bats VARCHAR, uni_number VARCHAR) <</SYS>> SELECT bats FROM table_name_17 WHERE uni_number = 31[/INST] Which batter has a uni# of 31?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_96 (purpose VARCHAR, location VARCHAR, name VARCHAR) <</SYS>> SELECT purpose FROM table_name_96 WHERE location = "enewetak, runit (yvonne)" AND name = "cactus"[/INST] Which Purpose has a Location of enewetak, runit (yvonne) and the Name of cactus?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_30 (country VARCHAR, to_par VARCHAR, score VARCHAR) <</SYS>> SELECT country FROM table_name_30 WHERE to_par = "+3" AND score = 74 - 73 = 147[/INST] What is the country that the player is from with +3 to par and score of 74-73=147?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_52 (transfer_window VARCHAR, name VARCHAR) <</SYS>> SELECT transfer_window FROM table_name_52 WHERE name = "brown"[/INST] What is Brown's transfer window?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_59 (opponent VARCHAR, week VARCHAR, stadium VARCHAR) <</SYS>> SELECT opponent FROM table_name_59 WHERE week > 7 AND stadium = "schaefer stadium"[/INST] Who was the opposing team at Schaefer Stadium later in the season than week 7?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR) <</SYS>> SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11[/INST] How many laps did Chuck Stevenson have with a grid of less than 11?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22737506_1 (team_name VARCHAR, races VARCHAR) <</SYS>> SELECT team_name FROM table_22737506_1 WHERE races = "1 (5)"[/INST] When 1 (5) is the races what is the team name?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_5 (date VARCHAR, away VARCHAR) <</SYS>> SELECT date FROM table_name_5 WHERE away = "broadview hawks"[/INST] What is the Date with an Away that is broadview hawks?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_63 (turbo VARCHAR, frequency VARCHAR) <</SYS>> SELECT turbo FROM table_name_63 WHERE frequency = "2.2 ghz"[/INST] what is the turbo when the frequency is 2.2 ghz?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_69 (date VARCHAR, score1 VARCHAR, opponent VARCHAR) <</SYS>> SELECT date FROM table_name_69 WHERE score1 = "2 - 4" AND opponent = "chelsea under 18s"[/INST] On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?</s>
<s>[INST] <<SYS>> CREATE TABLE table_3005450_1 (station VARCHAR, metlink_code VARCHAR) <</SYS>> SELECT station FROM table_3005450_1 WHERE metlink_code = "MATA"[/INST] what is the name of the station where the metlink code is mata?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR) <</SYS>> SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole"[/INST] What is the highest round of Ian Cole, who played position d from the United States?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_25 (total INTEGER, finish VARCHAR) <</SYS>> SELECT MIN(total) FROM table_name_25 WHERE finish = "t41"[/INST] What is the lowest total of the player with a t41 finish?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_16 (gdp_per_capita__nominal_ VARCHAR, population VARCHAR) <</SYS>> SELECT gdp_per_capita__nominal_ FROM table_name_16 WHERE population = "5,125,693"[/INST] What is the GDP (nominal) with Population of 5,125,693?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR) <</SYS>> SELECT MIN(round) FROM table_name_18 WHERE opponent = "rolando delgado"[/INST] Name the lowest Round with Opponent of rolando delgado?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR) <</SYS>> SELECT tournament FROM table_name_59 WHERE opponent = "jung jae-sung lee yong-dae"[/INST] What tournament has an opponent jung jae-sung lee yong-dae?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2508633_11 (nfl_team VARCHAR, player VARCHAR) <</SYS>> SELECT nfl_team FROM table_2508633_11 WHERE player = "Aaron Williams"[/INST] What NFL Teams have the player Aaron Williams?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) <</SYS>> SELECT week FROM table_name_37 WHERE eastern__number2 = "houston"[/INST] Tell me the wekk for eastern #2 of houston</s>
<s>[INST] <<SYS>> CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, written_by VARCHAR) <</SYS>> SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn"[/INST] How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_35 (visitor VARCHAR, score VARCHAR) <</SYS>> SELECT visitor FROM table_name_35 WHERE score = "4 – 3"[/INST] What is the Visitor with a Score with 4 – 3?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_40 (place VARCHAR, round_1 VARCHAR, year VARCHAR) <</SYS>> SELECT COUNT(place) FROM table_name_40 WHERE round_1 = "beat lee janzen 3&2" AND year < 1998[/INST] Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place?</s>
<s>[INST] <<SYS>> CREATE TABLE table_25284864_3 (november_3 VARCHAR, january_15_16 VARCHAR) <</SYS>> SELECT november_3 FROM table_25284864_3 WHERE january_15_16 = "141"[/INST] What is the November 3 result when the result for January 15-16 is 141?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_83 (venue VARCHAR, score VARCHAR, year VARCHAR) <</SYS>> SELECT venue FROM table_name_83 WHERE score = "3 & 2" AND year = "1965"[/INST] What venue has 3 & 2 as the score, and 1965 as the year?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR) <</SYS>> SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "2"[/INST] When the quiabaya municipality is 2 what is the combaya municipality?</s>
<s>[INST] <<SYS>> CREATE TABLE table_14835674_1 (introductory_phrase VARCHAR, production_code VARCHAR) <</SYS>> SELECT introductory_phrase FROM table_14835674_1 WHERE production_code = 4005[/INST] What was the inroductory phase for the episode with production code 4005?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_33 (country VARCHAR, player VARCHAR) <</SYS>> SELECT country FROM table_name_33 WHERE player = "mark hayes"[/INST] What country does Mark Hayes play for?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_43 (date VARCHAR, loss VARCHAR) <</SYS>> SELECT date FROM table_name_43 WHERE loss = "sparks (0–1)"[/INST] What date was the loss of sparks (0–1)?</s>
<s>[INST] <<SYS>> CREATE TABLE table_261946_3 (founded INTEGER) <</SYS>> SELECT MAX(founded) FROM table_261946_3[/INST] Which founding year corresponds with the highest enrollment? </s>
<s>[INST] <<SYS>> CREATE TABLE table_12834315_8 (barrel_length VARCHAR, rear_sight VARCHAR, barrel_profile VARCHAR) <</SYS>> SELECT barrel_length FROM table_12834315_8 WHERE rear_sight = "Weaver" AND barrel_profile = "A2"[/INST] How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_72 (accreditation_type VARCHAR, accreditation_level VARCHAR, hardware_model VARCHAR) <</SYS>> SELECT accreditation_type FROM table_name_72 WHERE accreditation_level = "joyn" AND hardware_model = "nokia 700"[/INST] What is the Accreditation Type, when the Accreditation Level is Joyn, and when the Hardware Model is Nokia 700?</s>
<s>[INST] <<SYS>> CREATE TABLE Songs (Id VARCHAR) <</SYS>> SELECT COUNT(*) FROM Songs[/INST] How many songs are there?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_7 (player VARCHAR, place VARCHAR, score VARCHAR) <</SYS>> SELECT player FROM table_name_7 WHERE place = "t6" AND score = 72 - 68 - 72 = 212[/INST] Who is the player with a t6 place and a 72-68-72=212 score?</s>
<s>[INST] <<SYS>> CREATE TABLE table_17480471_3 (battle_of_the_planets VARCHAR, ova__harmony_gold_dub_ VARCHAR) <</SYS>> SELECT battle_of_the_planets FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Solaris"[/INST] Which battle of the planets where ova (harmony gold dub) is solaris?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_68 (location VARCHAR, game INTEGER) <</SYS>> SELECT location FROM table_name_68 WHERE game < 2[/INST] What is the location of the game that has a number smaller than 2?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_56 (province VARCHAR, south_asians_2001 VARCHAR, south_asians_2011 VARCHAR) <</SYS>> SELECT province FROM table_name_56 WHERE south_asians_2001 < 190 AND south_asians_2011 = 115[/INST] Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_43 (total__kg_ INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR) <</SYS>> SELECT MAX(total__kg_) FROM table_name_43 WHERE bodyweight < 136.16 AND clean_ & _jerk > 135[/INST] Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER) <</SYS>> SELECT MAX(erp_w) FROM table_name_6 WHERE frequency_mhz < 91.1[/INST] What is the ERP W number where the frequency is smaller than 91.1?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_96 (grid INTEGER, rider VARCHAR, laps VARCHAR) <</SYS>> SELECT MIN(grid) FROM table_name_96 WHERE rider = "casey stoner" AND laps < 27[/INST] What is the lowest grid with rider casey stoner and laps that are smaller than 27?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_19 (publisher VARCHAR, name VARCHAR) <</SYS>> SELECT publisher FROM table_name_19 WHERE name = "spec ops: stealth patrol"[/INST] Which publisher is responsible for spec ops: stealth patrol?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22597626_6 (surface VARCHAR, score_in_the_final VARCHAR) <</SYS>> SELECT surface FROM table_22597626_6 WHERE score_in_the_final = "6–0, 6–3"[/INST] Name the surface for 6–0, 6–3</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_31 (annual_change VARCHAR, rank VARCHAR, capacity_in_use VARCHAR) <</SYS>> SELECT annual_change FROM table_name_31 WHERE rank < 3 AND capacity_in_use = "78.4%"[/INST] In which yearly change was there a capacity of 78.4% and a rank smaller than 3?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_87 (uninterrupted_rank VARCHAR, name VARCHAR) <</SYS>> SELECT COUNT(uninterrupted_rank) FROM table_name_87 WHERE name = "john dingell"[/INST] How many uninterrupted ranks does john dingell have?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_2 (overall INTEGER, player VARCHAR, round VARCHAR) <</SYS>> SELECT SUM(overall) FROM table_name_2 WHERE player = "charles white" AND round < 1[/INST] What is the total overall in round 1, in which Charles White was a player?</s>