instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What venue had a draw? | CREATE TABLE table_name_77 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_77 WHERE result = "draw" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (venue VARCHAR, result VARCHAR) Question: What venue had a draw? [/INST] SELECT venue FROM table_name_77 WHERE result = "draw" </s> |
What is the total number of points for entrants with a Jordan 192 chassis? | CREATE TABLE table_name_98 (pts INTEGER, chassis VARCHAR) | SELECT SUM(pts) FROM table_name_98 WHERE chassis = "jordan 192" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (pts INTEGER, chassis VARCHAR) Question: What is the total number of points for entrants with a Jordan 192 chassis? [/INST] SELECT SUM(pts) FROM table_name_98 WHERE chassis = "jordan 192" </s> |
Which entrant had a chassis of March CG891? | CREATE TABLE table_name_20 (entrant VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_20 WHERE chassis = "march cg891" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (entrant VARCHAR, chassis VARCHAR) Question: Which entrant had a chassis of March CG891? [/INST] SELECT entrant FROM table_name_20 WHERE chassis = "march cg891" </s> |
What is the lowest number of points for an entrant with a Jordan 192 chassis? | CREATE TABLE table_name_20 (pts INTEGER, chassis VARCHAR) | SELECT MIN(pts) FROM table_name_20 WHERE chassis = "jordan 192" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (pts INTEGER, chassis VARCHAR) Question: What is the lowest number of points for an entrant with a Jordan 192 chassis? [/INST] SELECT MIN(pts) FROM table_name_20 WHERE chassis = "jordan 192" </s> |
What Opponent has the Attendance of 14,029? | CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_77 WHERE attendance = "14,029" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR) Question: What Opponent has the Attendance of 14,029? [/INST] SELECT opponent FROM table_name_77 WHERE attendance = "14,029" </s> |
Can you tell me the Attendance that has the Date of april 12? | CREATE TABLE table_name_63 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_63 WHERE date = "april 12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (attendance VARCHAR, date VARCHAR) Question: Can you tell me the Attendance that has the Date of april 12? [/INST] SELECT attendance FROM table_name_63 WHERE date = "april 12" </s> |
Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235? | CREATE TABLE table_name_98 (score VARCHAR, opponent VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_98 WHERE opponent = "brewers" AND attendance = "11,235" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (score VARCHAR, opponent VARCHAR, attendance VARCHAR) Question: Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235? [/INST] SELECT score FROM table_name_98 WHERE opponent = "brewers" AND attendance = "11,235" </s> |
Can you tell me the Score that has the Attendance of 4,567? | CREATE TABLE table_name_94 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_94 WHERE attendance = "4,567" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (score VARCHAR, attendance VARCHAR) Question: Can you tell me the Score that has the Attendance of 4,567? [/INST] SELECT score FROM table_name_94 WHERE attendance = "4,567" </s> |
What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio? | CREATE TABLE table_name_20 (date VARCHAR, distance VARCHAR, course VARCHAR) | SELECT date FROM table_name_20 WHERE distance = "km (mi)" AND course = "roccaraso to san giorgio del sannio" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (date VARCHAR, distance VARCHAR, course VARCHAR) Question: What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio? [/INST] SELECT date FROM table_name_20 WHERE distance = "km (mi)" AND course = "roccaraso to san giorgio del sannio" </s> |
Name the engine with entrant of larrousse f1 | CREATE TABLE table_name_59 (engine VARCHAR, entrant VARCHAR) | SELECT engine FROM table_name_59 WHERE entrant = "larrousse f1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (engine VARCHAR, entrant VARCHAR) Question: Name the engine with entrant of larrousse f1 [/INST] SELECT engine FROM table_name_59 WHERE entrant = "larrousse f1" </s> |
Name the average yeara for engine of renault v10 with points more than 4 | CREATE TABLE table_name_19 (year INTEGER, engine VARCHAR, points VARCHAR) | SELECT AVG(year) FROM table_name_19 WHERE engine = "renault v10" AND points > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (year INTEGER, engine VARCHAR, points VARCHAR) Question: Name the average yeara for engine of renault v10 with points more than 4 [/INST] SELECT AVG(year) FROM table_name_19 WHERE engine = "renault v10" AND points > 4 </s> |
Name the sumof points for year less than 1994 and chassis of lola lc89b | CREATE TABLE table_name_47 (points INTEGER, year VARCHAR, chassis VARCHAR) | SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = "lola lc89b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (points INTEGER, year VARCHAR, chassis VARCHAR) Question: Name the sumof points for year less than 1994 and chassis of lola lc89b [/INST] SELECT SUM(points) FROM table_name_47 WHERE year < 1994 AND chassis = "lola lc89b" </s> |
Name the entrant for year more than 1991 and chassis of lotus 109 | CREATE TABLE table_name_92 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_92 WHERE year > 1991 AND chassis = "lotus 109" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) Question: Name the entrant for year more than 1991 and chassis of lotus 109 [/INST] SELECT entrant FROM table_name_92 WHERE year > 1991 AND chassis = "lotus 109" </s> |
Name the sum of points for 1991 | CREATE TABLE table_name_79 (points INTEGER, year VARCHAR) | SELECT SUM(points) FROM table_name_79 WHERE year = 1991 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (points INTEGER, year VARCHAR) Question: Name the sum of points for 1991 [/INST] SELECT SUM(points) FROM table_name_79 WHERE year = 1991 </s> |
Which type has turin to monza as a course? | CREATE TABLE table_name_85 (type VARCHAR, course VARCHAR) | SELECT type FROM table_name_85 WHERE course = "turin to monza" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (type VARCHAR, course VARCHAR) Question: Which type has turin to monza as a course? [/INST] SELECT type FROM table_name_85 WHERE course = "turin to monza" </s> |
Which course has km (mi) as a type? | CREATE TABLE table_name_15 (course VARCHAR, type VARCHAR) | SELECT course FROM table_name_15 WHERE type = "km (mi)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (course VARCHAR, type VARCHAR) Question: Which course has km (mi) as a type? [/INST] SELECT course FROM table_name_15 WHERE type = "km (mi)" </s> |
What winner has the sanremo to cuneo as the course? | CREATE TABLE table_name_51 (winner VARCHAR, course VARCHAR) | SELECT winner FROM table_name_51 WHERE course = "sanremo to cuneo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (winner VARCHAR, course VARCHAR) Question: What winner has the sanremo to cuneo as the course? [/INST] SELECT winner FROM table_name_51 WHERE course = "sanremo to cuneo" </s> |
Name the distance for stage of 2 | CREATE TABLE table_name_5 (distance VARCHAR, stage VARCHAR) | SELECT distance FROM table_name_5 WHERE stage = "2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (distance VARCHAR, stage VARCHAR) Question: Name the distance for stage of 2 [/INST] SELECT distance FROM table_name_5 WHERE stage = "2" </s> |
Name the route with winner of sébastien rosseler | CREATE TABLE table_name_27 (route VARCHAR, winner VARCHAR) | SELECT route FROM table_name_27 WHERE winner = "sébastien rosseler" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (route VARCHAR, winner VARCHAR) Question: Name the route with winner of sébastien rosseler [/INST] SELECT route FROM table_name_27 WHERE winner = "sébastien rosseler" </s> |
Name the route for 170.8km distance | CREATE TABLE table_name_14 (route VARCHAR, distance VARCHAR) | SELECT route FROM table_name_14 WHERE distance = "170.8km" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (route VARCHAR, distance VARCHAR) Question: Name the route for 170.8km distance [/INST] SELECT route FROM table_name_14 WHERE distance = "170.8km" </s> |
Name the date for luciano pagliarini | CREATE TABLE table_name_68 (date VARCHAR, winner VARCHAR) | SELECT date FROM table_name_68 WHERE winner = "luciano pagliarini" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (date VARCHAR, winner VARCHAR) Question: Name the date for luciano pagliarini [/INST] SELECT date FROM table_name_68 WHERE winner = "luciano pagliarini" </s> |
Name the date for mark cavendish | CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR) | SELECT date FROM table_name_10 WHERE winner = "mark cavendish" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR) Question: Name the date for mark cavendish [/INST] SELECT date FROM table_name_10 WHERE winner = "mark cavendish" </s> |
Name the laps for qual of 144.665 | CREATE TABLE table_name_94 (laps INTEGER, qual VARCHAR) | SELECT SUM(laps) FROM table_name_94 WHERE qual = "144.665" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (laps INTEGER, qual VARCHAR) Question: Name the laps for qual of 144.665 [/INST] SELECT SUM(laps) FROM table_name_94 WHERE qual = "144.665" </s> |
Name the total number of Laps for year of 1961 | CREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR) | SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (laps VARCHAR, year VARCHAR) Question: Name the total number of Laps for year of 1961 [/INST] SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961" </s> |
Name the finish for start of 28 | CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR) | SELECT finish FROM table_name_76 WHERE start = "28" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR) Question: Name the finish for start of 28 [/INST] SELECT finish FROM table_name_76 WHERE start = "28" </s> |
Name the laps for rank of 14 and start of 16 | CREATE TABLE table_name_67 (laps VARCHAR, rank VARCHAR, start VARCHAR) | SELECT laps FROM table_name_67 WHERE rank = "14" AND start = "16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (laps VARCHAR, rank VARCHAR, start VARCHAR) Question: Name the laps for rank of 14 and start of 16 [/INST] SELECT laps FROM table_name_67 WHERE rank = "14" AND start = "16" </s> |
Name the qual for year of 1960 | CREATE TABLE table_name_25 (qual VARCHAR, year VARCHAR) | SELECT qual FROM table_name_25 WHERE year = "1960" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (qual VARCHAR, year VARCHAR) Question: Name the qual for year of 1960 [/INST] SELECT qual FROM table_name_25 WHERE year = "1960" </s> |
What is the name of the player in position lb and an overall of 128? | CREATE TABLE table_name_65 (player VARCHAR, position VARCHAR, overall VARCHAR) | SELECT player FROM table_name_65 WHERE position = "lb" AND overall = 128 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (player VARCHAR, position VARCHAR, overall VARCHAR) Question: What is the name of the player in position lb and an overall of 128? [/INST] SELECT player FROM table_name_65 WHERE position = "lb" AND overall = 128 </s> |
What is the total overall when Kenny Lewis is the player in a round after 5? | CREATE TABLE table_name_98 (overall VARCHAR, player VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_98 WHERE player = "kenny lewis" AND round > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (overall VARCHAR, player VARCHAR, round VARCHAR) Question: What is the total overall when Kenny Lewis is the player in a round after 5? [/INST] SELECT COUNT(overall) FROM table_name_98 WHERE player = "kenny lewis" AND round > 5 </s> |
What is the college when the over is larger than 15 in round 7? | CREATE TABLE table_name_41 (college VARCHAR, overall VARCHAR, round VARCHAR) | SELECT college FROM table_name_41 WHERE overall > 15 AND round = 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (college VARCHAR, overall VARCHAR, round VARCHAR) Question: What is the college when the over is larger than 15 in round 7? [/INST] SELECT college FROM table_name_41 WHERE overall > 15 AND round = 7 </s> |
What is the position with an overall less than 128 for Brigham Young college? | CREATE TABLE table_name_87 (position VARCHAR, overall VARCHAR, college VARCHAR) | SELECT position FROM table_name_87 WHERE overall < 128 AND college = "brigham young" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (position VARCHAR, overall VARCHAR, college VARCHAR) Question: What is the position with an overall less than 128 for Brigham Young college? [/INST] SELECT position FROM table_name_87 WHERE overall < 128 AND college = "brigham young" </s> |
How many attended the game on 4 February 2003? | CREATE TABLE table_name_81 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (attendance INTEGER, date VARCHAR) Question: How many attended the game on 4 February 2003? [/INST] SELECT AVG(attendance) FROM table_name_81 WHERE date = "4 february 2003" </s> |
yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast? | CREATE TABLE table_name_74 (auckland VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR) | SELECT auckland FROM table_name_74 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND gold_coast = "yes" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (auckland VARCHAR, gold_coast VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR) Question: yes or no for the auckland with a yes for sydney, no for perth, yes for melbourne and yes for the gold coast? [/INST] SELECT auckland FROM table_name_74 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND gold_coast = "yes" </s> |
yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast? | CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) | SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) Question: yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast? [/INST] SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes" </s> |
yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland? | CREATE TABLE table_name_2 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR) | SELECT gold_coast FROM table_name_2 WHERE melbourne = "yes" AND adelaide = "yes" AND auckland = "yes" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, adelaide VARCHAR) Question: yes or no for the gold coast with yes for melbourne, yes for adelaide, yes for auckland? [/INST] SELECT gold_coast FROM table_name_2 WHERE melbourne = "yes" AND adelaide = "yes" AND auckland = "yes" </s> |
yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland? | CREATE TABLE table_name_92 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR) | SELECT melbourne FROM table_name_92 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "no" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR) Question: yes or no for the melbourne with yes for gold coast, yes for adelaide, no for auckland? [/INST] SELECT melbourne FROM table_name_92 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "no" </s> |
yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast? | CREATE TABLE table_name_43 (sydney VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) | SELECT sydney FROM table_name_43 WHERE melbourne = "yes" AND perth = "no" AND auckland = "no" AND gold_coast = "no" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (sydney VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) Question: yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast? [/INST] SELECT sydney FROM table_name_43 WHERE melbourne = "yes" AND perth = "no" AND auckland = "no" AND gold_coast = "no" </s> |
yes or no for the melbourne that has no for adelaide, no for gold coast? | CREATE TABLE table_name_90 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR) | SELECT melbourne FROM table_name_90 WHERE adelaide = "yes" AND gold_coast = "no" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR) Question: yes or no for the melbourne that has no for adelaide, no for gold coast? [/INST] SELECT melbourne FROM table_name_90 WHERE adelaide = "yes" AND gold_coast = "no" </s> |
How many losses did the team with 0 wins and more than 72 runs allowed have? | CREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR) | SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (losses INTEGER, wins VARCHAR, runs_allowed VARCHAR) Question: How many losses did the team with 0 wins and more than 72 runs allowed have? [/INST] SELECT SUM(losses) FROM table_name_1 WHERE wins = 0 AND runs_allowed > 72 </s> |
What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have? | CREATE TABLE table_name_96 (losses INTEGER, wins VARCHAR, rank VARCHAR, team VARCHAR) | SELECT MIN(losses) FROM table_name_96 WHERE rank < 3 AND team = "united states" AND wins > 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (losses INTEGER, wins VARCHAR, rank VARCHAR, team VARCHAR) Question: What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have? [/INST] SELECT MIN(losses) FROM table_name_96 WHERE rank < 3 AND team = "united states" AND wins > 6 </s> |
How many runs allowed did the team ranked 2 with more than 2 losses have? | CREATE TABLE table_name_50 (runs_allowed INTEGER, rank VARCHAR, losses VARCHAR) | SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (runs_allowed INTEGER, rank VARCHAR, losses VARCHAR) Question: How many runs allowed did the team ranked 2 with more than 2 losses have? [/INST] SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2 </s> |
How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have? | CREATE TABLE table_name_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR) | SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR) Question: How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have? [/INST] SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4 </s> |
What is the highest run ratio Japan, which has less than 58 runs and 5 wins, have? | CREATE TABLE table_name_36 (run_ratio INTEGER, team VARCHAR, runs_allowed VARCHAR, wins VARCHAR) | SELECT MAX(run_ratio) FROM table_name_36 WHERE runs_allowed < 58 AND wins = 5 AND team = "japan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (run_ratio INTEGER, team VARCHAR, runs_allowed VARCHAR, wins VARCHAR) Question: What is the highest run ratio Japan, which has less than 58 runs and 5 wins, have? [/INST] SELECT MAX(run_ratio) FROM table_name_36 WHERE runs_allowed < 58 AND wins = 5 AND team = "japan" </s> |
What is the average number of losses the team with less than 25 runs allowed and 5 wins have? | CREATE TABLE table_name_63 (losses INTEGER, runs_allowed VARCHAR, wins VARCHAR) | SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (losses INTEGER, runs_allowed VARCHAR, wins VARCHAR) Question: What is the average number of losses the team with less than 25 runs allowed and 5 wins have? [/INST] SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5 </s> |
Which date has tigers as the opponent? | CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_14 WHERE opponent = "tigers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR) Question: Which date has tigers as the opponent? [/INST] SELECT date FROM table_name_14 WHERE opponent = "tigers" </s> |
What loss has october 1 as the date? | CREATE TABLE table_name_47 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_47 WHERE date = "october 1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (loss VARCHAR, date VARCHAR) Question: What loss has october 1 as the date? [/INST] SELECT loss FROM table_name_47 WHERE date = "october 1" </s> |
What year is listed that has points greater than 0 with a chassis labeled AGS JH22? | CREATE TABLE table_name_26 (year VARCHAR, points VARCHAR, chassis VARCHAR) | SELECT year FROM table_name_26 WHERE points > 0 AND chassis = "ags jh22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (year VARCHAR, points VARCHAR, chassis VARCHAR) Question: What year is listed that has points greater than 0 with a chassis labeled AGS JH22? [/INST] SELECT year FROM table_name_26 WHERE points > 0 AND chassis = "ags jh22" </s> |
What is the total points listed that includes P listed Tyres after 1986? | CREATE TABLE table_name_76 (points INTEGER, tyres VARCHAR, year VARCHAR) | SELECT SUM(points) FROM table_name_76 WHERE tyres = "p" AND year > 1986 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (points INTEGER, tyres VARCHAR, year VARCHAR) Question: What is the total points listed that includes P listed Tyres after 1986? [/INST] SELECT SUM(points) FROM table_name_76 WHERE tyres = "p" AND year > 1986 </s> |
What point is the lowest for listings of chassis labeled AGS JH23 before 1988? | CREATE TABLE table_name_73 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT MIN(points) FROM table_name_73 WHERE chassis = "ags jh23" AND year < 1988 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (points INTEGER, chassis VARCHAR, year VARCHAR) Question: What point is the lowest for listings of chassis labeled AGS JH23 before 1988? [/INST] SELECT MIN(points) FROM table_name_73 WHERE chassis = "ags jh23" AND year < 1988 </s> |
What is the total point for the year listed in 1988? | CREATE TABLE table_name_58 (points INTEGER, year VARCHAR) | SELECT SUM(points) FROM table_name_58 WHERE year = 1988 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (points INTEGER, year VARCHAR) Question: What is the total point for the year listed in 1988? [/INST] SELECT SUM(points) FROM table_name_58 WHERE year = 1988 </s> |
What was the attendance on August 2? | CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR) | SELECT MAX(attendance) FROM table_name_28 WHERE date = "august 2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR) Question: What was the attendance on August 2? [/INST] SELECT MAX(attendance) FROM table_name_28 WHERE date = "august 2" </s> |
Which opponent lost with pitcher Kinney (0-1)? | CREATE TABLE table_name_54 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_54 WHERE loss = "kinney (0-1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (opponent VARCHAR, loss VARCHAR) Question: Which opponent lost with pitcher Kinney (0-1)? [/INST] SELECT opponent FROM table_name_54 WHERE loss = "kinney (0-1)" </s> |
What was the attendance on August 23? | CREATE TABLE table_name_77 (attendance VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_name_77 WHERE date = "august 23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (attendance VARCHAR, date VARCHAR) Question: What was the attendance on August 23? [/INST] SELECT COUNT(attendance) FROM table_name_77 WHERE date = "august 23" </s> |
What is the highest wins a tournament with 3 cuts and more than 4 events has? | CREATE TABLE table_name_27 (wins INTEGER, cuts_made VARCHAR, events VARCHAR) | SELECT MAX(wins) FROM table_name_27 WHERE cuts_made = 3 AND events > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (wins INTEGER, cuts_made VARCHAR, events VARCHAR) Question: What is the highest wins a tournament with 3 cuts and more than 4 events has? [/INST] SELECT MAX(wins) FROM table_name_27 WHERE cuts_made = 3 AND events > 4 </s> |
What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has? | CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, wins VARCHAR) | SELECT MIN(events) FROM table_name_77 WHERE top_10 > 1 AND wins > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, wins VARCHAR) Question: What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has? [/INST] SELECT MIN(events) FROM table_name_77 WHERE top_10 > 1 AND wins > 0 </s> |
How many laps did the 6th placed in 1998 complete? | CREATE TABLE table_name_90 (laps INTEGER, pos VARCHAR, year VARCHAR) | SELECT SUM(laps) FROM table_name_90 WHERE pos = "6th" AND year = 1998 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (laps INTEGER, pos VARCHAR, year VARCHAR) Question: How many laps did the 6th placed in 1998 complete? [/INST] SELECT SUM(laps) FROM table_name_90 WHERE pos = "6th" AND year = 1998 </s> |
What team was c1 class, had over 331 laps after 1990? | CREATE TABLE table_name_55 (team VARCHAR, year VARCHAR, class VARCHAR, laps VARCHAR) | SELECT team FROM table_name_55 WHERE class = "c1" AND laps > 331 AND year > 1990 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (team VARCHAR, year VARCHAR, class VARCHAR, laps VARCHAR) Question: What team was c1 class, had over 331 laps after 1990? [/INST] SELECT team FROM table_name_55 WHERE class = "c1" AND laps > 331 AND year > 1990 </s> |
What class did eddie cheever raul boesel race in? | CREATE TABLE table_name_16 (class VARCHAR, co_drivers VARCHAR) | SELECT class FROM table_name_16 WHERE co_drivers = "eddie cheever raul boesel" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (class VARCHAR, co_drivers VARCHAR) Question: What class did eddie cheever raul boesel race in? [/INST] SELECT class FROM table_name_16 WHERE co_drivers = "eddie cheever raul boesel" </s> |
What's the lowest rank of a player who played in 2012? | CREATE TABLE table_name_50 (rank INTEGER, event VARCHAR) | SELECT MIN(rank) FROM table_name_50 WHERE event = "2012" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (rank INTEGER, event VARCHAR) Question: What's the lowest rank of a player who played in 2012? [/INST] SELECT MIN(rank) FROM table_name_50 WHERE event = "2012" </s> |
What player has the rank 2011? | CREATE TABLE table_name_97 (player VARCHAR, rank VARCHAR) | SELECT player FROM table_name_97 WHERE rank = 2011 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (player VARCHAR, rank VARCHAR) Question: What player has the rank 2011? [/INST] SELECT player FROM table_name_97 WHERE rank = 2011 </s> |
What was the score of the match played on hard with a person ranked 10? | CREATE TABLE table_name_70 (score VARCHAR, surface VARCHAR, rank VARCHAR) | SELECT score FROM table_name_70 WHERE surface = "hard" AND rank = 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (score VARCHAR, surface VARCHAR, rank VARCHAR) Question: What was the score of the match played on hard with a person ranked 10? [/INST] SELECT score FROM table_name_70 WHERE surface = "hard" AND rank = 10 </s> |
What females speak Romanian? | CREATE TABLE table_name_71 (females VARCHAR, language VARCHAR) | SELECT females FROM table_name_71 WHERE language = "romanian" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (females VARCHAR, language VARCHAR) Question: What females speak Romanian? [/INST] SELECT females FROM table_name_71 WHERE language = "romanian" </s> |
What females have males of 1 234? | CREATE TABLE table_name_21 (females VARCHAR, males VARCHAR) | SELECT females FROM table_name_21 WHERE males = "1 234" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (females VARCHAR, males VARCHAR) Question: What females have males of 1 234? [/INST] SELECT females FROM table_name_21 WHERE males = "1 234" </s> |
What males speak Polish? | CREATE TABLE table_name_22 (males VARCHAR, language VARCHAR) | SELECT males FROM table_name_22 WHERE language = "polish" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (males VARCHAR, language VARCHAR) Question: What males speak Polish? [/INST] SELECT males FROM table_name_22 WHERE language = "polish" </s> |
What is the number of males 977 948? | CREATE TABLE table_name_20 (number VARCHAR, males VARCHAR) | SELECT number FROM table_name_20 WHERE males = "977 948" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (number VARCHAR, males VARCHAR) Question: What is the number of males 977 948? [/INST] SELECT number FROM table_name_20 WHERE males = "977 948" </s> |
Bowler of shane bond has what lowest overall number? | CREATE TABLE table_name_37 (over_no INTEGER, bowler VARCHAR) | SELECT MIN(over_no) FROM table_name_37 WHERE bowler = "shane bond" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (over_no INTEGER, bowler VARCHAR) Question: Bowler of shane bond has what lowest overall number? [/INST] SELECT MIN(over_no) FROM table_name_37 WHERE bowler = "shane bond" </s> |
Wickets of chris gayle caught kapali happened on what date? | CREATE TABLE table_name_16 (date VARCHAR, wickets VARCHAR) | SELECT date FROM table_name_16 WHERE wickets = "chris gayle caught kapali" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (date VARCHAR, wickets VARCHAR) Question: Wickets of chris gayle caught kapali happened on what date? [/INST] SELECT date FROM table_name_16 WHERE wickets = "chris gayle caught kapali" </s> |
What year did Kyle Newman place third? | CREATE TABLE table_name_34 (year VARCHAR, third VARCHAR) | SELECT year FROM table_name_34 WHERE third = "kyle newman" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (year VARCHAR, third VARCHAR) Question: What year did Kyle Newman place third? [/INST] SELECT year FROM table_name_34 WHERE third = "kyle newman" </s> |
What was the venue when Jerran Hart won? | CREATE TABLE table_name_20 (venue VARCHAR, winner VARCHAR) | SELECT venue FROM table_name_20 WHERE winner = "jerran hart" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (venue VARCHAR, winner VARCHAR) Question: What was the venue when Jerran Hart won? [/INST] SELECT venue FROM table_name_20 WHERE winner = "jerran hart" </s> |
Who was the runner-up in 2004? | CREATE TABLE table_name_82 (runner_up VARCHAR, year VARCHAR) | SELECT runner_up FROM table_name_82 WHERE year = 2004 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (runner_up VARCHAR, year VARCHAR) Question: Who was the runner-up in 2004? [/INST] SELECT runner_up FROM table_name_82 WHERE year = 2004 </s> |
What was the venue when Jack Hargreaves finished third? | CREATE TABLE table_name_63 (venue VARCHAR, third VARCHAR) | SELECT venue FROM table_name_63 WHERE third = "jack hargreaves" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (venue VARCHAR, third VARCHAR) Question: What was the venue when Jack Hargreaves finished third? [/INST] SELECT venue FROM table_name_63 WHERE third = "jack hargreaves" </s> |
What was the venue when Ben Barker finished third? | CREATE TABLE table_name_65 (venue VARCHAR, third VARCHAR) | SELECT venue FROM table_name_65 WHERE third = "ben barker" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (venue VARCHAR, third VARCHAR) Question: What was the venue when Ben Barker finished third? [/INST] SELECT venue FROM table_name_65 WHERE third = "ben barker" </s> |
What province/region is RJTQ located? | CREATE TABLE table_name_91 (province_region VARCHAR, icao VARCHAR) | SELECT province_region FROM table_name_91 WHERE icao = "rjtq" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_91 (province_region VARCHAR, icao VARCHAR) Question: What province/region is RJTQ located? [/INST] SELECT province_region FROM table_name_91 WHERE icao = "rjtq" </s> |
In what city is RJSN located? | CREATE TABLE table_name_57 (city VARCHAR, icao VARCHAR) | SELECT city FROM table_name_57 WHERE icao = "rjsn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (city VARCHAR, icao VARCHAR) Question: In what city is RJSN located? [/INST] SELECT city FROM table_name_57 WHERE icao = "rjsn" </s> |
What is RJCM's IATA? | CREATE TABLE table_name_76 (iata VARCHAR, icao VARCHAR) | SELECT iata FROM table_name_76 WHERE icao = "rjcm" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (iata VARCHAR, icao VARCHAR) Question: What is RJCM's IATA? [/INST] SELECT iata FROM table_name_76 WHERE icao = "rjcm" </s> |
In what country is Hokkaidō and New Chitose airport located? | CREATE TABLE table_name_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR) | SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose airport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR) Question: In what country is Hokkaidō and New Chitose airport located? [/INST] SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose airport" </s> |
In what country is Hiroshima Airport located? | CREATE TABLE table_name_69 (country VARCHAR, airport VARCHAR) | SELECT country FROM table_name_69 WHERE airport = "hiroshima airport" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (country VARCHAR, airport VARCHAR) Question: In what country is Hiroshima Airport located? [/INST] SELECT country FROM table_name_69 WHERE airport = "hiroshima airport" </s> |
What is the ICAO of Nakashibetsu? | CREATE TABLE table_name_89 (icao VARCHAR, city VARCHAR) | SELECT icao FROM table_name_89 WHERE city = "nakashibetsu" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (icao VARCHAR, city VARCHAR) Question: What is the ICAO of Nakashibetsu? [/INST] SELECT icao FROM table_name_89 WHERE city = "nakashibetsu" </s> |
What is the total number of games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC? | CREATE TABLE table_name_52 (lost VARCHAR, club VARCHAR, played VARCHAR, losing_bp VARCHAR) | SELECT lost FROM table_name_52 WHERE played = "22" AND losing_bp = "2" AND club = "merthyr rfc" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (lost VARCHAR, club VARCHAR, played VARCHAR, losing_bp VARCHAR) Question: What is the total number of games lost when 22 have been played, the losing BP number is 2, and the club is Merthyr RFC? [/INST] SELECT lost FROM table_name_52 WHERE played = "22" AND losing_bp = "2" AND club = "merthyr rfc" </s> |
What is the number drawn when 3 have been lost? | CREATE TABLE table_name_74 (drawn VARCHAR, lost VARCHAR) | SELECT drawn FROM table_name_74 WHERE lost = "3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (drawn VARCHAR, lost VARCHAR) Question: What is the number drawn when 3 have been lost? [/INST] SELECT drawn FROM table_name_74 WHERE lost = "3" </s> |
What is the number drawn when the try BP is 1? | CREATE TABLE table_name_79 (drawn VARCHAR, try_bp VARCHAR) | SELECT drawn FROM table_name_79 WHERE try_bp = "1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (drawn VARCHAR, try_bp VARCHAR) Question: What is the number drawn when the try BP is 1? [/INST] SELECT drawn FROM table_name_79 WHERE try_bp = "1" </s> |
What is the try BP when the losing BP is 4 and the club is Bargoed RFC? | CREATE TABLE table_name_82 (try_bp VARCHAR, losing_bp VARCHAR, club VARCHAR) | SELECT try_bp FROM table_name_82 WHERE losing_bp = "4" AND club = "bargoed rfc" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (try_bp VARCHAR, losing_bp VARCHAR, club VARCHAR) Question: What is the try BP when the losing BP is 4 and the club is Bargoed RFC? [/INST] SELECT try_bp FROM table_name_82 WHERE losing_bp = "4" AND club = "bargoed rfc" </s> |
What is the club that has played 22 rounds, has a drawn score of 0, has lost 14, and whose losing BP is 5? | CREATE TABLE table_name_96 (club VARCHAR, losing_bp VARCHAR, lost VARCHAR, played VARCHAR, drawn VARCHAR) | SELECT club FROM table_name_96 WHERE played = "22" AND drawn = "0" AND lost = "14" AND losing_bp = "5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (club VARCHAR, losing_bp VARCHAR, lost VARCHAR, played VARCHAR, drawn VARCHAR) Question: What is the club that has played 22 rounds, has a drawn score of 0, has lost 14, and whose losing BP is 5? [/INST] SELECT club FROM table_name_96 WHERE played = "22" AND drawn = "0" AND lost = "14" AND losing_bp = "5" </s> |
What average Total has a Rank of 3 and a Bronze award larger than 3? | CREATE TABLE table_name_33 (total INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_33 WHERE rank = "3" AND bronze > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (total INTEGER, rank VARCHAR, bronze VARCHAR) Question: What average Total has a Rank of 3 and a Bronze award larger than 3? [/INST] SELECT AVG(total) FROM table_name_33 WHERE rank = "3" AND bronze > 3 </s> |
What average Total has a Gold award of 13 and a Bronze award less than 13? | CREATE TABLE table_name_84 (total INTEGER, gold VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_84 WHERE gold = 13 AND bronze < 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (total INTEGER, gold VARCHAR, bronze VARCHAR) Question: What average Total has a Gold award of 13 and a Bronze award less than 13? [/INST] SELECT AVG(total) FROM table_name_84 WHERE gold = 13 AND bronze < 13 </s> |
What is the average Gold award that has a Silver award greater than 2, and a Bronze award less than 13, and a Total greater than 24? | CREATE TABLE table_name_5 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_5 WHERE silver > 2 AND bronze < 13 AND total > 24 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR) Question: What is the average Gold award that has a Silver award greater than 2, and a Bronze award less than 13, and a Total greater than 24? [/INST] SELECT AVG(gold) FROM table_name_5 WHERE silver > 2 AND bronze < 13 AND total > 24 </s> |
What is the record number of the game where Guardado lost? | CREATE TABLE table_name_9 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_9 WHERE loss = "guardado" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (record VARCHAR, loss VARCHAR) Question: What is the record number of the game where Guardado lost? [/INST] SELECT record FROM table_name_9 WHERE loss = "guardado" </s> |
What was the lowest attendance recorded at a game on September 28? | CREATE TABLE table_name_79 (attendance INTEGER, date VARCHAR) | SELECT MIN(attendance) FROM table_name_79 WHERE date = "september 28" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (attendance INTEGER, date VARCHAR) Question: What was the lowest attendance recorded at a game on September 28? [/INST] SELECT MIN(attendance) FROM table_name_79 WHERE date = "september 28" </s> |
What is the average gold that has a total of 2 and more than 1 bronze. | CREATE TABLE table_name_75 (gold INTEGER, total VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_75 WHERE total = 2 AND bronze > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (gold INTEGER, total VARCHAR, bronze VARCHAR) Question: What is the average gold that has a total of 2 and more than 1 bronze. [/INST] SELECT AVG(gold) FROM table_name_75 WHERE total = 2 AND bronze > 1 </s> |
What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? | CREATE TABLE table_name_88 (tournament VARCHAR) | SELECT 2006 FROM table_name_88 WHERE 2010 = "a" AND 2009 = "a" AND tournament = "canada masters" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (tournament VARCHAR) Question: What is the 2006 result of the Canada Masters tournament that is A in 2009 and A in 2010? [/INST] SELECT 2006 FROM table_name_88 WHERE 2010 = "a" AND 2009 = "a" AND tournament = "canada masters" </s> |
What is the result for 2006 of a tournament that is 107 in 2010? | CREATE TABLE table_name_73 (Id VARCHAR) | SELECT 2006 FROM table_name_73 WHERE 2010 = "107" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (Id VARCHAR) Question: What is the result for 2006 of a tournament that is 107 in 2010? [/INST] SELECT 2006 FROM table_name_73 WHERE 2010 = "107" </s> |
What is the 2010 result of a tournament that is A in 2006 and A in 2011? | CREATE TABLE table_name_40 (Id VARCHAR) | SELECT 2010 FROM table_name_40 WHERE 2011 = "a" AND 2006 = "a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (Id VARCHAR) Question: What is the 2010 result of a tournament that is A in 2006 and A in 2011? [/INST] SELECT 2010 FROM table_name_40 WHERE 2011 = "a" AND 2006 = "a" </s> |
What is the 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009? | CREATE TABLE table_name_29 (Id VARCHAR) | SELECT 2012 FROM table_name_29 WHERE 2009 = "1r" AND 2008 = "1r" AND 2007 = "2r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (Id VARCHAR) Question: What is the 2012 result of a tournament that is 2R in 2007, 1R in 2008 and 1R in 2009? [/INST] SELECT 2012 FROM table_name_29 WHERE 2009 = "1r" AND 2008 = "1r" AND 2007 = "2r" </s> |
What is the 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012? | CREATE TABLE table_name_43 (Id VARCHAR) | SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (Id VARCHAR) Question: What is the 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012? [/INST] SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r" </s> |
What match number took place on August 3, 2007? | CREATE TABLE table_name_38 (match INTEGER, date VARCHAR) | SELECT MAX(match) FROM table_name_38 WHERE date = "august 3, 2007" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (match INTEGER, date VARCHAR) Question: What match number took place on August 3, 2007? [/INST] SELECT MAX(match) FROM table_name_38 WHERE date = "august 3, 2007" </s> |
What is the 2010 value of the 2013 Grand Slam Tournaments? | CREATE TABLE table_name_1 (Id VARCHAR) | SELECT 2010 FROM table_name_1 WHERE 2013 = "grand slam tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (Id VARCHAR) Question: What is the 2010 value of the 2013 Grand Slam Tournaments? [/INST] SELECT 2010 FROM table_name_1 WHERE 2013 = "grand slam tournaments" </s> |
What is the 2012 value with A in 2007 and qf in 2011? | CREATE TABLE table_name_11 (Id VARCHAR) | SELECT 2012 FROM table_name_11 WHERE 2007 = "a" AND 2011 = "qf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (Id VARCHAR) Question: What is the 2012 value with A in 2007 and qf in 2011? [/INST] SELECT 2012 FROM table_name_11 WHERE 2007 = "a" AND 2011 = "qf" </s> |
What is the 2012 value with a 1r in 2011 in the Australian Open? | CREATE TABLE table_name_6 (tournament VARCHAR) | SELECT 2012 FROM table_name_6 WHERE 2011 = "1r" AND tournament = "australian open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (tournament VARCHAR) Question: What is the 2012 value with a 1r in 2011 in the Australian Open? [/INST] SELECT 2012 FROM table_name_6 WHERE 2011 = "1r" AND tournament = "australian open" </s> |
What is the 2013 value with a qf in 2011? | CREATE TABLE table_name_68 (Id VARCHAR) | SELECT 2013 FROM table_name_68 WHERE 2011 = "qf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (Id VARCHAR) Question: What is the 2013 value with a qf in 2011? [/INST] SELECT 2013 FROM table_name_68 WHERE 2011 = "qf" </s> |
What is the 2007 value at the 2012 Grand Slam Tournaments? | CREATE TABLE table_name_26 (Id VARCHAR) | SELECT 2007 FROM table_name_26 WHERE 2012 = "grand slam tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (Id VARCHAR) Question: What is the 2007 value at the 2012 Grand Slam Tournaments? [/INST] SELECT 2007 FROM table_name_26 WHERE 2012 = "grand slam tournaments" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.