instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
What is the average Year with Chassis equalling cooper t60? | CREATE TABLE table_name_49 (year INTEGER, chassis VARCHAR) | SELECT AVG(year) FROM table_name_49 WHERE chassis = "cooper t60" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (year INTEGER, chassis VARCHAR) Question: What is the average Year with Chassis equalling cooper t60? [/INST] SELECT AVG(year) FROM table_name_49 WHERE chassis = "cooper t60" </s> |
Which Chassis has an Entrant of cooper car company, and a Year of 1963? | CREATE TABLE table_name_26 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) | SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (chassis VARCHAR, entrant VARCHAR, year VARCHAR) Question: Which Chassis has an Entrant of cooper car company, and a Year of 1963? [/INST] SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963 </s> |
Which Entrant has an Engine of climax straight-4, and Points larger than 0? | CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR) | SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR) Question: Which Entrant has an Engine of climax straight-4, and Points larger than 0? [/INST] SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0 </s> |
Which tournament has hard as the surface and apr. 12, 1998 as the date? | CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR) Question: Which tournament has hard as the surface and apr. 12, 1998 as the date? [/INST] SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998" </s> |
Which surface has wynne prakusya as the opponent in the final? | CREATE TABLE table_name_51 (surface VARCHAR, opponent_in_the_final VARCHAR) | SELECT surface FROM table_name_51 WHERE opponent_in_the_final = "wynne prakusya" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (surface VARCHAR, opponent_in_the_final VARCHAR) Question: Which surface has wynne prakusya as the opponent in the final? [/INST] SELECT surface FROM table_name_51 WHERE opponent_in_the_final = "wynne prakusya" </s> |
What score has wynne prakusya as the opponent in the final? | CREATE TABLE table_name_15 (score VARCHAR, opponent_in_the_final VARCHAR) | SELECT score FROM table_name_15 WHERE opponent_in_the_final = "wynne prakusya" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (score VARCHAR, opponent_in_the_final VARCHAR) Question: What score has wynne prakusya as the opponent in the final? [/INST] SELECT score FROM table_name_15 WHERE opponent_in_the_final = "wynne prakusya" </s> |
What tournament has nov. 21, 1999 as the date? | CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) | SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) Question: What tournament has nov. 21, 1999 as the date? [/INST] SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999" </s> |
Name the authority for coed gender and chanel college | CREATE TABLE table_name_67 (authority VARCHAR, gender VARCHAR, name VARCHAR) | SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (authority VARCHAR, gender VARCHAR, name VARCHAR) Question: Name the authority for coed gender and chanel college [/INST] SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college" </s> |
Name the average decile for state authority and area of fernridge | CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR) | SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR) Question: Name the average decile for state authority and area of fernridge [/INST] SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge" </s> |
What was the week on October 11, 1998? | CREATE TABLE table_name_48 (week INTEGER, date VARCHAR) | SELECT MIN(week) FROM table_name_48 WHERE date = "october 11, 1998" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (week INTEGER, date VARCHAR) Question: What was the week on October 11, 1998? [/INST] SELECT MIN(week) FROM table_name_48 WHERE date = "october 11, 1998" </s> |
What is the location of the game with attendance of 63,336? | CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR) | SELECT game_site FROM table_name_93 WHERE attendance = "63,336" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR) Question: What is the location of the game with attendance of 63,336? [/INST] SELECT game_site FROM table_name_93 WHERE attendance = "63,336" </s> |
What was the date of the week 13 game? | CREATE TABLE table_name_96 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_96 WHERE week = 13 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (date VARCHAR, week VARCHAR) Question: What was the date of the week 13 game? [/INST] SELECT date FROM table_name_96 WHERE week = 13 </s> |
What is the Panthers' Division Record? | CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR) | SELECT division_record FROM table_name_48 WHERE team = "panthers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR) Question: What is the Panthers' Division Record? [/INST] SELECT division_record FROM table_name_48 WHERE team = "panthers" </s> |
What is the Senators' division record? | CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR) | SELECT division_record FROM table_name_39 WHERE team = "senators" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR) Question: What is the Senators' division record? [/INST] SELECT division_record FROM table_name_39 WHERE team = "senators" </s> |
What was the record after the January 18 game? | CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_86 WHERE date = "january 18" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR) Question: What was the record after the January 18 game? [/INST] SELECT record FROM table_name_86 WHERE date = "january 18" </s> |
What was the record after the January 6 game? | CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_44 WHERE date = "january 6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) Question: What was the record after the January 6 game? [/INST] SELECT record FROM table_name_44 WHERE date = "january 6" </s> |
Name the former name for 49 rank | CREATE TABLE table_name_79 (Former VARCHAR, rank VARCHAR) | SELECT Former AS name FROM table_name_79 WHERE rank = 49 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (Former VARCHAR, rank VARCHAR) Question: Name the former name for 49 rank [/INST] SELECT Former AS name FROM table_name_79 WHERE rank = 49 </s> |
Which NHL team has left wing listed as the position? | CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR) | SELECT nhl_team FROM table_name_66 WHERE position = "left wing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR) Question: Which NHL team has left wing listed as the position? [/INST] SELECT nhl_team FROM table_name_66 WHERE position = "left wing" </s> |
What years does Kakahi school, with a decile of 3, have? | CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR) | SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR) Question: What years does Kakahi school, with a decile of 3, have? [/INST] SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school" </s> |
What is the average decile of Ruapehu college, which has a state authority? | CREATE TABLE table_name_64 (decile INTEGER, authority VARCHAR, name VARCHAR) | SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (decile INTEGER, authority VARCHAR, name VARCHAR) Question: What is the average decile of Ruapehu college, which has a state authority? [/INST] SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college" </s> |
What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8? | CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR) | SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR) Question: What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8? [/INST] SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8 </s> |
On what day was Utah Blaze the opponent? | CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_6 WHERE opponent = "utah blaze" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR) Question: On what day was Utah Blaze the opponent? [/INST] SELECT date FROM table_name_6 WHERE opponent = "utah blaze" </s> |
What is the 2006 value with a 1r in 2011? | CREATE TABLE table_name_56 (Id VARCHAR) | SELECT 2006 FROM table_name_56 WHERE 2011 = "1r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (Id VARCHAR) Question: What is the 2006 value with a 1r in 2011? [/INST] SELECT 2006 FROM table_name_56 WHERE 2011 = "1r" </s> |
What is the 2010 value with a 2r in 200r and a 3r in 2011? | CREATE TABLE table_name_85 (Id VARCHAR) | SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (Id VARCHAR) Question: What is the 2010 value with a 2r in 200r and a 3r in 2011? [/INST] SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r" </s> |
What is the 2007 value with a 2r in 2012 and 1r in 2002? | CREATE TABLE table_name_53 (Id VARCHAR) | SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (Id VARCHAR) Question: What is the 2007 value with a 2r in 2012 and 1r in 2002? [/INST] SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r" </s> |
What is the 2004 value in the 2011 Grand Slam Tournaments? | CREATE TABLE table_name_46 (Id VARCHAR) | SELECT 2004 FROM table_name_46 WHERE 2011 = "grand slam tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (Id VARCHAR) Question: What is the 2004 value in the 2011 Grand Slam Tournaments? [/INST] SELECT 2004 FROM table_name_46 WHERE 2011 = "grand slam tournaments" </s> |
What is the 2004 value with a sf in 2010? | CREATE TABLE table_name_4 (Id VARCHAR) | SELECT 2004 FROM table_name_4 WHERE 2010 = "sf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (Id VARCHAR) Question: What is the 2004 value with a sf in 2010? [/INST] SELECT 2004 FROM table_name_4 WHERE 2010 = "sf" </s> |
Name the score for 30 january 2013 | CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_24 WHERE date = "30 january 2013" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR) Question: Name the score for 30 january 2013 [/INST] SELECT score FROM table_name_24 WHERE date = "30 january 2013" </s> |
Name the result for goal # more than 4 | CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER) | SELECT result FROM table_name_92 WHERE goal__number > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER) Question: Name the result for goal # more than 4 [/INST] SELECT result FROM table_name_92 WHERE goal__number > 4 </s> |
What is Fred Couples to par? | CREATE TABLE table_name_24 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_24 WHERE player = "fred couples" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (to_par VARCHAR, player VARCHAR) Question: What is Fred Couples to par? [/INST] SELECT to_par FROM table_name_24 WHERE player = "fred couples" </s> |
What place has a score under 68? | CREATE TABLE table_name_9 (place VARCHAR, score INTEGER) | SELECT place FROM table_name_9 WHERE score < 68 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (place VARCHAR, score INTEGER) Question: What place has a score under 68? [/INST] SELECT place FROM table_name_9 WHERE score < 68 </s> |
Which driver won when o.m. was the winning constructor ? | CREATE TABLE table_name_96 (winning_driver VARCHAR, winning_constructor VARCHAR) | SELECT winning_driver FROM table_name_96 WHERE winning_constructor = "o.m." | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (winning_driver VARCHAR, winning_constructor VARCHAR) Question: Which driver won when o.m. was the winning constructor ? [/INST] SELECT winning_driver FROM table_name_96 WHERE winning_constructor = "o.m." </s> |
Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ? | CREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR) | SELECT winning_driver FROM table_name_40 WHERE winning_constructor = "bugatti" AND name = "boulogne grand prix" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR) Question: Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ? [/INST] SELECT winning_driver FROM table_name_40 WHERE winning_constructor = "bugatti" AND name = "boulogne grand prix" </s> |
What race did Meo Constantini win at the circuit of monza ? | CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR) | SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR) Question: What race did Meo Constantini win at the circuit of monza ? [/INST] SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza" </s> |
On what date did Aymo Maggi win the Rome Grand Prix ? | CREATE TABLE table_name_6 (date VARCHAR, winning_driver VARCHAR, name VARCHAR) | SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (date VARCHAR, winning_driver VARCHAR, name VARCHAR) Question: On what date did Aymo Maggi win the Rome Grand Prix ? [/INST] SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix" </s> |
Name the season outcome for smyrna | CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR) | SELECT season_outcome FROM table_name_89 WHERE school = "smyrna" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR) Question: Name the season outcome for smyrna [/INST] SELECT season_outcome FROM table_name_89 WHERE school = "smyrna" </s> |
Name the school for eagles | CREATE TABLE table_name_87 (school VARCHAR, team VARCHAR) | SELECT school FROM table_name_87 WHERE team = "eagles" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (school VARCHAR, team VARCHAR) Question: Name the school for eagles [/INST] SELECT school FROM table_name_87 WHERE team = "eagles" </s> |
Name the school for Season Outcome of loss in first round of div. i playoffs | CREATE TABLE table_name_73 (school VARCHAR, season_outcome VARCHAR) | SELECT school FROM table_name_73 WHERE season_outcome = "loss in first round of div. i playoffs" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (school VARCHAR, season_outcome VARCHAR) Question: Name the school for Season Outcome of loss in first round of div. i playoffs [/INST] SELECT school FROM table_name_73 WHERE season_outcome = "loss in first round of div. i playoffs" </s> |
Name the division record for riders | CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR) | SELECT division_record FROM table_name_28 WHERE team = "riders" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR) Question: Name the division record for riders [/INST] SELECT division_record FROM table_name_28 WHERE team = "riders" </s> |
Name the team for school of milford | CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR) | SELECT team FROM table_name_44 WHERE school = "milford" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR) Question: Name the team for school of milford [/INST] SELECT team FROM table_name_44 WHERE school = "milford" </s> |
Name the average points for chassis of stevens and year less than 1950 | CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR) | SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (points INTEGER, chassis VARCHAR, year VARCHAR) Question: Name the average points for chassis of stevens and year less than 1950 [/INST] SELECT AVG(points) FROM table_name_14 WHERE chassis = "stevens" AND year < 1950 </s> |
Name the least points for chassis of kurtis kraft 500a | CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR) | SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR) Question: Name the least points for chassis of kurtis kraft 500a [/INST] SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a" </s> |
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2 | CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR) | SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR) Question: Name the total number of year for chassis of kurtis kraft 4000 and points more than 2 [/INST] SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2 </s> |
Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High? | CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR) Question: Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High? [/INST] SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high" </s> |
Who was the visiting team at Raymond James Stadium? | CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR) | SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR) Question: Who was the visiting team at Raymond James Stadium? [/INST] SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium" </s> |
What date had the Houston Texans as visitors? | CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR) | SELECT date FROM table_name_75 WHERE visiting_team = "houston texans" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (date VARCHAR, visiting_team VARCHAR) Question: What date had the Houston Texans as visitors? [/INST] SELECT date FROM table_name_75 WHERE visiting_team = "houston texans" </s> |
Name the year with percentage of 9.66% | CREATE TABLE table_name_55 (year VARCHAR, percentage VARCHAR) | SELECT year FROM table_name_55 WHERE percentage = "9.66%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (year VARCHAR, percentage VARCHAR) Question: Name the year with percentage of 9.66% [/INST] SELECT year FROM table_name_55 WHERE percentage = "9.66%" </s> |
Name the total number of popular votes for mn attorney general in 1994 | CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR) | SELECT COUNT(popular_votes) FROM table_name_74 WHERE office = "mn attorney general" AND year = 1994 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (popular_votes VARCHAR, office VARCHAR, year VARCHAR) Question: Name the total number of popular votes for mn attorney general in 1994 [/INST] SELECT COUNT(popular_votes) FROM table_name_74 WHERE office = "mn attorney general" AND year = 1994 </s> |
Name the average popular votes in years after 1990 with percentage of 4.94% | CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR) | SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (popular_votes INTEGER, percentage VARCHAR, year VARCHAR) Question: Name the average popular votes in years after 1990 with percentage of 4.94% [/INST] SELECT AVG(popular_votes) FROM table_name_35 WHERE percentage = "4.94%" AND year > 1990 </s> |
Name the least popular votes for year less than 1994 and percentage of 0.96% | CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR) | SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (popular_votes INTEGER, year VARCHAR, percentage VARCHAR) Question: Name the least popular votes for year less than 1994 and percentage of 0.96% [/INST] SELECT MIN(popular_votes) FROM table_name_35 WHERE year < 1994 AND percentage = "0.96%" </s> |
What United States player holds the place of t8?` | CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR) | SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR) Question: What United States player holds the place of t8?` [/INST] SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states" </s> |
What country of argentina has the To par of 68? | CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_51 WHERE score = 68 AND country = "argentina" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR, country VARCHAR) Question: What country of argentina has the To par of 68? [/INST] SELECT to_par FROM table_name_51 WHERE score = 68 AND country = "argentina" </s> |
What is the To par and holds the t8 place of the United States player Tiger Woods? | CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) | SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) Question: What is the To par and holds the t8 place of the United States player Tiger Woods? [/INST] SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods" </s> |
What country does miguel ángel jiménez player for and has a score of 69? | CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR) | SELECT country FROM table_name_50 WHERE score = 69 AND player = "miguel ángel jiménez" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR) Question: What country does miguel ángel jiménez player for and has a score of 69? [/INST] SELECT country FROM table_name_50 WHERE score = 69 AND player = "miguel ángel jiménez" </s> |
What is the date of the race at Truro? | CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR) | SELECT date FROM table_name_32 WHERE track = "truro" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (date VARCHAR, track VARCHAR) Question: What is the date of the race at Truro? [/INST] SELECT date FROM table_name_32 WHERE track = "truro" </s> |
Which Year has a nominated outstanding actor in a musical? | CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR) | SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR) Question: Which Year has a nominated outstanding actor in a musical? [/INST] SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical" </s> |
Which Award has a nominated, and outstanding choreography? | CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR) | SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (award VARCHAR, result VARCHAR, category VARCHAR) Question: Which Award has a nominated, and outstanding choreography? [/INST] SELECT award FROM table_name_92 WHERE result = "nominated" AND category = "outstanding choreography" </s> |
Which Award has best performance by a leading actor in a musical | CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR) | SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR) Question: Which Award has best performance by a leading actor in a musical [/INST] SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical" </s> |
What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals? | CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR) | SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR) Question: What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals? [/INST] SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7 </s> |
What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position? | CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR) | SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (total_goals INTEGER, position VARCHAR, league_apps VARCHAR, total_apps VARCHAR) Question: What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position? [/INST] SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df" </s> |
What is the total number of Years that has the Group, Method Fest Independent Film Festival? | CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR) | SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (year VARCHAR, group VARCHAR) Question: What is the total number of Years that has the Group, Method Fest Independent Film Festival? [/INST] SELECT COUNT(year) FROM table_name_45 WHERE group = "method fest independent film festival" </s> |
What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated? | CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR) | SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR) Question: What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated? [/INST] SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated" </s> |
Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama? | CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR) | SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (group VARCHAR, award VARCHAR, film_show VARCHAR, result VARCHAR, year VARCHAR) Question: Before 2012, which Group has the Result, nominated, the Film/Show, East West 101, and the Award, Best Lead Actor in A Television Drama? [/INST] SELECT group FROM table_name_31 WHERE result = "nominated" AND year < 2012 AND film_show = "east west 101" AND award = "best lead actor in a television drama" </s> |
After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama? | CREATE TABLE table_name_54 (group VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR) | SELECT group FROM table_name_54 WHERE result = "nominated" AND year > 2008 AND award = "best lead actor in a television drama" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (group VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR) Question: After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor in a Television Drama? [/INST] SELECT group FROM table_name_54 WHERE result = "nominated" AND year > 2008 AND award = "best lead actor in a television drama" </s> |
What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award? | CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR) | SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (award VARCHAR, group VARCHAR, film_show VARCHAR, year VARCHAR) Question: What is the Award, when the Film/Show is East West 101, and when the year is before 2009, and when the Group is Logie Award? [/INST] SELECT award FROM table_name_96 WHERE film_show = "east west 101" AND year < 2009 AND group = "logie award" </s> |
What is the Film/Show, when the Year is 2010? | CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR) | SELECT film_show FROM table_name_19 WHERE year = 2010 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR) Question: What is the Film/Show, when the Year is 2010? [/INST] SELECT film_show FROM table_name_19 WHERE year = 2010 </s> |
Which year is that has a Entrant of belond equa-flow / calif. muffler? | CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR) | SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR) Question: Which year is that has a Entrant of belond equa-flow / calif. muffler? [/INST] SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler" </s> |
If the Ovrs is less than 2, what's the average in Wkts? | CREATE TABLE table_name_95 (wkts INTEGER, ovrs INTEGER) | SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (wkts INTEGER, ovrs INTEGER) Question: If the Ovrs is less than 2, what's the average in Wkts? [/INST] SELECT AVG(wkts) FROM table_name_95 WHERE ovrs < 2 </s> |
If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts? | CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR) | SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (wkts INTEGER, ovrs VARCHAR, player VARCHAR) Question: If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts? [/INST] SELECT MAX(wkts) FROM table_name_58 WHERE ovrs < 28.5 AND player = "adam voges" </s> |
How many sacks have 2006 as the year, and a solo less than 62? | CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR) | SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (sacks INTEGER, year VARCHAR, solo VARCHAR) Question: How many sacks have 2006 as the year, and a solo less than 62? [/INST] SELECT SUM(sacks) FROM table_name_59 WHERE year = "2006" AND solo < 62 </s> |
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2? | CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR) | SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR) Question: What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2? [/INST] SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2 </s> |
How many sacks have 72 as the solo and a TTkl less than 112? | CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR) | SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR) Question: How many sacks have 72 as the solo and a TTkl less than 112? [/INST] SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112 </s> |
How many TTkl have 2004 as the year, and a pass def greater than 5? | CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR) | SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR) Question: How many TTkl have 2004 as the year, and a pass def greater than 5? [/INST] SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5 </s> |
What is the highest decile of Tarras school, which had a state authority? | CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR) | SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR) Question: What is the highest decile of Tarras school, which had a state authority? [/INST] SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school" </s> |
What is the decile of the school with a roll larger than 513? | CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER) | SELECT SUM(decile) FROM table_name_36 WHERE roll > 513 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (decile INTEGER, roll INTEGER) Question: What is the decile of the school with a roll larger than 513? [/INST] SELECT SUM(decile) FROM table_name_36 WHERE roll > 513 </s> |
What is the area of Cromwell Primary school, which has a state authority? | CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR) | SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR) Question: What is the area of Cromwell Primary school, which has a state authority? [/INST] SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school" </s> |
Which player has figures of 4/14? | CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR) | SELECT player FROM table_name_46 WHERE figures = "4/14" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR) Question: Which player has figures of 4/14? [/INST] SELECT player FROM table_name_46 WHERE figures = "4/14" </s> |
How many overs occurred at Waca Ground against Queensland? | CREATE TABLE table_name_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR) | SELECT overs FROM table_name_31 WHERE ground = "waca ground" AND opponent = "queensland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (overs VARCHAR, ground VARCHAR, opponent VARCHAR) Question: How many overs occurred at Waca Ground against Queensland? [/INST] SELECT overs FROM table_name_31 WHERE ground = "waca ground" AND opponent = "queensland" </s> |
At which ground did Dirk Nannes have a figure of 4/23? | CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR) | SELECT ground FROM table_name_37 WHERE figures = "4/23" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR) Question: At which ground did Dirk Nannes have a figure of 4/23? [/INST] SELECT ground FROM table_name_37 WHERE figures = "4/23" </s> |
Who was the opponent when Steven Smith had 3.3 overs? | CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR) | SELECT opponent FROM table_name_45 WHERE overs = 3.3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (opponent VARCHAR, overs VARCHAR) Question: Who was the opponent when Steven Smith had 3.3 overs? [/INST] SELECT opponent FROM table_name_45 WHERE overs = 3.3 </s> |
Name the average year for brookvale oval and margin more than 46 | CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin VARCHAR) | SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin VARCHAR) Question: Name the average year for brookvale oval and margin more than 46 [/INST] SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46 </s> |
Name the most year for brookvale oval | CREATE TABLE table_name_93 (year INTEGER, venue VARCHAR) | SELECT MAX(year) FROM table_name_93 WHERE venue = "brookvale oval" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (year INTEGER, venue VARCHAR) Question: Name the most year for brookvale oval [/INST] SELECT MAX(year) FROM table_name_93 WHERE venue = "brookvale oval" </s> |
Name the average year for manly-warringah sea eagles | CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR) | SELECT AVG(year) FROM table_name_13 WHERE opponent = "manly-warringah sea eagles" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (year INTEGER, opponent VARCHAR) Question: Name the average year for manly-warringah sea eagles [/INST] SELECT AVG(year) FROM table_name_13 WHERE opponent = "manly-warringah sea eagles" </s> |
Who is the partner with a score of 6–1, 6–4? | CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR) | SELECT partner FROM table_name_29 WHERE score = "6–1, 6–4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (partner VARCHAR, score VARCHAR) Question: Who is the partner with a score of 6–1, 6–4? [/INST] SELECT partner FROM table_name_29 WHERE score = "6–1, 6–4" </s> |
what is the best supported club with a 25 Goal and a per game larger than 1,156? | CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR) | SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR) Question: what is the best supported club with a 25 Goal and a per game larger than 1,156? [/INST] SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156 ROWS </s> |
What are the age groups for the Big League World Series? | CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR) | SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR) Question: What are the age groups for the Big League World Series? [/INST] SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series" </s> |
How often is the table tennis competition held? | CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR) | SELECT held_every FROM table_name_13 WHERE sport = "table tennis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR) Question: How often is the table tennis competition held? [/INST] SELECT held_every FROM table_name_13 WHERE sport = "table tennis" </s> |
How often is the cricket competition held? | CREATE TABLE table_name_97 (held_every VARCHAR, sport VARCHAR) | SELECT held_every FROM table_name_97 WHERE sport = "cricket" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (held_every VARCHAR, sport VARCHAR) Question: How often is the cricket competition held? [/INST] SELECT held_every FROM table_name_97 WHERE sport = "cricket" </s> |
What was the attendance of the Blue Jays' game when their record was 47-43? | CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR) | SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR) Question: What was the attendance of the Blue Jays' game when their record was 47-43? [/INST] SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43" </s> |
Which year had a Cosworth V8 engine and 12 points? | CREATE TABLE table_name_36 (year VARCHAR, points VARCHAR, engine VARCHAR) | SELECT year FROM table_name_36 WHERE points = 12 AND engine = "cosworth v8" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (year VARCHAR, points VARCHAR, engine VARCHAR) Question: Which year had a Cosworth V8 engine and 12 points? [/INST] SELECT year FROM table_name_36 WHERE points = 12 AND engine = "cosworth v8" </s> |
How many points did the ATS Wheels entrant with an ATS D2 chassis have? | CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR) | SELECT points FROM table_name_14 WHERE entrant = "ats wheels" AND chassis = "ats d2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (points VARCHAR, entrant VARCHAR, chassis VARCHAR) Question: How many points did the ATS Wheels entrant with an ATS D2 chassis have? [/INST] SELECT points FROM table_name_14 WHERE entrant = "ats wheels" AND chassis = "ats d2" </s> |
How many races have less than 2 podiums and 19th position before 2009? | CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR) | SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR) Question: How many races have less than 2 podiums and 19th position before 2009? [/INST] SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009 </s> |
Which co drivers are 3rd in Joest racing? | CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR) | SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR) Question: Which co drivers are 3rd in Joest racing? [/INST] SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing" </s> |
When was radek necas with less than 2.04 height born? | CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR) | SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR) Question: When was radek necas with less than 2.04 height born? [/INST] SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04 </s> |
How tall was the member of Nymburk, who was born in 1982? | CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR) | SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR) Question: How tall was the member of Nymburk, who was born in 1982? [/INST] SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk" </s> |
What Kerry number does Taylor county have with more than 65 others#? | CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR) | SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR) Question: What Kerry number does Taylor county have with more than 65 others#? [/INST] SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65 </s> |
What is the smallest bush# with 66.0% bush and less than 65 others#? | CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR) | SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR) Question: What is the smallest bush# with 66.0% bush and less than 65 others#? [/INST] SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65 </s> |
Who was the captain of the away team at Adelaide Oval? | CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR) | SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR) Question: Who was the captain of the away team at Adelaide Oval? [/INST] SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval" </s> |
What is the final score at Melbourne Cricket Ground? | CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (result VARCHAR, venue VARCHAR) Question: What is the final score at Melbourne Cricket Ground? [/INST] SELECT result FROM table_name_79 WHERE venue = "melbourne cricket ground" </s> |
Name the score for april 28 | CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_66 WHERE date = "april 28" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR) Question: Name the score for april 28 [/INST] SELECT score FROM table_name_66 WHERE date = "april 28" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.