text_output
stringlengths
114
770
<s>[INST] <<SYS>> CREATE TABLE table_name_66 (young_rider_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR) <</SYS>> SELECT young_rider_classification FROM table_name_66 WHERE mountains_classification = "jesper worre" AND stage = "3"[/INST] What is the young rider classification for jesper worre and stage 3</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_58 (region VARCHAR, total_gdp__€_bn__ VARCHAR) <</SYS>> SELECT region FROM table_name_58 WHERE total_gdp__€_bn__ = "€11,745.353"[/INST] What is the Region that has a Total GDP (€ bn ) of €11,745.353?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR) <</SYS>> SELECT home_team AS score FROM table_name_96 WHERE venue = "junction oval"[/INST] What is the score for the home team when the venue is Junction Oval?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_33 (year INTEGER, team VARCHAR, finish VARCHAR) <</SYS>> SELECT SUM(year) FROM table_name_33 WHERE team = "johnson city yankees" AND finish = "6th"[/INST] What is the total of the year with a Team of johnson city yankees, and a Finish of 6th?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_82 (player VARCHAR, college VARCHAR) <</SYS>> SELECT player FROM table_name_82 WHERE college = "baylor"[/INST] Which players college was Baylor?</s>
<s>[INST] <<SYS>> CREATE TABLE table_15736385_1 (engine VARCHAR, team VARCHAR) <</SYS>> SELECT engine FROM table_15736385_1 WHERE team = "Galles Racing"[/INST] What engine does Galles Racing use?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_99 (having__things_ VARCHAR, interacting__settings_ VARCHAR) <</SYS>> SELECT having__things_ FROM table_name_99 WHERE interacting__settings_ = "privacy, intimate spaces of togetherness"[/INST] Name the having things for privacy, intimate spaces of togetherness</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) <</SYS>> SELECT score FROM table_name_12 WHERE date = "6 december 1986"[/INST] The game played on 6 December 1986 had what score?</s>
<s>[INST] <<SYS>> CREATE TABLE table_23285761_7 (high_assists VARCHAR, high_rebounds VARCHAR) <</SYS>> SELECT high_assists FROM table_23285761_7 WHERE high_rebounds = "Amar'e Stoudemire (10)"[/INST] Who did the high assists in the game where Amar'e Stoudemire (10) did the high rebounds?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_46 (top_10 INTEGER, wins INTEGER) <</SYS>> SELECT MAX(top_10) FROM table_name_46 WHERE wins > 0[/INST] What is the highest number of top-10s in events with more than 0 wins?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_44 (away_team VARCHAR, venue VARCHAR) <</SYS>> SELECT away_team FROM table_name_44 WHERE venue = "mcg"[/INST] What was the away team at mcg?</s>
<s>[INST] <<SYS>> CREATE TABLE table_12407546_1 (_number INTEGER, riding VARCHAR) <</SYS>> SELECT MAX(_number) FROM table_12407546_1 WHERE riding = "68.46 (1144 pts)"[/INST] What's the number of the player with 68.46 (1144 pts) in riding?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_98 (film VARCHAR, award VARCHAR) <</SYS>> SELECT film FROM table_name_98 WHERE award = "£3,740"[/INST] Name the film for award of £3,740</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_89 (air_date VARCHAR, episode_number VARCHAR, event_1 VARCHAR) <</SYS>> SELECT air_date FROM table_name_89 WHERE episode_number < 11 AND event_1 = "atlasphere"[/INST] What is the air date the had atlasphere for event 1 before episode 11?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_5 (rider VARCHAR, grid VARCHAR) <</SYS>> SELECT rider FROM table_name_5 WHERE grid = "21"[/INST] WHAT IS THE RIDER WITH A 21 GRID?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_86 (launch_site VARCHAR, satellite VARCHAR, date VARCHAR, rocket VARCHAR) <</SYS>> SELECT launch_site FROM table_name_86 WHERE date = "unknown" AND rocket = "delta iv" AND satellite = "gps iif-10"[/INST] What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite?</s>
<s>[INST] <<SYS>> CREATE TABLE table_15637071_1 (headquarters VARCHAR, icao VARCHAR) <</SYS>> SELECT headquarters FROM table_15637071_1 WHERE icao = "AAU"[/INST] Where is the headquarters of the airline which has the ICAO code of AAU?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_5 (record VARCHAR, opponent VARCHAR, loss VARCHAR) <</SYS>> SELECT record FROM table_name_5 WHERE opponent = "@ orioles" AND loss = "leal (5-4)"[/INST] What was the record where the opponent was @ Orioles and the loss was to Leal (5-4)?</s>
<s>[INST] <<SYS>> CREATE TABLE table_25711913_2 (points INTEGER, player VARCHAR) <</SYS>> SELECT MAX(points) FROM table_25711913_2 WHERE player = "Curtis"[/INST] How many maximum points did Curtis scored?</s>
<s>[INST] <<SYS>> CREATE TABLE table_10966926_2 (height VARCHAR, weight VARCHAR) <</SYS>> SELECT height FROM table_10966926_2 WHERE weight = 320[/INST] What is the height of the person that weighs 320 pounds?</s>
<s>[INST] <<SYS>> CREATE TABLE list (grade VARCHAR, classroom VARCHAR) <</SYS>> SELECT DISTINCT grade FROM list WHERE classroom = 105[/INST] Find the grade studying in room 105.</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_67 (pick__number VARCHAR, college VARCHAR) <</SYS>> SELECT COUNT(pick__number) FROM table_name_67 WHERE college = "usc"[/INST] How many picks did the College of USC wind up getting?</s>
<s>[INST] <<SYS>> CREATE TABLE table_10236830_6 (nomination VARCHAR, film_name VARCHAR) <</SYS>> SELECT nomination FROM table_10236830_6 WHERE film_name = "27 Stolen Kisses"[/INST] Which nominations was the film 27 Stolen Kisses nominated for?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_29 (year VARCHAR) <</SYS>> SELECT 2 AS nd_leg FROM table_name_29 WHERE year = 2004[/INST] What was the 2nd leg for 2004?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_61 (week VARCHAR, result VARCHAR) <</SYS>> SELECT week FROM table_name_61 WHERE result = "l 38-17"[/INST] Name the week when the result was l 38-17</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_91 (total VARCHAR, name VARCHAR, serie_a VARCHAR, coppa_italia VARCHAR, champions_league VARCHAR) <</SYS>> SELECT total FROM table_name_91 WHERE coppa_italia = 0 AND champions_league = 1 AND serie_a < 2 AND name = "mauro camoranesi"[/INST] What was the total of Mauro Camoranesi when coppa italia was 0, champions league was 1 and less than 2 serie A?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_12 (time VARCHAR, jockey VARCHAR) <</SYS>> SELECT time FROM table_name_12 WHERE jockey = "cornelio velasquez"[/INST] What is the time for when cornelio velasquez was the jockey?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_24 (enrollment INTEGER, _number___county VARCHAR) <</SYS>> SELECT AVG(enrollment) FROM table_name_24 WHERE _number___county = "41 johnson"[/INST] What's the enrollment at 41 Johnson?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2849652_1 (_number_of_divisions VARCHAR, sport VARCHAR) <</SYS>> SELECT _number_of_divisions FROM table_2849652_1 WHERE sport = "Bowling"[/INST] How many divisions in bowling ? </s>
<s>[INST] <<SYS>> CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, Number_Deaths VARCHAR) <</SYS>> SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1[/INST] Find the names of the regions which were affected by the storm that killed the greatest number of people.</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_50 (gpu_frequency VARCHAR, part_number_s_ VARCHAR) <</SYS>> SELECT gpu_frequency FROM table_name_50 WHERE part_number_s_ = "cw8064701470702"[/INST] what is the gpu frequency when the part number is cw8064701470702?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR) <</SYS>> SELECT position FROM table_name_15 WHERE player = "mikhail kravets"[/INST] What position does Mikhail Kravets play?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2108684_1 (episode VARCHAR, run_time VARCHAR) <</SYS>> SELECT episode FROM table_2108684_1 WHERE run_time = "23:38"[/INST] What episode had a run time of 23:38?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_80 (high_assists VARCHAR, high_rebounds VARCHAR) <</SYS>> SELECT high_assists FROM table_name_80 WHERE high_rebounds = "dwight howard , rashard lewis (10)"[/INST] What is High Assists, when High Rebounds is "Dwight Howard , Rashard Lewis (10)"?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR) <</SYS>> SELECT season FROM table_22962745_35 WHERE batsmen = "Herschelle Gibbs Andrew Symonds Venugopal Rao"[/INST] What season was herschelle gibbs andrew symonds venugopal rao batsmen?</s>
<s>[INST] <<SYS>> CREATE TABLE table_27713030_16 (location_attendance VARCHAR, high_assists VARCHAR) <</SYS>> SELECT location_attendance FROM table_27713030_16 WHERE high_assists = "LeBron James (10)"[/INST] What was the location and attendance when lebron james (10) had the high assists?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_33 (category VARCHAR, year INTEGER) <</SYS>> SELECT category FROM table_name_33 WHERE year > 2004[/INST] What category has a year after 2004?</s>
<s>[INST] <<SYS>> CREATE TABLE GRAPES (GRAPE VARCHAR, Color VARCHAR); CREATE TABLE WINE (Winery VARCHAR, GRAPE VARCHAR) <</SYS>> SELECT T2.Winery FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.GRAPE = T2.GRAPE WHERE T1.Color = "White" GROUP BY T2.Winery ORDER BY COUNT(*) DESC LIMIT 3[/INST] Find the top 3 wineries with the greatest number of wines made of white color grapes.</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_19 (ground VARCHAR, away_team VARCHAR) <</SYS>> SELECT ground FROM table_name_19 WHERE away_team = "essendon"[/INST] What was the ground for away team essendon?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2623498_5 (prod_code VARCHAR, episode__number VARCHAR) <</SYS>> SELECT prod_code FROM table_2623498_5 WHERE episode__number = "78"[/INST] What is the production code for episode #78?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR) <</SYS>> SELECT reporters FROM table_22514845_5 WHERE s_analyst = "Howard Cosell"[/INST] Name the reporters for howard cosell</s>
<s>[INST] <<SYS>> CREATE TABLE table_24565004_8 (nationality² VARCHAR, name VARCHAR) <</SYS>> SELECT nationality² FROM table_24565004_8 WHERE name = "Patrick Grappin"[/INST] If the name is Patrick Grappin, what is the nationality?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_17 (gamecenter VARCHAR, attendance VARCHAR) <</SYS>> SELECT gamecenter FROM table_name_17 WHERE attendance = "65,212"[/INST] Name the gamecenter that has attendance of 65,212</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_21 (ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR) <</SYS>> SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8[/INST] For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties?</s>
<s>[INST] <<SYS>> CREATE TABLE table_27374004_3 (outgoing_manager VARCHAR, replaced_by VARCHAR) <</SYS>> SELECT COUNT(outgoing_manager) FROM table_27374004_3 WHERE replaced_by = "Bob Peeters"[/INST] How many outgoing managers were replaced by Bob Peeters?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_82 (label VARCHAR, date VARCHAR, catalog VARCHAR) <</SYS>> SELECT label FROM table_name_82 WHERE date < 2008 AND catalog = "fall cd 006"[/INST] Which Label has a Date smaller than 2008, and a Catalog of fall cd 006?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_58 (round INTEGER, college VARCHAR) <</SYS>> SELECT MIN(round) FROM table_name_58 WHERE college = "southern"[/INST] What is the lowest round for Southern College?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_88 (result VARCHAR, race VARCHAR) <</SYS>> SELECT result FROM table_name_88 WHERE race = "ajc craven plate (wfa)"[/INST] What is the result of the ajc craven plate (wfa) race?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_91 (date VARCHAR, margin_of_victory VARCHAR) <</SYS>> SELECT date FROM table_name_91 WHERE margin_of_victory = "2 strokes"[/INST] What date had a margin victory of 2 strokes?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_16 (visitor VARCHAR, date VARCHAR) <</SYS>> SELECT visitor FROM table_name_16 WHERE date = "january 12"[/INST] on january 12 who was the visitor?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_22 (finish VARCHAR, franchise VARCHAR, year VARCHAR, league VARCHAR, percentage VARCHAR) <</SYS>> SELECT finish FROM table_name_22 WHERE league = "nl" AND percentage < 0.726 AND year > 1897 AND franchise = "pittsburgh pirates"[/INST] What was the Finish when NL was the League, the Percentage was under 0.726, the Year was larger than 1897, and the Franchies was the Pittsburgh Pirates?</s>
<s>[INST] <<SYS>> CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR) <</SYS>> SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code[/INST] Find names of all students who took some course and the course description.</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR) <</SYS>> SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013[/INST] Tell me the average rank for dharma productions before 2013</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR) <</SYS>> SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003"[/INST] What is Commissioned, when Laid Down is "6 September 2003"?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_89 (total VARCHAR, league INTEGER) <</SYS>> SELECT total FROM table_name_89 WHERE league < 1[/INST] what is the total when the league is less than 1?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_25 (album_title VARCHAR, original_label VARCHAR) <</SYS>> SELECT album_title FROM table_name_25 WHERE original_label = "popup"[/INST] What is the title of the album that has Popup has the original label?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_89 (sellouts INTEGER, year VARCHAR, total_for_year VARCHAR) <</SYS>> SELECT MAX(sellouts) FROM table_name_89 WHERE year = 2008 AND total_for_year < 161 OFFSET 369[/INST] What is the maximum sellouts for the 2008 year, with less than 161,369 total for year?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR) <</SYS>> SELECT venue FROM table_name_64 WHERE date = "1,2,3,4,6,7 jan 1908"[/INST] What was the venue for the dates 1,2,3,4,6,7 jan 1908?</s>
<s>[INST] <<SYS>> CREATE TABLE table_20522228_2 (share INTEGER, rank__overall_ VARCHAR) <</SYS>> SELECT MAX(share) FROM table_20522228_2 WHERE rank__overall_ = "54"[/INST] What was the share for rank 54?</s>
<s>[INST] <<SYS>> CREATE TABLE table_261946_3 (enrollment VARCHAR, location__all_in_ohio_ VARCHAR) <</SYS>> SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = "Ashland"[/INST] What is the enrollment for Ashland University?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_65 (romaji_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR) <</SYS>> SELECT romaji_title FROM table_name_65 WHERE tv_station = "fuji tv" AND average_ratings = "12.41%"[/INST] Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_7 (away_team VARCHAR) <</SYS>> SELECT away_team AS score FROM table_name_7 WHERE away_team = "geelong"[/INST] When the away team was geelong, what was the away team score?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_83 (name VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR, league_cup_goals VARCHAR) <</SYS>> SELECT name FROM table_name_83 WHERE fa_cup_goals = 0 AND league_cup_goals < 2 AND total_goals = 2[/INST] Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_95 (founded VARCHAR, suburb VARCHAR) <</SYS>> SELECT founded FROM table_name_95 WHERE suburb = "beaudesert"[/INST] What year was the Beaudesert suburb club founded</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR) <</SYS>> SELECT origin FROM table_name_37 WHERE versions = "tth"[/INST] Where is the origin of the tth version?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR) <</SYS>> SELECT report FROM table_name_32 WHERE location = "monaco"[/INST] What was the Report for the Monaco race?</s>
<s>[INST] <<SYS>> CREATE TABLE basketball_match (acc_percent VARCHAR) <</SYS>> SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1[/INST] What is the highest acc percent score in the competition?</s>
<s>[INST] <<SYS>> CREATE TABLE Highschooler (grade VARCHAR) <</SYS>> SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1[/INST] Which grade has the most high schoolers?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_37 (weight INTEGER, result VARCHAR, distance VARCHAR) <</SYS>> SELECT MAX(weight) FROM table_name_37 WHERE result = "–" AND distance = "7f"[/INST] What is the largest weight wth a Result of –, and a Distance of 7f?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_62 (game INTEGER, date VARCHAR, batting_2nd VARCHAR) <</SYS>> SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)"[/INST] what is the game for 23 april when batting 2nd is england 5/113 (19)?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR) <</SYS>> SELECT home_team FROM table_name_98 WHERE away_team = "melbourne"[/INST] Who was the home team when Melbourne was the away team?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR) <</SYS>> SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins"[/INST] How many people attended when opponent was twins?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_90 (tournament VARCHAR, score VARCHAR) <</SYS>> SELECT tournament FROM table_name_90 WHERE score = "6–3, 2–6, [10–8]"[/INST] What tournament had a Score of 6–3, 2–6, [10–8]?</s>
<s>[INST] <<SYS>> CREATE TABLE table_26202788_7 (opponent_in_the_final VARCHAR, championship VARCHAR) <</SYS>> SELECT opponent_in_the_final FROM table_26202788_7 WHERE championship = "Indian Wells, United States (2)"[/INST] In the championship Indian Wells, United States (2), who are the opponents in the final?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_78 (area VARCHAR, authority VARCHAR, roll VARCHAR) <</SYS>> SELECT area FROM table_name_78 WHERE authority = "state" AND roll < 18[/INST] Which area has state authority and a roll fewer than 18?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR) <</SYS>> SELECT home_team FROM table_name_3 WHERE away_team = "frickley athletic"[/INST] What was the home team when the away team was Frickley Athletic?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_39 (label VARCHAR, country_of_release VARCHAR) <</SYS>> SELECT label FROM table_name_39 WHERE country_of_release = "eu"[/INST] When the country of release is EU, what is the label name?</s>
<s>[INST] <<SYS>> CREATE TABLE table_10023387_1 (doubles_w_l VARCHAR, player VARCHAR) <</SYS>> SELECT doubles_w_l FROM table_10023387_1 WHERE player = "Seol Jae-Min (none)"[/INST] what's the doubles w-l for player seol jae-min (none)</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR) <</SYS>> SELECT SUM(laps) FROM table_name_74 WHERE rider = "karl muggeridge" AND grid < 16[/INST] What is the sum of laps for Karl Muggeridge on a grid less than 16?</s>
<s>[INST] <<SYS>> CREATE TABLE school (school_name VARCHAR, school_id VARCHAR); CREATE TABLE endowment (school_id VARCHAR, amount INTEGER) <</SYS>> SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING SUM(T1.amount) <= 10[/INST] List all the names of schools with an endowment amount smaller than or equal to 10.</s>
<s>[INST] <<SYS>> CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (course_id VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR) <</SYS>> SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics'[/INST] Find the name of students who took some course offered by Statistics department.</s>
<s>[INST] <<SYS>> CREATE TABLE table_26250199_1 (song_choice VARCHAR, theme VARCHAR) <</SYS>> SELECT song_choice FROM table_26250199_1 WHERE theme = "Auditioner's Choice"[/INST] The theme Auditioner's Choice has what song choice?</s>
<s>[INST] <<SYS>> CREATE TABLE table_1930857_1 (language VARCHAR, grades VARCHAR) <</SYS>> SELECT language FROM table_1930857_1 WHERE grades = "4-12"[/INST] What's the language in the school teaching grades 4-12?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_29 (partnering VARCHAR, tournament VARCHAR) <</SYS>> SELECT partnering FROM table_name_29 WHERE tournament = "lyon, france"[/INST] Who was the partner for the tournament in Lyon, France?</s>
<s>[INST] <<SYS>> CREATE TABLE table_1676073_12 (played VARCHAR, points VARCHAR) <</SYS>> SELECT played FROM table_1676073_12 WHERE points = "48"[/INST] How many games played for the team with 48 points?</s>
<s>[INST] <<SYS>> CREATE TABLE table_2140071_5 (season VARCHAR, premier_date VARCHAR) <</SYS>> SELECT COUNT(season) FROM table_2140071_5 WHERE premier_date = "January 6, 2005"[/INST] How many seasons have a premier date of January 6, 2005? </s>
<s>[INST] <<SYS>> CREATE TABLE table_name_90 (skipper VARCHAR, points VARCHAR) <</SYS>> SELECT skipper FROM table_name_90 WHERE points = "78"[/INST] Which skipper has 78 points?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_47 (opponent VARCHAR, res VARCHAR, time VARCHAR) <</SYS>> SELECT opponent FROM table_name_47 WHERE res = "win" AND time = "1:21"[/INST] Who was the opponent in the bout that led to a win in a time of 1:21?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR) <</SYS>> SELECT SUM(ave__no) FROM table_name_98 WHERE name = "albula alps" AND height__m_ > 3418[/INST] Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_22 (Id VARCHAR) <</SYS>> SELECT 1994 FROM table_name_22 WHERE 1998 = "2r"[/INST] What is the 1994 finish in the event that had a 1998 finish of 2R?</s>
<s>[INST] <<SYS>> CREATE TABLE table_22871239_5 (score VARCHAR, team VARCHAR) <</SYS>> SELECT score FROM table_22871239_5 WHERE team = "@ New Jersey"[/INST] What was the score when the team was @ New Jersey? </s>
<s>[INST] <<SYS>> CREATE TABLE table_2818164_5 (no_in_season VARCHAR, original_air_date VARCHAR) <</SYS>> SELECT no_in_season FROM table_2818164_5 WHERE original_air_date = "February 11, 1988"[/INST] What episoe number in the season originally aired on February 11, 1988?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_74 (iheartradio VARCHAR, show VARCHAR) <</SYS>> SELECT iheartradio FROM table_name_74 WHERE show = "bronson and christine"[/INST] What is the iHeartRadio of the Bronson and Christine Show?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_17 (episode_number VARCHAR, podcast_date VARCHAR) <</SYS>> SELECT episode_number FROM table_name_17 WHERE podcast_date = "august 8, 2005"[/INST] What is the episode number of the episode that aired on August 8, 2005?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_71 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) <</SYS>> SELECT MIN(rank) FROM table_name_71 WHERE silver > 5 AND total = 29 AND bronze < 16[/INST] What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_44 (score VARCHAR, competition VARCHAR, date VARCHAR) <</SYS>> SELECT score FROM table_name_44 WHERE competition = "west asian games 2005" AND date = "10 dec 2005"[/INST] What is the Score of West Asian Games 2005 on 10 dec 2005?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_27 (born VARCHAR, age_at_first_step VARCHAR) <</SYS>> SELECT born FROM table_name_27 WHERE age_at_first_step = "38y 9m 7d"[/INST] The Apollo astronaut who was 38y 9m 7d when first stepping on the moon is who?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_22 (grid INTEGER, rider VARCHAR) <</SYS>> SELECT MIN(grid) FROM table_name_22 WHERE rider = "ruben xaus"[/INST] What is the Grid for Rider Ruben Xaus?</s>
<s>[INST] <<SYS>> CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) <</SYS>> SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1[/INST] What is the department name of the students with lowest gpa belongs to?</s>
<s>[INST] <<SYS>> CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR) <</SYS>> SELECT surface FROM table_name_46 WHERE tournament = "volos"[/INST] What is the surface for the Volos tournament?</s>