context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_24399615_3 (viewers VARCHAR, airdate VARCHAR) | SELECT COUNT(viewers) FROM table_24399615_3 WHERE airdate = "26 November 2009" | How many entries are shown for viewers when the airdate was 26 november 2009? | <s>[INST]How many entries are shown for viewers when the airdate was 26 november 2009? Context: CREATE TABLE table_24399615_3 (viewers VARCHAR, airdate VARCHAR)[/INST]SELECT COUNT(viewers) FROM table_24399615_3 WHERE airdate = "26 November 2009"</s> |
CREATE TABLE table_name_50 (population INTEGER, rank VARCHAR, median_house__hold_income VARCHAR) | SELECT SUM(population) FROM table_name_50 WHERE rank > 51 AND median_house__hold_income = "$25,250" | What is the population where the rank is higher than 51 and the Median House-hold income is $25,250? | <s>[INST]What is the population where the rank is higher than 51 and the Median House-hold income is $25,250? Context: CREATE TABLE table_name_50 (population INTEGER, rank VARCHAR, median_house__hold_income VARCHAR)[/INST]SELECT SUM(population) FROM table_name_50 WHERE rank > 51 AND median_house__hold_income = "$25,250"</s> |
CREATE TABLE table_name_69 (Id VARCHAR) | SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094 | What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011? | <s>[INST]What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011? Context: CREATE TABLE table_name_69 (Id VARCHAR)[/INST]SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094</s> |
CREATE TABLE table_1341423_9 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 12" | Who's the incumbent of Florida 12 district? | <s>[INST]Who's the incumbent of Florida 12 district? Context: CREATE TABLE table_1341423_9 (incumbent VARCHAR, district VARCHAR)[/INST]SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 12"</s> |
CREATE TABLE table_name_33 (party VARCHAR, district VARCHAR) | SELECT party FROM table_name_33 WHERE district = "tennessee 8" | What is Party, when District is "Tennessee 8"? | <s>[INST]What is Party, when District is "Tennessee 8"? Context: CREATE TABLE table_name_33 (party VARCHAR, district VARCHAR)[/INST]SELECT party FROM table_name_33 WHERE district = "tennessee 8"</s> |
CREATE TABLE table_name_82 (country VARCHAR, city VARCHAR) | SELECT country FROM table_name_82 WHERE city = "zamboanga" | What is Country, when City is "Zamboanga"? | <s>[INST]What is Country, when City is "Zamboanga"? Context: CREATE TABLE table_name_82 (country VARCHAR, city VARCHAR)[/INST]SELECT country FROM table_name_82 WHERE city = "zamboanga"</s> |
CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR) | SELECT result FROM table_name_51 WHERE box_scores = "box" AND date = "september 25" | What was the result of the game on September 25 with a box score of box? | <s>[INST]What was the result of the game on September 25 with a box score of box? Context: CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR)[/INST]SELECT result FROM table_name_51 WHERE box_scores = "box" AND date = "september 25"</s> |
CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR) | SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = "2007" AND assists > 40 | When there are more than 126 errors, more than 551 kills, and more than 40 assists for the 2007 season, what is the total of Solo Blocks? | <s>[INST]When there are more than 126 errors, more than 551 kills, and more than 40 assists for the 2007 season, what is the total of Solo Blocks? Context: CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR)[/INST]SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = "2007" AND assists > 40</s> |
CREATE TABLE table_22801331_1 (opponents INTEGER, cowboys_points VARCHAR) | SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36 | What is the fewest points opponents have scored when the Cowboys score 36? | <s>[INST]What is the fewest points opponents have scored when the Cowboys score 36? Context: CREATE TABLE table_22801331_1 (opponents INTEGER, cowboys_points VARCHAR)[/INST]SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36</s> |
CREATE TABLE table_name_5 (population__1_july_2005_est_ INTEGER, population_density__per_km²_ VARCHAR) | SELECT MIN(population__1_july_2005_est_) FROM table_name_5 WHERE population_density__per_km²_ = 0 | What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0? | <s>[INST]What is the lowest Population (1 July 2005 est.), when Population density (per km²) is 0? Context: CREATE TABLE table_name_5 (population__1_july_2005_est_ INTEGER, population_density__per_km²_ VARCHAR)[/INST]SELECT MIN(population__1_july_2005_est_) FROM table_name_5 WHERE population_density__per_km²_ = 0</s> |
CREATE TABLE table_name_6 (year_s__won VARCHAR, finish VARCHAR) | SELECT year_s__won FROM table_name_6 WHERE finish = "t27" | What year has a winning finish of T27? | <s>[INST]What year has a winning finish of T27? Context: CREATE TABLE table_name_6 (year_s__won VARCHAR, finish VARCHAR)[/INST]SELECT year_s__won FROM table_name_6 WHERE finish = "t27"</s> |
CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_72 WHERE time_retired = "retirement" AND laps > 17 | WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17? | <s>[INST]WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17? Context: CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)[/INST]SELECT MIN(grid) FROM table_name_72 WHERE time_retired = "retirement" AND laps > 17</s> |
CREATE TABLE table_18710512_3 (date VARCHAR, single VARCHAR) | SELECT date FROM table_18710512_3 WHERE single = "Moped Girls" | What year was "moped girls" released? | <s>[INST]What year was "moped girls" released? Context: CREATE TABLE table_18710512_3 (date VARCHAR, single VARCHAR)[/INST]SELECT date FROM table_18710512_3 WHERE single = "Moped Girls"</s> |
CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR) | SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park" | What city was the circuit of mallala motor sport park? | <s>[INST]What city was the circuit of mallala motor sport park? Context: CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR)[/INST]SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park"</s> |
CREATE TABLE Apartment_Bookings (Id VARCHAR) | SELECT COUNT(*) FROM Apartment_Bookings | How many apartment bookings are there in total? | <s>[INST]How many apartment bookings are there in total? Context: CREATE TABLE Apartment_Bookings (Id VARCHAR)[/INST]SELECT COUNT(*) FROM Apartment_Bookings</s> |
CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_12 WHERE result = "1-1" | What was the attendance when the result was 1-1? | <s>[INST]What was the attendance when the result was 1-1? Context: CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR)[/INST]SELECT attendance FROM table_name_12 WHERE result = "1-1"</s> |
CREATE TABLE table_25655781_17 (mountains_classification VARCHAR, winner VARCHAR) | SELECT mountains_classification FROM table_25655781_17 WHERE winner = "Borut Božič" | Who had the mountains classification when borut božič was the winner? | <s>[INST]Who had the mountains classification when borut božič was the winner? Context: CREATE TABLE table_25655781_17 (mountains_classification VARCHAR, winner VARCHAR)[/INST]SELECT mountains_classification FROM table_25655781_17 WHERE winner = "Borut Božič"</s> |
CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR) | SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack" | In how many episodes were Vanessa Feltz and Lee Mack the team for Sean? | <s>[INST]In how many episodes were Vanessa Feltz and Lee Mack the team for Sean? Context: CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)[/INST]SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack"</s> |
CREATE TABLE table_name_54 (wins INTEGER, team VARCHAR, points VARCHAR) | SELECT AVG(wins) FROM table_name_54 WHERE team = "nsu" AND points > 2 | How many wins for team nsu and over 2 points? | <s>[INST]How many wins for team nsu and over 2 points? Context: CREATE TABLE table_name_54 (wins INTEGER, team VARCHAR, points VARCHAR)[/INST]SELECT AVG(wins) FROM table_name_54 WHERE team = "nsu" AND points > 2</s> |
CREATE TABLE table_1341423_49 (candidates VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341423_49 WHERE first_elected = 1998 AND incumbent = "Paul Ryan" | Who were the candidates in the district first elected in 1998 whose incumbent ended up being Paul Ryan? | <s>[INST]Who were the candidates in the district first elected in 1998 whose incumbent ended up being Paul Ryan? Context: CREATE TABLE table_1341423_49 (candidates VARCHAR, first_elected VARCHAR, incumbent VARCHAR)[/INST]SELECT candidates FROM table_1341423_49 WHERE first_elected = 1998 AND incumbent = "Paul Ryan"</s> |
CREATE TABLE table_name_27 (tyre VARCHAR, entrant VARCHAR) | SELECT tyre FROM table_name_27 WHERE entrant = "ecurie nationale suisse" | What tyre was used for an entrant of Ecurie Nationale Suisse? | <s>[INST]What tyre was used for an entrant of Ecurie Nationale Suisse? Context: CREATE TABLE table_name_27 (tyre VARCHAR, entrant VARCHAR)[/INST]SELECT tyre FROM table_name_27 WHERE entrant = "ecurie nationale suisse"</s> |
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_16 WHERE date = "april 24" | What is Record, when Date is "April 24"? | <s>[INST]What is Record, when Date is "April 24"? Context: CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_16 WHERE date = "april 24"</s> |
CREATE TABLE table_name_7 (position VARCHAR, school_country VARCHAR) | SELECT position FROM table_name_7 WHERE school_country = "temple" | What is the position of the player from Temple? | <s>[INST]What is the position of the player from Temple? Context: CREATE TABLE table_name_7 (position VARCHAR, school_country VARCHAR)[/INST]SELECT position FROM table_name_7 WHERE school_country = "temple"</s> |
CREATE TABLE table_29127804_3 (surface VARCHAR, location VARCHAR) | SELECT surface FROM table_29127804_3 WHERE location = "Dehradun , Uttarakhand, India" | what is the material of the surface in the dehradun , uttarakhand, india location | <s>[INST]what is the material of the surface in the dehradun , uttarakhand, india location Context: CREATE TABLE table_29127804_3 (surface VARCHAR, location VARCHAR)[/INST]SELECT surface FROM table_29127804_3 WHERE location = "Dehradun , Uttarakhand, India"</s> |
CREATE TABLE table_24747844_2 (cuts_made INTEGER, player VARCHAR) | SELECT MIN(cuts_made) FROM table_24747844_2 WHERE player = "Hunter Mahan" | What is the minimum number of cuts made for Hunter Mahan? | <s>[INST]What is the minimum number of cuts made for Hunter Mahan? Context: CREATE TABLE table_24747844_2 (cuts_made INTEGER, player VARCHAR)[/INST]SELECT MIN(cuts_made) FROM table_24747844_2 WHERE player = "Hunter Mahan"</s> |
CREATE TABLE table_16886076_1 (nickerie VARCHAR, marowijne VARCHAR) | SELECT COUNT(nickerie) FROM table_16886076_1 WHERE marowijne = "4.7%" | Name the nickerie for marowijne being 4.7% | <s>[INST]Name the nickerie for marowijne being 4.7% Context: CREATE TABLE table_16886076_1 (nickerie VARCHAR, marowijne VARCHAR)[/INST]SELECT COUNT(nickerie) FROM table_16886076_1 WHERE marowijne = "4.7%"</s> |
CREATE TABLE table_name_34 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_34 WHERE home_team = "collingwood" | What was the venue when Collingwood was the home team? | <s>[INST]What was the venue when Collingwood was the home team? Context: CREATE TABLE table_name_34 (venue VARCHAR, home_team VARCHAR)[/INST]SELECT venue FROM table_name_34 WHERE home_team = "collingwood"</s> |
CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR) | SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40" | What is the average quantity for coaches manufactured in 1921/23, and had 40 seats? | <s>[INST]What is the average quantity for coaches manufactured in 1921/23, and had 40 seats? Context: CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR)[/INST]SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40"</s> |
CREATE TABLE table_13399573_3 (tries_against VARCHAR, won VARCHAR) | SELECT tries_against FROM table_13399573_3 WHERE won = "14" | How many tries were against when the number won was 14? | <s>[INST]How many tries were against when the number won was 14? Context: CREATE TABLE table_13399573_3 (tries_against VARCHAR, won VARCHAR)[/INST]SELECT tries_against FROM table_13399573_3 WHERE won = "14"</s> |
CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT record FROM table_name_79 WHERE opponent = "pittsburgh pirates" AND date = "may 5" | Which Record has an Opponent of pittsburgh pirates, and a Date of may 5? | <s>[INST]Which Record has an Opponent of pittsburgh pirates, and a Date of may 5? Context: CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_79 WHERE opponent = "pittsburgh pirates" AND date = "may 5"</s> |
CREATE TABLE table_name_4 (line_name VARCHAR, terminus VARCHAR) | SELECT line_name FROM table_name_4 WHERE terminus = "newmarket junction" | What line has Newmarket Junction terminus? | <s>[INST]What line has Newmarket Junction terminus? Context: CREATE TABLE table_name_4 (line_name VARCHAR, terminus VARCHAR)[/INST]SELECT line_name FROM table_name_4 WHERE terminus = "newmarket junction"</s> |
CREATE TABLE WINE (Winery VARCHAR) | SELECT Winery FROM WINE GROUP BY Winery HAVING COUNT(*) >= 4 | Find the wineries that have at least four wines. | <s>[INST]Find the wineries that have at least four wines. Context: CREATE TABLE WINE (Winery VARCHAR)[/INST]SELECT Winery FROM WINE GROUP BY Winery HAVING COUNT(*) >= 4</s> |
CREATE TABLE table_name_17 (season VARCHAR, races VARCHAR, points VARCHAR, percentage_of_possible_points VARCHAR) | SELECT season FROM table_name_17 WHERE points < 321 AND percentage_of_possible_points > 65.78 AND races = 16 | Which season with 16 races had less than 321 points and a larger percent than 65.78 possible? | <s>[INST]Which season with 16 races had less than 321 points and a larger percent than 65.78 possible? Context: CREATE TABLE table_name_17 (season VARCHAR, races VARCHAR, points VARCHAR, percentage_of_possible_points VARCHAR)[/INST]SELECT season FROM table_name_17 WHERE points < 321 AND percentage_of_possible_points > 65.78 AND races = 16</s> |
CREATE TABLE table_20785990_2 (position VARCHAR, home_town VARCHAR) | SELECT position FROM table_20785990_2 WHERE home_town = "Chapel Hill, NC" | What position is the player from Chapel Hill, NC? | <s>[INST]What position is the player from Chapel Hill, NC? Context: CREATE TABLE table_20785990_2 (position VARCHAR, home_town VARCHAR)[/INST]SELECT position FROM table_20785990_2 WHERE home_town = "Chapel Hill, NC"</s> |
CREATE TABLE table_name_28 (Callback VARCHAR, date VARCHAR) | SELECT Callback AS date FROM table_name_28 WHERE date = "july 29, 2008" | What was the callback date for the auditions held on July 29, 2008? | <s>[INST]What was the callback date for the auditions held on July 29, 2008? Context: CREATE TABLE table_name_28 (Callback VARCHAR, date VARCHAR)[/INST]SELECT Callback AS date FROM table_name_28 WHERE date = "july 29, 2008"</s> |
CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_79 WHERE away_team = "essendon" | What was the crowd size when Essendon was the away team? | <s>[INST]What was the crowd size when Essendon was the away team? Context: CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR)[/INST]SELECT COUNT(crowd) FROM table_name_79 WHERE away_team = "essendon"</s> |
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) | 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 | Find names of all students who took some course and the course description. | <s>[INST]Find names of all students who took some course and the course description. Context: 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)[/INST]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</s> |
CREATE TABLE table_28298589_4 (site VARCHAR, home_team VARCHAR) | SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh" | In what facility was Pittsburgh's home game played? | <s>[INST]In what facility was Pittsburgh's home game played? Context: CREATE TABLE table_28298589_4 (site VARCHAR, home_team VARCHAR)[/INST]SELECT site FROM table_28298589_4 WHERE home_team = "Pittsburgh"</s> |
CREATE TABLE table_27713030_11 (record VARCHAR, location_attendance VARCHAR) | SELECT record FROM table_27713030_11 WHERE location_attendance = "American Airlines Arena 19,825" | What was the record for the location and attendance of american airlines arena 19,825? | <s>[INST]What was the record for the location and attendance of american airlines arena 19,825? Context: CREATE TABLE table_27713030_11 (record VARCHAR, location_attendance VARCHAR)[/INST]SELECT record FROM table_27713030_11 WHERE location_attendance = "American Airlines Arena 19,825"</s> |
CREATE TABLE table_name_84 (money___ INTEGER, player VARCHAR, score VARCHAR) | SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = "loren roberts" | Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts? | <s>[INST]Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts? Context: CREATE TABLE table_name_84 (money___ INTEGER, player VARCHAR, score VARCHAR)[/INST]SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = "loren roberts"</s> |
CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR) | SELECT title FROM table_name_39 WHERE first_issue = "august 2010" | What is the title that was first published in August 2010? | <s>[INST]What is the title that was first published in August 2010? Context: CREATE TABLE table_name_39 (title VARCHAR, first_issue VARCHAR)[/INST]SELECT title FROM table_name_39 WHERE first_issue = "august 2010"</s> |
CREATE TABLE table_name_44 (area VARCHAR, decile VARCHAR) | SELECT area FROM table_name_44 WHERE decile = 10 | In what area is the decile value 10? | <s>[INST]In what area is the decile value 10? Context: CREATE TABLE table_name_44 (area VARCHAR, decile VARCHAR)[/INST]SELECT area FROM table_name_44 WHERE decile = 10</s> |
CREATE TABLE customers (Id VARCHAR) | SELECT COUNT(*) FROM customers | Find the number of customers in total. | <s>[INST]Find the number of customers in total. Context: CREATE TABLE customers (Id VARCHAR)[/INST]SELECT COUNT(*) FROM customers</s> |
CREATE TABLE table_14562722_1 (directed_by VARCHAR, written_by VARCHAR) | SELECT directed_by FROM table_14562722_1 WHERE written_by = "Aaron Ehasz & John O'Bryan" | Who directed all the episodes that were written by aaron ehasz & john o'bryan? | <s>[INST]Who directed all the episodes that were written by aaron ehasz & john o'bryan? Context: CREATE TABLE table_14562722_1 (directed_by VARCHAR, written_by VARCHAR)[/INST]SELECT directed_by FROM table_14562722_1 WHERE written_by = "Aaron Ehasz & John O'Bryan"</s> |
CREATE TABLE table_name_58 (date VARCHAR, visiting_team VARCHAR, year VARCHAR) | SELECT date FROM table_name_58 WHERE visiting_team = "los angeles rams" AND year < 1958 | What date was the visiting team of Los Angeles Rams, earlier than 1958? | <s>[INST]What date was the visiting team of Los Angeles Rams, earlier than 1958? Context: CREATE TABLE table_name_58 (date VARCHAR, visiting_team VARCHAR, year VARCHAR)[/INST]SELECT date FROM table_name_58 WHERE visiting_team = "los angeles rams" AND year < 1958</s> |
CREATE TABLE table_name_43 (bronze INTEGER, points VARCHAR, gold VARCHAR) | SELECT AVG(bronze) FROM table_name_43 WHERE points < 5 AND gold < 0 | For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals? | <s>[INST]For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals? Context: CREATE TABLE table_name_43 (bronze INTEGER, points VARCHAR, gold VARCHAR)[/INST]SELECT AVG(bronze) FROM table_name_43 WHERE points < 5 AND gold < 0</s> |
CREATE TABLE table_name_8 (launches_to_date VARCHAR, version VARCHAR, ccbs VARCHAR) | SELECT COUNT(launches_to_date) FROM table_name_8 WHERE version = "541" AND ccbs < 1 | What is the total Launches to date with a Version of 541, and CCBs smaller than 1? | <s>[INST]What is the total Launches to date with a Version of 541, and CCBs smaller than 1? Context: CREATE TABLE table_name_8 (launches_to_date VARCHAR, version VARCHAR, ccbs VARCHAR)[/INST]SELECT COUNT(launches_to_date) FROM table_name_8 WHERE version = "541" AND ccbs < 1</s> |
CREATE TABLE table_name_83 (date VARCHAR, tournament VARCHAR) | SELECT date FROM table_name_83 WHERE tournament = "greenbrier classic" | What is Date, when Tournament, is Greenbrier Classic? | <s>[INST]What is Date, when Tournament, is Greenbrier Classic? Context: CREATE TABLE table_name_83 (date VARCHAR, tournament VARCHAR)[/INST]SELECT date FROM table_name_83 WHERE tournament = "greenbrier classic"</s> |
CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR) | SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines" | When winter pines is the fcsl team how many mlb teams are there? | <s>[INST]When winter pines is the fcsl team how many mlb teams are there? Context: CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR)[/INST]SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines"</s> |
CREATE TABLE table_name_84 (record VARCHAR, week VARCHAR) | SELECT record FROM table_name_84 WHERE week = 10 | What was the record for the Chargers on Week 10? | <s>[INST]What was the record for the Chargers on Week 10? Context: CREATE TABLE table_name_84 (record VARCHAR, week VARCHAR)[/INST]SELECT record FROM table_name_84 WHERE week = 10</s> |
CREATE TABLE table_name_78 (title VARCHAR, series__number VARCHAR, production_code VARCHAR) | SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706 | Tell me the title for the production code less than 706 with series number more than 175 | <s>[INST]Tell me the title for the production code less than 706 with series number more than 175 Context: CREATE TABLE table_name_78 (title VARCHAR, series__number VARCHAR, production_code VARCHAR)[/INST]SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706</s> |
CREATE TABLE table_name_96 (lifespan VARCHAR, party VARCHAR, state VARCHAR, representative VARCHAR) | SELECT lifespan FROM table_name_96 WHERE state = "ohio" AND representative = "joseph vance" AND party = "democratic-republican" | What is the lifespan of Joseph Vance, a democratic-republican from Ohio? | <s>[INST]What is the lifespan of Joseph Vance, a democratic-republican from Ohio? Context: CREATE TABLE table_name_96 (lifespan VARCHAR, party VARCHAR, state VARCHAR, representative VARCHAR)[/INST]SELECT lifespan FROM table_name_96 WHERE state = "ohio" AND representative = "joseph vance" AND party = "democratic-republican"</s> |
CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR) | SELECT valvetrain FROM table_name_12 WHERE model = "diesel engines" | What is the Valvetrain of the Diesel Engines Model? | <s>[INST]What is the Valvetrain of the Diesel Engines Model? Context: CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR)[/INST]SELECT valvetrain FROM table_name_12 WHERE model = "diesel engines"</s> |
CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR) | SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school" | What is the roll number of Poroti school, which has a 6 decile? | <s>[INST]What is the roll number of Poroti school, which has a 6 decile? Context: CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR)[/INST]SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school"</s> |
CREATE TABLE table_13657883_2 (gtu_winning_team VARCHAR, gto_winning_team VARCHAR) | SELECT gtu_winning_team FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing" | What was the gtu winning team when the gto winning team was #48 greenwood racing? | <s>[INST]What was the gtu winning team when the gto winning team was #48 greenwood racing? Context: CREATE TABLE table_13657883_2 (gtu_winning_team VARCHAR, gto_winning_team VARCHAR)[/INST]SELECT gtu_winning_team FROM table_13657883_2 WHERE gto_winning_team = "#48 Greenwood Racing"</s> |
CREATE TABLE table_name_85 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city" | What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"? | <s>[INST]What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"? Context: CREATE TABLE table_name_85 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)[/INST]SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city"</s> |
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR) | SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420" | What is the poverty rate in the county that has a market income per capita of $16,420? | <s>[INST]What is the poverty rate in the county that has a market income per capita of $16,420? Context: CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)[/INST]SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420"</s> |
CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) | SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS" | List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. | <s>[INST]List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. Context: CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)[/INST]SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"</s> |
CREATE TABLE table_2866509_1 (no VARCHAR, us_viewers__million_ VARCHAR) | SELECT no FROM table_2866509_1 WHERE us_viewers__million_ = "5.60" | what is the number of the episode in the season that had 5.60 millions of north american spectors? | <s>[INST]what is the number of the episode in the season that had 5.60 millions of north american spectors? Context: CREATE TABLE table_2866509_1 (no VARCHAR, us_viewers__million_ VARCHAR)[/INST]SELECT no FROM table_2866509_1 WHERE us_viewers__million_ = "5.60"</s> |
CREATE TABLE table_name_31 (points_classification VARCHAR, stage VARCHAR) | SELECT points_classification FROM table_name_31 WHERE stage = "16" | Name the points classification of stage 16 | <s>[INST]Name the points classification of stage 16 Context: CREATE TABLE table_name_31 (points_classification VARCHAR, stage VARCHAR)[/INST]SELECT points_classification FROM table_name_31 WHERE stage = "16"</s> |
CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR) | SELECT origin FROM table_name_37 WHERE versions = "tth" | Where is the origin of the tth version? | <s>[INST]Where is the origin of the tth version? Context: CREATE TABLE table_name_37 (origin VARCHAR, versions VARCHAR)[/INST]SELECT origin FROM table_name_37 WHERE versions = "tth"</s> |
CREATE TABLE table_name_72 (country VARCHAR, iata VARCHAR) | SELECT country FROM table_name_72 WHERE iata = "ika" | Which country's IATA is ika? | <s>[INST]Which country's IATA is ika? Context: CREATE TABLE table_name_72 (country VARCHAR, iata VARCHAR)[/INST]SELECT country FROM table_name_72 WHERE iata = "ika"</s> |
CREATE TABLE table_name_35 (international_mail INTEGER, change VARCHAR, year VARCHAR) | SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008 | How much international mail has a change of +35,7% later than 2008? | <s>[INST]How much international mail has a change of +35,7% later than 2008? Context: CREATE TABLE table_name_35 (international_mail INTEGER, change VARCHAR, year VARCHAR)[/INST]SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008</s> |
CREATE TABLE table_name_20 (attendance VARCHAR, score VARCHAR) | SELECT attendance FROM table_name_20 WHERE score = "88-98" | What was the attendance when the score was 88-98? | <s>[INST]What was the attendance when the score was 88-98? Context: CREATE TABLE table_name_20 (attendance VARCHAR, score VARCHAR)[/INST]SELECT attendance FROM table_name_20 WHERE score = "88-98"</s> |
CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Region VARCHAR, Code VARCHAR) | SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" OR T2.Language = "Dutch" | What are the regions that use English or Dutch? | <s>[INST]What are the regions that use English or Dutch? Context: CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Region VARCHAR, Code VARCHAR)[/INST]SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" OR T2.Language = "Dutch"</s> |
CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR) | SELECT position FROM table_name_51 WHERE college = "saskatchewan" | What position did the Saskatchewan player get drafted as? | <s>[INST]What position did the Saskatchewan player get drafted as? Context: CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR)[/INST]SELECT position FROM table_name_51 WHERE college = "saskatchewan"</s> |
CREATE TABLE table_name_61 (location VARCHAR, leagues VARCHAR) | SELECT location FROM table_name_61 WHERE leagues = "a1 women's - handball" | What is the location of a1 women's - handball? | <s>[INST]What is the location of a1 women's - handball? Context: CREATE TABLE table_name_61 (location VARCHAR, leagues VARCHAR)[/INST]SELECT location FROM table_name_61 WHERE leagues = "a1 women's - handball"</s> |
CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR, position VARCHAR) | SELECT COUNT(player) FROM table_2508633_9 WHERE nfl_team = "New England Patriots" AND position = "Running back" | How many players were the running back draft pick for the New England Patriots? | <s>[INST]How many players were the running back draft pick for the New England Patriots? Context: CREATE TABLE table_2508633_9 (player VARCHAR, nfl_team VARCHAR, position VARCHAR)[/INST]SELECT COUNT(player) FROM table_2508633_9 WHERE nfl_team = "New England Patriots" AND position = "Running back"</s> |
CREATE TABLE table_name_97 (location VARCHAR, pitch VARCHAR) | SELECT location FROM table_name_97 WHERE pitch = "old bedians" | What is the Location of the Old Bedians Pitch? | <s>[INST]What is the Location of the Old Bedians Pitch? Context: CREATE TABLE table_name_97 (location VARCHAR, pitch VARCHAR)[/INST]SELECT location FROM table_name_97 WHERE pitch = "old bedians"</s> |
CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR) | SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 1 | Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1? | <s>[INST]Which Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1? Context: CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR)[/INST]SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 1</s> |
CREATE TABLE table_name_51 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_51 WHERE away_team = "sheffield wednesday" | On what date was the away team Sheffield Wednesday? | <s>[INST]On what date was the away team Sheffield Wednesday? Context: CREATE TABLE table_name_51 (date VARCHAR, away_team VARCHAR)[/INST]SELECT date FROM table_name_51 WHERE away_team = "sheffield wednesday"</s> |
CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR) | SELECT location_attendance FROM table_name_13 WHERE date = "may 22" | What was the location and attendance on the May 22 game? | <s>[INST]What was the location and attendance on the May 22 game? Context: CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR)[/INST]SELECT location_attendance FROM table_name_13 WHERE date = "may 22"</s> |
CREATE TABLE table_name_63 (wrestler VARCHAR, elimination VARCHAR) | SELECT wrestler FROM table_name_63 WHERE elimination = "5" | Which Wrestler has an Elimination of 5? | <s>[INST]Which Wrestler has an Elimination of 5? Context: CREATE TABLE table_name_63 (wrestler VARCHAR, elimination VARCHAR)[/INST]SELECT wrestler FROM table_name_63 WHERE elimination = "5"</s> |
CREATE TABLE table_name_51 (score__l__ VARCHAR, _score_in_legs VARCHAR, __s__ VARCHAR, _score_in_sets VARCHAR, year INTEGER) | SELECT score__l__ = _score_in_legs, __s__ = _score_in_sets FROM table_name_51 WHERE year < 2012 | Tell me the score for score in legs and year less than 2012 | <s>[INST]Tell me the score for score in legs and year less than 2012 Context: CREATE TABLE table_name_51 (score__l__ VARCHAR, _score_in_legs VARCHAR, __s__ VARCHAR, _score_in_sets VARCHAR, year INTEGER)[/INST]SELECT score__l__ = _score_in_legs, __s__ = _score_in_sets FROM table_name_51 WHERE year < 2012</s> |
CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR) | SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider" | Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider? | <s>[INST]Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider? Context: CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR)[/INST]SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider"</s> |
CREATE TABLE table_15624586_2 (indigenous_mining_production_2006 VARCHAR, _percentage_of_world_demand VARCHAR) | SELECT indigenous_mining_production_2006 FROM table_15624586_2 WHERE _percentage_of_world_demand = "24.0%" | Which country mines 24.0% of the world demand of uranium? | <s>[INST]Which country mines 24.0% of the world demand of uranium? Context: CREATE TABLE table_15624586_2 (indigenous_mining_production_2006 VARCHAR, _percentage_of_world_demand VARCHAR)[/INST]SELECT indigenous_mining_production_2006 FROM table_15624586_2 WHERE _percentage_of_world_demand = "24.0%"</s> |
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR) | SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1 | What is the customer id, first and last name with least number of accounts. | <s>[INST]What is the customer id, first and last name with least number of accounts. Context: CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)[/INST]SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1</s> |
CREATE TABLE table_name_46 (tournament VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR) | SELECT tournament FROM table_name_46 WHERE black = "kramnik" AND result = "½–½" AND moves = 40 | What is Tournament, when Black is "Kramnik", when Result is "½–½", and when Moves is "40"? | <s>[INST]What is Tournament, when Black is "Kramnik", when Result is "½–½", and when Moves is "40"? Context: CREATE TABLE table_name_46 (tournament VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)[/INST]SELECT tournament FROM table_name_46 WHERE black = "kramnik" AND result = "½–½" AND moves = 40</s> |
CREATE TABLE table_14638077_2 (circuit VARCHAR, rnd VARCHAR) | SELECT circuit FROM table_14638077_2 WHERE rnd = 5 | what's the circuit with rnd being 5 | <s>[INST]what's the circuit with rnd being 5 Context: CREATE TABLE table_14638077_2 (circuit VARCHAR, rnd VARCHAR)[/INST]SELECT circuit FROM table_14638077_2 WHERE rnd = 5</s> |
CREATE TABLE table_25391981_20 (episode VARCHAR, rating VARCHAR) | SELECT episode FROM table_25391981_20 WHERE rating / SHARE(18 AS –49) = 2.8 / 8 | For what episode was the rating/share for 18-49 at 2.8/8 | <s>[INST]For what episode was the rating/share for 18-49 at 2.8/8 Context: CREATE TABLE table_25391981_20 (episode VARCHAR, rating VARCHAR)[/INST]SELECT episode FROM table_25391981_20 WHERE rating / SHARE(18 AS –49) = 2.8 / 8</s> |
CREATE TABLE table_13688489_1 (goals_olimpia INTEGER) | SELECT MIN(goals_olimpia) FROM table_13688489_1 | What was the least amount for Goals Olimpia? | <s>[INST]What was the least amount for Goals Olimpia? Context: CREATE TABLE table_13688489_1 (goals_olimpia INTEGER)[/INST]SELECT MIN(goals_olimpia) FROM table_13688489_1</s> |
CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR) | SELECT surface FROM table_name_75 WHERE score = "4–6, 6–3, 6–7 (5–7)" | What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)? | <s>[INST]What is the Surface when the score was 4–6, 6–3, 6–7 (5–7)? Context: CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR)[/INST]SELECT surface FROM table_name_75 WHERE score = "4–6, 6–3, 6–7 (5–7)"</s> |
CREATE TABLE table_24257833_4 (operating_system VARCHAR, webkit_version VARCHAR) | SELECT operating_system FROM table_24257833_4 WHERE webkit_version = "525.29.1" | List all OS's with a webkit version of 525.29.1. | <s>[INST]List all OS's with a webkit version of 525.29.1. Context: CREATE TABLE table_24257833_4 (operating_system VARCHAR, webkit_version VARCHAR)[/INST]SELECT operating_system FROM table_24257833_4 WHERE webkit_version = "525.29.1"</s> |
CREATE TABLE table_name_26 (place VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT place FROM table_name_26 WHERE to_par < 15 AND score = 74 - 74 - 74 - 75 = 297 | Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297? | <s>[INST]Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297? Context: CREATE TABLE table_name_26 (place VARCHAR, to_par VARCHAR, score VARCHAR)[/INST]SELECT place FROM table_name_26 WHERE to_par < 15 AND score = 74 - 74 - 74 - 75 = 297</s> |
CREATE TABLE table_1008653_9 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR) | SELECT country___exonym__ FROM table_1008653_9 WHERE official_or_native_language_s___alphabet_script_ = "Icelandic" | What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic? | <s>[INST]What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic? Context: CREATE TABLE table_1008653_9 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)[/INST]SELECT country___exonym__ FROM table_1008653_9 WHERE official_or_native_language_s___alphabet_script_ = "Icelandic"</s> |
CREATE TABLE table_27450976_1 (written_by VARCHAR, production_code VARCHAR) | SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507" | How many people wrote the episode with a production code of 2j5507? | <s>[INST]How many people wrote the episode with a production code of 2j5507? Context: CREATE TABLE table_27450976_1 (written_by VARCHAR, production_code VARCHAR)[/INST]SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507"</s> |
CREATE TABLE table_name_30 (stories INTEGER, completed VARCHAR, rank VARCHAR) | SELECT AVG(stories) FROM table_name_30 WHERE completed > 2003 AND rank = "16" | Name the average stories done after 2003 with a 16 rank | <s>[INST]Name the average stories done after 2003 with a 16 rank Context: CREATE TABLE table_name_30 (stories INTEGER, completed VARCHAR, rank VARCHAR)[/INST]SELECT AVG(stories) FROM table_name_30 WHERE completed > 2003 AND rank = "16"</s> |
CREATE TABLE table_name_8 (time_retired VARCHAR, team VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_8 WHERE team = "newman/haas racing" AND grid = 3 | When the team is newman/haas racing and the grid size is 3, what's the time/retired? | <s>[INST]When the team is newman/haas racing and the grid size is 3, what's the time/retired? Context: CREATE TABLE table_name_8 (time_retired VARCHAR, team VARCHAR, grid VARCHAR)[/INST]SELECT time_retired FROM table_name_8 WHERE team = "newman/haas racing" AND grid = 3</s> |
CREATE TABLE school (school_name VARCHAR) | SELECT school_name FROM school ORDER BY school_name | Show all school names in alphabetical order. | <s>[INST]Show all school names in alphabetical order. Context: CREATE TABLE school (school_name VARCHAR)[/INST]SELECT school_name FROM school ORDER BY school_name</s> |
CREATE TABLE table_name_68 (event VARCHAR, medal VARCHAR, olympics VARCHAR) | SELECT event FROM table_name_68 WHERE medal = "bronze" AND olympics = "2000 summer olympics" | What is the event in the 2000 summer olympics with a bronze medal? | <s>[INST]What is the event in the 2000 summer olympics with a bronze medal? Context: CREATE TABLE table_name_68 (event VARCHAR, medal VARCHAR, olympics VARCHAR)[/INST]SELECT event FROM table_name_68 WHERE medal = "bronze" AND olympics = "2000 summer olympics"</s> |
CREATE TABLE TRACK (Name VARCHAR) | SELECT Name FROM TRACK WHERE Name LIKE '%you%' | Find the names of all the tracks that contain the word "you". | <s>[INST]Find the names of all the tracks that contain the word "you". Context: CREATE TABLE TRACK (Name VARCHAR)[/INST]SELECT Name FROM TRACK WHERE Name LIKE '%you%'</s> |
CREATE TABLE table_176521_2 (status VARCHAR, area_km_2 VARCHAR) | SELECT status FROM table_176521_2 WHERE area_km_2 = "304.06" | What is the status(es) of the place with an area of 304.06 km2? | <s>[INST]What is the status(es) of the place with an area of 304.06 km2? Context: CREATE TABLE table_176521_2 (status VARCHAR, area_km_2 VARCHAR)[/INST]SELECT status FROM table_176521_2 WHERE area_km_2 = "304.06"</s> |
CREATE TABLE table_name_53 (player VARCHAR, place VARCHAR) | SELECT player FROM table_name_53 WHERE place = "t8" | Who is the player with a t8 place? | <s>[INST]Who is the player with a t8 place? Context: CREATE TABLE table_name_53 (player VARCHAR, place VARCHAR)[/INST]SELECT player FROM table_name_53 WHERE place = "t8"</s> |
CREATE TABLE table_name_60 (win_loss VARCHAR, win__percentage VARCHAR) | SELECT win_loss FROM table_name_60 WHERE win__percentage = ".456" | What is Win-Loss, when Win % is .456? | <s>[INST]What is Win-Loss, when Win % is .456? Context: CREATE TABLE table_name_60 (win_loss VARCHAR, win__percentage VARCHAR)[/INST]SELECT win_loss FROM table_name_60 WHERE win__percentage = ".456"</s> |
CREATE TABLE table_name_61 (run_rate INTEGER, rank VARCHAR) | SELECT MAX(run_rate) FROM table_name_61 WHERE rank = 4 | What is the run rate for rank 4? | <s>[INST]What is the run rate for rank 4? Context: CREATE TABLE table_name_61 (run_rate INTEGER, rank VARCHAR)[/INST]SELECT MAX(run_rate) FROM table_name_61 WHERE rank = 4</s> |
CREATE TABLE table_name_92 (round VARCHAR, club_team VARCHAR) | SELECT round FROM table_name_92 WHERE club_team = "brandon wheat kings (whl)" | Which Round has a Club team of brandon wheat kings (whl)? | <s>[INST]Which Round has a Club team of brandon wheat kings (whl)? Context: CREATE TABLE table_name_92 (round VARCHAR, club_team VARCHAR)[/INST]SELECT round FROM table_name_92 WHERE club_team = "brandon wheat kings (whl)"</s> |
CREATE TABLE table_name_23 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR) | SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = "rice" AND round > 10 | WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? | <s>[INST]WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10? Context: CREATE TABLE table_name_23 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR)[/INST]SELECT AVG(overall) FROM table_name_23 WHERE pick = 22 AND college = "rice" AND round > 10</s> |
CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR) | SELECT week FROM table_name_58 WHERE record = "5-7-1" | Which week has a record of 5-7-1? | <s>[INST]Which week has a record of 5-7-1? Context: CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR)[/INST]SELECT week FROM table_name_58 WHERE record = "5-7-1"</s> |
CREATE TABLE table_name_66 (reign INTEGER, date VARCHAR) | SELECT MAX(reign) FROM table_name_66 WHERE date = "march 10, 2007" | What's the highest reign on march 10, 2007? | <s>[INST]What's the highest reign on march 10, 2007? Context: CREATE TABLE table_name_66 (reign INTEGER, date VARCHAR)[/INST]SELECT MAX(reign) FROM table_name_66 WHERE date = "march 10, 2007"</s> |
CREATE TABLE table_10992_3 (city_district__stadtteil_ VARCHAR, foreign_nationals VARCHAR) | SELECT COUNT(city_district__stadtteil_) FROM table_10992_3 WHERE foreign_nationals = "5.162" | What is the number of the city district of stadtteil where foreigners are 5.162? | <s>[INST]What is the number of the city district of stadtteil where foreigners are 5.162? Context: CREATE TABLE table_10992_3 (city_district__stadtteil_ VARCHAR, foreign_nationals VARCHAR)[/INST]SELECT COUNT(city_district__stadtteil_) FROM table_10992_3 WHERE foreign_nationals = "5.162"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.