instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf? | CREATE TABLE table_name_41 (year_born__age_ VARCHAR, current_club VARCHAR, position VARCHAR) | SELECT year_born__age_ FROM table_name_41 WHERE current_club = "sporting al riyadi beirut" AND position = "pf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (year_born__age_ VARCHAR, current_club VARCHAR, position VARCHAR) Question: Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf? [/INST] SELECT year_born__ag... |
Which Current Club has a Player of bassem balaa? | CREATE TABLE table_name_97 (current_club VARCHAR, player VARCHAR) | SELECT current_club FROM table_name_97 WHERE player = "bassem balaa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (current_club VARCHAR, player VARCHAR) Question: Which Current Club has a Player of bassem balaa? [/INST] SELECT current_club FROM table_name_97 WHERE player = "bassem balaa" </s> |
What was the round in 1968? | CREATE TABLE table_name_43 (round VARCHAR, year VARCHAR) | SELECT round FROM table_name_43 WHERE year = 1968 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (round VARCHAR, year VARCHAR) Question: What was the round in 1968? [/INST] SELECT round FROM table_name_43 WHERE year = 1968 </s> |
What is the round for a year earlier than 1987? | CREATE TABLE table_name_19 (round VARCHAR, year INTEGER) | SELECT round FROM table_name_19 WHERE year < 1987 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (round VARCHAR, year INTEGER) Question: What is the round for a year earlier than 1987? [/INST] SELECT round FROM table_name_19 WHERE year < 1987 </s> |
What is the round when Grand Slam was the Davis Cup? | CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR) | SELECT round FROM table_name_92 WHERE grand_slam = "davis cup" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (round VARCHAR, grand_slam VARCHAR) Question: What is the round when Grand Slam was the Davis Cup? [/INST] SELECT round FROM table_name_92 WHERE grand_slam = "davis cup" </s> |
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won? | CREATE TABLE table_name_35 (grand_slam VARCHAR, winner VARCHAR, year VARCHAR, round VARCHAR) | SELECT grand_slam FROM table_name_35 WHERE year = 1987 AND round = "first round" AND winner = "ivan lendl" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (grand_slam VARCHAR, winner VARCHAR, year VARCHAR, round VARCHAR) Question: What is the grand slam in 1987, when round shows first round, and Ivan Lendl won? [/INST] SELECT grand_slam FROM table_na... |
What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times? | CREATE TABLE table_name_40 (win__percentage INTEGER, manager VARCHAR, lost VARCHAR) | SELECT MAX(win__percentage) FROM table_name_40 WHERE manager = "juan carlos chávez" AND lost < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (win__percentage INTEGER, manager VARCHAR, lost VARCHAR) Question: What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times? [/INST] SELECT MAX(win__perc... |
In which district is the incumbent a republican first elected in 1998? | CREATE TABLE table_name_33 (district VARCHAR, party VARCHAR, first_elected VARCHAR) | SELECT district FROM table_name_33 WHERE party = "republican" AND first_elected = 1998 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (district VARCHAR, party VARCHAR, first_elected VARCHAR) Question: In which district is the incumbent a republican first elected in 1998? [/INST] SELECT district FROM table_name_33 WHERE party = "r... |
What is the party affiliation of Virginia Foxx? | CREATE TABLE table_name_57 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_name_57 WHERE incumbent = "virginia foxx" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (party VARCHAR, incumbent VARCHAR) Question: What is the party affiliation of Virginia Foxx? [/INST] SELECT party FROM table_name_57 WHERE incumbent = "virginia foxx" </s> |
What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"? | CREATE TABLE table_name_29 (event VARCHAR, circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) | SELECT event FROM table_name_29 WHERE winning_driver = "laurent aiello laurent aiello" AND round > 1 AND circuit = "wunstorf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (event VARCHAR, circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) Question: What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circu... |
What is Date, when Round is "2"? | CREATE TABLE table_name_38 (date VARCHAR, round VARCHAR) | SELECT date FROM table_name_38 WHERE round = 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (date VARCHAR, round VARCHAR) Question: What is Date, when Round is "2"? [/INST] SELECT date FROM table_name_38 WHERE round = 2 </s> |
What is Event, when Round is "10"? | CREATE TABLE table_name_62 (event VARCHAR, round VARCHAR) | SELECT event FROM table_name_62 WHERE round = 10 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (event VARCHAR, round VARCHAR) Question: What is Event, when Round is "10"? [/INST] SELECT event FROM table_name_62 WHERE round = 10 </s> |
What is Date, when Round is less than 10, and when Circuit is "Norisring"? | CREATE TABLE table_name_18 (date VARCHAR, round VARCHAR, circuit VARCHAR) | SELECT date FROM table_name_18 WHERE round < 10 AND circuit = "norisring" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (date VARCHAR, round VARCHAR, circuit VARCHAR) Question: What is Date, when Round is less than 10, and when Circuit is "Norisring"? [/INST] SELECT date FROM table_name_18 WHERE round < 10 AND circu... |
What is the highest goal difference of the club with more than 34 played? | CREATE TABLE table_name_54 (goal_difference INTEGER, played INTEGER) | SELECT MAX(goal_difference) FROM table_name_54 WHERE played > 34 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (goal_difference INTEGER, played INTEGER) Question: What is the highest goal difference of the club with more than 34 played? [/INST] SELECT MAX(goal_difference) FROM table_name_54 WHERE played > 3... |
What is the total number of points of the club with a goal difference greater than 17 and more than 34 played? | CREATE TABLE table_name_76 (points VARCHAR, goal_difference VARCHAR, played VARCHAR) | SELECT COUNT(points) FROM table_name_76 WHERE goal_difference > 17 AND played > 34 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (points VARCHAR, goal_difference VARCHAR, played VARCHAR) Question: What is the total number of points of the club with a goal difference greater than 17 and more than 34 played? [/INST] SELECT COU... |
What is the lowest goal difference of club real betis, who has less than 18 wins? | CREATE TABLE table_name_10 (goal_difference INTEGER, club VARCHAR, wins VARCHAR) | SELECT MIN(goal_difference) FROM table_name_10 WHERE club = "real betis" AND wins < 18 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (goal_difference INTEGER, club VARCHAR, wins VARCHAR) Question: What is the lowest goal difference of club real betis, who has less than 18 wins? [/INST] SELECT MIN(goal_difference) FROM table_name... |
What is the sum of the points of the club with more than 34 played? | CREATE TABLE table_name_68 (points INTEGER, played INTEGER) | SELECT SUM(points) FROM table_name_68 WHERE played > 34 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (points INTEGER, played INTEGER) Question: What is the sum of the points of the club with more than 34 played? [/INST] SELECT SUM(points) FROM table_name_68 WHERE played > 34 </s> |
What is the lowest number played of the club with more than 15 wins and less than 42 goals against? | CREATE TABLE table_name_59 (played INTEGER, wins VARCHAR, goals_against VARCHAR) | SELECT MIN(played) FROM table_name_59 WHERE wins > 15 AND goals_against < 42 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (played INTEGER, wins VARCHAR, goals_against VARCHAR) Question: What is the lowest number played of the club with more than 15 wins and less than 42 goals against? [/INST] SELECT MIN(played) FROM t... |
What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses? | CREATE TABLE table_name_81 (wins VARCHAR, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR) | SELECT COUNT(wins) FROM table_name_81 WHERE goal_difference < 21 AND draws = 4 AND losses < 21 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (wins VARCHAR, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR) Question: What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses? ... |
What is the round for the qualifying phase with a draw date on 16 July 2010? | CREATE TABLE table_name_42 (round VARCHAR, phase VARCHAR, draw_date VARCHAR) | SELECT round FROM table_name_42 WHERE phase = "qualifying" AND draw_date = "16 july 2010" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (round VARCHAR, phase VARCHAR, draw_date VARCHAR) Question: What is the round for the qualifying phase with a draw date on 16 July 2010? [/INST] SELECT round FROM table_name_42 WHERE phase = "quali... |
Jack Nicklaus finished in what place? | CREATE TABLE table_name_18 (finish VARCHAR, player VARCHAR) | SELECT finish FROM table_name_18 WHERE player = "jack nicklaus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (finish VARCHAR, player VARCHAR) Question: Jack Nicklaus finished in what place? [/INST] SELECT finish FROM table_name_18 WHERE player = "jack nicklaus" </s> |
What year (s) won was +2 the To par, and t22 the finish? | CREATE TABLE table_name_5 (year_s__won VARCHAR, to_par VARCHAR, finish VARCHAR) | SELECT year_s__won FROM table_name_5 WHERE to_par = "+2" AND finish = "t22" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (year_s__won VARCHAR, to_par VARCHAR, finish VARCHAR) Question: What year (s) won was +2 the To par, and t22 the finish? [/INST] SELECT year_s__won FROM table_name_5 WHERE to_par = "+2" AND finish =... |
Lee Trevino of the United States with a total greater than 294 had what To par? | CREATE TABLE table_name_73 (to_par VARCHAR, player VARCHAR, total VARCHAR, country VARCHAR) | SELECT to_par FROM table_name_73 WHERE total > 294 AND country = "united states" AND player = "lee trevino" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (to_par VARCHAR, player VARCHAR, total VARCHAR, country VARCHAR) Question: Lee Trevino of the United States with a total greater than 294 had what To par? [/INST] SELECT to_par FROM table_name_73 W... |
The golfer from Spain with a total less than 294 won in what year (s)? | CREATE TABLE table_name_20 (year_s__won VARCHAR, total VARCHAR, country VARCHAR) | SELECT year_s__won FROM table_name_20 WHERE total < 294 AND country = "spain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (year_s__won VARCHAR, total VARCHAR, country VARCHAR) Question: The golfer from Spain with a total less than 294 won in what year (s)? [/INST] SELECT year_s__won FROM table_name_20 WHERE total < 29... |
Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1 | CREATE TABLE table_name_13 (nationality VARCHAR, pick__number VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_13 WHERE pick__number < 130 AND player = "tyler bunz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (nationality VARCHAR, pick__number VARCHAR, player VARCHAR) Question: Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1 [/INST] SELECT nationality FROM table_na... |
Which League from has a Player of louis domingue? | CREATE TABLE table_name_48 (league_from VARCHAR, player VARCHAR) | SELECT league_from FROM table_name_48 WHERE player = "louis domingue" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (league_from VARCHAR, player VARCHAR) Question: Which League from has a Player of louis domingue? [/INST] SELECT league_from FROM table_name_48 WHERE player = "louis domingue" </s> |
Which League from has a NHL team of san jose sharks (from carolina) 3? | CREATE TABLE table_name_13 (league_from VARCHAR, nhl_team VARCHAR) | SELECT league_from FROM table_name_13 WHERE nhl_team = "san jose sharks (from carolina) 3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (league_from VARCHAR, nhl_team VARCHAR) Question: Which League from has a NHL team of san jose sharks (from carolina) 3? [/INST] SELECT league_from FROM table_name_13 WHERE nhl_team = "san jose sha... |
Name the Nationality of södertälje sk? | CREATE TABLE table_name_78 (nationality VARCHAR, team_from VARCHAR) | SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (nationality VARCHAR, team_from VARCHAR) Question: Name the Nationality of södertälje sk? [/INST] SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk" </s> |
Which Team has a Pick # of 148? | CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR) | SELECT team_from FROM table_name_59 WHERE pick__number = 148 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR) Question: Which Team has a Pick # of 148? [/INST] SELECT team_from FROM table_name_59 WHERE pick__number = 148 </s> |
Which team has a League from of ontario hockey league, and a Player of tony dehart? | CREATE TABLE table_name_22 (nhl_team VARCHAR, league_from VARCHAR, player VARCHAR) | SELECT nhl_team FROM table_name_22 WHERE league_from = "ontario hockey league" AND player = "tony dehart" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (nhl_team VARCHAR, league_from VARCHAR, player VARCHAR) Question: Which team has a League from of ontario hockey league, and a Player of tony dehart? [/INST] SELECT nhl_team FROM table_name_22 WHER... |
What is T4 Place Player Nick Price's Money? | CREATE TABLE table_name_40 (money___$__ VARCHAR, place VARCHAR, player VARCHAR) | SELECT money___$__ FROM table_name_40 WHERE place = "t4" AND player = "nick price" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (money___$__ VARCHAR, place VARCHAR, player VARCHAR) Question: What is T4 Place Player Nick Price's Money? [/INST] SELECT money___$__ FROM table_name_40 WHERE place = "t4" AND player = "nick price"... |
What is the To par of the Place 1 Player? | CREATE TABLE table_name_44 (to_par VARCHAR, place VARCHAR) | SELECT to_par FROM table_name_44 WHERE place = "1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (to_par VARCHAR, place VARCHAR) Question: What is the To par of the Place 1 Player? [/INST] SELECT to_par FROM table_name_44 WHERE place = "1" </s> |
What Player's Score is 69-68-66-70=273? | CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR) Question: What Player's Score is 69-68-66-70=273? [/INST] SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273 </s> |
What Player's To par is −6? | CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR) | SELECT player FROM table_name_54 WHERE to_par = "−6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (player VARCHAR, to_par VARCHAR) Question: What Player's To par is −6? [/INST] SELECT player FROM table_name_54 WHERE to_par = "−6" </s> |
Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1 | CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, year_s__won VARCHAR) | SELECT country FROM table_name_3 WHERE to_par > 3 AND year_s__won = "1979" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, year_s__won VARCHAR) Question: Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1 [/INST] SELECT country FROM table_name_3 WHERE to_par... |
Which To par has a Country of australia, and a Year(s) won of 1990? | CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) | SELECT MIN(to_par) FROM table_name_42 WHERE country = "australia" AND year_s__won = "1990" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR) Question: Which To par has a Country of australia, and a Year(s) won of 1990? [/INST] SELECT MIN(to_par) FROM table_name_42 WHERE country = "a... |
Which city is in Cantabria? | CREATE TABLE table_name_34 (city VARCHAR, province VARCHAR) | SELECT city FROM table_name_34 WHERE province = "cantabria" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (city VARCHAR, province VARCHAR) Question: Which city is in Cantabria? [/INST] SELECT city FROM table_name_34 WHERE province = "cantabria" </s> |
What is the name of the city with the Socialist Party of the Extremadurian People? | CREATE TABLE table_name_89 (city VARCHAR, name_in_english VARCHAR) | SELECT city FROM table_name_89 WHERE name_in_english = "socialist party of the extremadurian people" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_89 (city VARCHAR, name_in_english VARCHAR) Question: What is the name of the city with the Socialist Party of the Extremadurian People? [/INST] SELECT city FROM table_name_89 WHERE name_in_english = "... |
Which province has the partido Socialista del Pueblo Extremeño party? | CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR) | SELECT province FROM table_name_31 WHERE party = "partido socialista del pueblo extremeño" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (province VARCHAR, party VARCHAR) Question: Which province has the partido Socialista del Pueblo Extremeño party? [/INST] SELECT province FROM table_name_31 WHERE party = "partido socialista del pu... |
When was the Partido radical party in Madrid registered? | CREATE TABLE table_name_38 (date_of_registration VARCHAR, province VARCHAR, party VARCHAR) | SELECT date_of_registration FROM table_name_38 WHERE province = "madrid" AND party = "partido radical" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (date_of_registration VARCHAR, province VARCHAR, party VARCHAR) Question: When was the Partido radical party in Madrid registered? [/INST] SELECT date_of_registration FROM table_name_38 WHERE provi... |
Which province is Pamplona located in? | CREATE TABLE table_name_11 (province VARCHAR, city VARCHAR) | SELECT province FROM table_name_11 WHERE city = "pamplona" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (province VARCHAR, city VARCHAR) Question: Which province is Pamplona located in? [/INST] SELECT province FROM table_name_11 WHERE city = "pamplona" </s> |
On what date was the Canarian Workers Socialist Union registered? | CREATE TABLE table_name_60 (date_of_registration VARCHAR, name_in_english VARCHAR) | SELECT date_of_registration FROM table_name_60 WHERE name_in_english = "canarian workers socialist union" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (date_of_registration VARCHAR, name_in_english VARCHAR) Question: On what date was the Canarian Workers Socialist Union registered? [/INST] SELECT date_of_registration FROM table_name_60 WHERE name... |
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver? | CREATE TABLE table_name_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR) | SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR) Question: What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver? [/INST] SELECT MIN(rank) FROM tab... |
What is the highest rank of Great Britain who has less than 16 bronze? | CREATE TABLE table_name_11 (rank INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT MAX(rank) FROM table_name_11 WHERE nation = "great britain" AND bronze < 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (rank INTEGER, nation VARCHAR, bronze VARCHAR) Question: What is the highest rank of Great Britain who has less than 16 bronze? [/INST] SELECT MAX(rank) FROM table_name_11 WHERE nation = "great bri... |
What was the injured entry for the row with a killed entry of 29? | CREATE TABLE table_name_98 (injured VARCHAR, killed VARCHAR) | SELECT injured FROM table_name_98 WHERE killed = "29" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (injured VARCHAR, killed VARCHAR) Question: What was the injured entry for the row with a killed entry of 29? [/INST] SELECT injured FROM table_name_98 WHERE killed = "29" </s> |
What location has a killed of 100.9, and a year later than 1993? | CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, killed VARCHAR) | SELECT location FROM table_name_81 WHERE year > 1993 AND killed = "100.9" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, killed VARCHAR) Question: What location has a killed of 100.9, and a year later than 1993? [/INST] SELECT location FROM table_name_81 WHERE year > 1993 AND killed =... |
What was the injured entry for Venezuela? | CREATE TABLE table_name_16 (injured VARCHAR, country VARCHAR) | SELECT injured FROM table_name_16 WHERE country = "venezuela" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (injured VARCHAR, country VARCHAR) Question: What was the injured entry for Venezuela? [/INST] SELECT injured FROM table_name_16 WHERE country = "venezuela" </s> |
How old were Mitchell & Jessica when they danced the Cha-Cha-Cha? | CREATE TABLE table_name_48 (ages VARCHAR, dance VARCHAR, pair VARCHAR) | SELECT ages FROM table_name_48 WHERE dance = "cha-cha-cha" AND pair = "mitchell & jessica" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (ages VARCHAR, dance VARCHAR, pair VARCHAR) Question: How old were Mitchell & Jessica when they danced the Cha-Cha-Cha? [/INST] SELECT ages FROM table_name_48 WHERE dance = "cha-cha-cha" AND pair =... |
Who danced the Cha-Cha-Cha on November 18, 2008? | CREATE TABLE table_name_2 (pair VARCHAR, dance VARCHAR, date VARCHAR) | SELECT pair FROM table_name_2 WHERE dance = "cha-cha-cha" AND date = "november 18, 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (pair VARCHAR, dance VARCHAR, date VARCHAR) Question: Who danced the Cha-Cha-Cha on November 18, 2008? [/INST] SELECT pair FROM table_name_2 WHERE dance = "cha-cha-cha" AND date = "november 18, 2008... |
Who danced the Samba on October 14, 2008? | CREATE TABLE table_name_14 (pair VARCHAR, date VARCHAR, dance VARCHAR) | SELECT pair FROM table_name_14 WHERE date = "october 14, 2008" AND dance = "samba" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (pair VARCHAR, date VARCHAR, dance VARCHAR) Question: Who danced the Samba on October 14, 2008? [/INST] SELECT pair FROM table_name_14 WHERE date = "october 14, 2008" AND dance = "samba" </s> |
What was the pic for Canada for player Yvon Bouillon earlier than 1974? | CREATE TABLE table_name_38 (pick INTEGER, player VARCHAR, nationality VARCHAR, year VARCHAR) | SELECT AVG(pick) FROM table_name_38 WHERE nationality = "canada" AND year < 1974 AND player = "yvon bouillon" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (pick INTEGER, player VARCHAR, nationality VARCHAR, year VARCHAR) Question: What was the pic for Canada for player Yvon Bouillon earlier than 1974? [/INST] SELECT AVG(pick) FROM table_name_38 WHERE... |
What was the competition when the score was 3-0? | CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_33 WHERE score = "3-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR) Question: What was the competition when the score was 3-0? [/INST] SELECT competition FROM table_name_33 WHERE score = "3-0" </s> |
Akin Ayodele drafted before round 7 plays what position? | CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR, name VARCHAR) | SELECT position FROM table_name_18 WHERE round < 7 AND name = "akin ayodele" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR, name VARCHAR) Question: Akin Ayodele drafted before round 7 plays what position? [/INST] SELECT position FROM table_name_18 WHERE round < 7 AND name = "akin ayodel... |
What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9? | CREATE TABLE table_name_60 (overall INTEGER, pick__number VARCHAR, round VARCHAR, college VARCHAR) | SELECT SUM(overall) FROM table_name_60 WHERE round < 4 AND college = "tennessee" AND pick__number > 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (overall INTEGER, pick__number VARCHAR, round VARCHAR, college VARCHAR) Question: What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked ... |
What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee? | CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR) | SELECT AVG(pick__number) FROM table_name_40 WHERE round < 7 AND college = "tennessee" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR) Question: What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee? [/INST] SELECT AVG(... |
What visiting team played at the home of the Chicago Black Hawks with a record of 1-1? | CREATE TABLE table_name_48 (visitor VARCHAR, home VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_48 WHERE home = "chicago black hawks" AND record = "1-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (visitor VARCHAR, home VARCHAR, record VARCHAR) Question: What visiting team played at the home of the Chicago Black Hawks with a record of 1-1? [/INST] SELECT visitor FROM table_name_48 WHERE home... |
What home team has a record of 4-3? | CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR) | SELECT home FROM table_name_7 WHERE record = "4-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR) Question: What home team has a record of 4-3? [/INST] SELECT home FROM table_name_7 WHERE record = "4-3" </s> |
What visiting team has a record of 4-3? | CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_49 WHERE record = "4-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR) Question: What visiting team has a record of 4-3? [/INST] SELECT visitor FROM table_name_49 WHERE record = "4-3" </s> |
What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0? | CREATE TABLE table_name_99 (league_cup INTEGER, fa_cup VARCHAR, championship VARCHAR, total VARCHAR) | SELECT MAX(league_cup) FROM table_name_99 WHERE championship < 3 AND total < 2 AND fa_cup > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (league_cup INTEGER, fa_cup VARCHAR, championship VARCHAR, total VARCHAR) Question: What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0? [/... |
What is the average total for less than 1 championship? | CREATE TABLE table_name_59 (total INTEGER, championship INTEGER) | SELECT AVG(total) FROM table_name_59 WHERE championship < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (total INTEGER, championship INTEGER) Question: What is the average total for less than 1 championship? [/INST] SELECT AVG(total) FROM table_name_59 WHERE championship < 1 </s> |
What i the total number of championships less than 2, and a league cup larger than 1? | CREATE TABLE table_name_9 (total VARCHAR, championship VARCHAR, league_cup VARCHAR) | SELECT COUNT(total) FROM table_name_9 WHERE championship < 2 AND league_cup > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (total VARCHAR, championship VARCHAR, league_cup VARCHAR) Question: What i the total number of championships less than 2, and a league cup larger than 1? [/INST] SELECT COUNT(total) FROM table_name_... |
What home team has a score of 2–1, when the away team was Telford United? | CREATE TABLE table_name_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_10 WHERE score = "2–1" AND away_team = "telford united" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR) Question: What home team has a score of 2–1, when the away team was Telford United? [/INST] SELECT home_team FROM table_name_10 WHERE score = "... |
What was the score when the way team was Wrexham? | CREATE TABLE table_name_12 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_12 WHERE away_team = "wrexham" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (score VARCHAR, away_team VARCHAR) Question: What was the score when the way team was Wrexham? [/INST] SELECT score FROM table_name_12 WHERE away_team = "wrexham" </s> |
What is the home team when the Tie no is 1? | CREATE TABLE table_name_32 (home_team VARCHAR, tie_no VARCHAR) | SELECT home_team FROM table_name_32 WHERE tie_no = "1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_32 (home_team VARCHAR, tie_no VARCHAR) Question: What is the home team when the Tie no is 1? [/INST] SELECT home_team FROM table_name_32 WHERE tie_no = "1" </s> |
What was Eduardo Romero's score? | CREATE TABLE table_name_59 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_59 WHERE player = "eduardo romero" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (score VARCHAR, player VARCHAR) Question: What was Eduardo Romero's score? [/INST] SELECT score FROM table_name_59 WHERE player = "eduardo romero" </s> |
Where was the score 67-71-70=208? | CREATE TABLE table_name_26 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_26 WHERE score = 67 - 71 - 70 = 208 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (place VARCHAR, score VARCHAR) Question: Where was the score 67-71-70=208? [/INST] SELECT place FROM table_name_26 WHERE score = 67 - 71 - 70 = 208 </s> |
What was the score when Fred Couples played in the United States and placed t9? | CREATE TABLE table_name_26 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) | SELECT score FROM table_name_26 WHERE country = "united states" AND place = "t9" AND player = "fred couples" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) Question: What was the score when Fred Couples played in the United States and placed t9? [/INST] SELECT score FROM table_name_26 WHE... |
What country does Gary Koch play for? | CREATE TABLE table_name_15 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_15 WHERE player = "gary koch" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (country VARCHAR, player VARCHAR) Question: What country does Gary Koch play for? [/INST] SELECT country FROM table_name_15 WHERE player = "gary koch" </s> |
Who plays for Zimbabwe? | CREATE TABLE table_name_7 (player VARCHAR, country VARCHAR) | SELECT player FROM table_name_7 WHERE country = "zimbabwe" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (player VARCHAR, country VARCHAR) Question: Who plays for Zimbabwe? [/INST] SELECT player FROM table_name_7 WHERE country = "zimbabwe" </s> |
What was the To par when the place was 4? | CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR) | SELECT to_par FROM table_name_60 WHERE place = "4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR) Question: What was the To par when the place was 4? [/INST] SELECT to_par FROM table_name_60 WHERE place = "4" </s> |
What is the current club with a position of sg/sf and a height less than 1.96? | CREATE TABLE table_name_45 (current_club VARCHAR, position VARCHAR, height VARCHAR) | SELECT current_club FROM table_name_45 WHERE position = "sg/sf" AND height < 1.96 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (current_club VARCHAR, position VARCHAR, height VARCHAR) Question: What is the current club with a position of sg/sf and a height less than 1.96? [/INST] SELECT current_club FROM table_name_45 WHER... |
What year was Rowan Barrett born? | CREATE TABLE table_name_18 (year_born__age_ VARCHAR, player VARCHAR) | SELECT year_born__age_ FROM table_name_18 WHERE player = "rowan barrett" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (year_born__age_ VARCHAR, player VARCHAR) Question: What year was Rowan Barrett born? [/INST] SELECT year_born__age_ FROM table_name_18 WHERE player = "rowan barrett" </s> |
What is the lowest height for Rans Brempong? | CREATE TABLE table_name_37 (height INTEGER, player VARCHAR) | SELECT MIN(height) FROM table_name_37 WHERE player = "rans brempong" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (height INTEGER, player VARCHAR) Question: What is the lowest height for Rans Brempong? [/INST] SELECT MIN(height) FROM table_name_37 WHERE player = "rans brempong" </s> |
When was the result 0–3? | CREATE TABLE table_name_48 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_48 WHERE result = "0–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (date VARCHAR, result VARCHAR) Question: When was the result 0–3? [/INST] SELECT date FROM table_name_48 WHERE result = "0–3" </s> |
What is the result of the match on 9 September 2009? | CREATE TABLE table_name_95 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_95 WHERE date = "9 september 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (result VARCHAR, date VARCHAR) Question: What is the result of the match on 9 September 2009? [/INST] SELECT result FROM table_name_95 WHERE date = "9 september 2009" </s> |
What is the name of the player that was loaned out on 13 August 2008 ? | CREATE TABLE table_name_34 (name VARCHAR, date_from VARCHAR) | SELECT name FROM table_name_34 WHERE date_from = "13 august 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (name VARCHAR, date_from VARCHAR) Question: What is the name of the player that was loaned out on 13 August 2008 ? [/INST] SELECT name FROM table_name_34 WHERE date_from = "13 august 2008" </s> |
When was febian brandy loaned out until, when was loaned out on 2 february 2009.? | CREATE TABLE table_name_12 (date_to VARCHAR, name VARCHAR, date_from VARCHAR) | SELECT date_to FROM table_name_12 WHERE name = "febian brandy" AND date_from = "2 february 2009" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (date_to VARCHAR, name VARCHAR, date_from VARCHAR) Question: When was febian brandy loaned out until, when was loaned out on 2 february 2009.? [/INST] SELECT date_to FROM table_name_12 WHERE name =... |
When was james chester loaned out until ? | CREATE TABLE table_name_78 (date_to VARCHAR, name VARCHAR) | SELECT date_to FROM table_name_78 WHERE name = "james chester" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (date_to VARCHAR, name VARCHAR) Question: When was james chester loaned out until ? [/INST] SELECT date_to FROM table_name_78 WHERE name = "james chester" </s> |
Where did the player loaned out on 27 november 2008 move to ? | CREATE TABLE table_name_65 (moving_to VARCHAR, date_from VARCHAR) | SELECT moving_to FROM table_name_65 WHERE date_from = "27 november 2008" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (moving_to VARCHAR, date_from VARCHAR) Question: Where did the player loaned out on 27 november 2008 move to ? [/INST] SELECT moving_to FROM table_name_65 WHERE date_from = "27 november 2008" </s> |
When was ron-robert zieler loaned out until ? | CREATE TABLE table_name_90 (date_to VARCHAR, name VARCHAR) | SELECT date_to FROM table_name_90 WHERE name = "ron-robert zieler" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (date_to VARCHAR, name VARCHAR) Question: When was ron-robert zieler loaned out until ? [/INST] SELECT date_to FROM table_name_90 WHERE name = "ron-robert zieler" </s> |
Where did the player in Pos mf, move to until 30 june 2009 ? | CREATE TABLE table_name_18 (moving_to VARCHAR, date_to VARCHAR, pos VARCHAR) | SELECT moving_to FROM table_name_18 WHERE date_to = "30 june 2009" AND pos = "mf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (moving_to VARCHAR, date_to VARCHAR, pos VARCHAR) Question: Where did the player in Pos mf, move to until 30 june 2009 ? [/INST] SELECT moving_to FROM table_name_18 WHERE date_to = "30 june 2009" A... |
What is the name of the manager who was replaced by michael skibbe? | CREATE TABLE table_name_87 (name VARCHAR, replacement VARCHAR) | SELECT name FROM table_name_87 WHERE replacement = "michael skibbe" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (name VARCHAR, replacement VARCHAR) Question: What is the name of the manager who was replaced by michael skibbe? [/INST] SELECT name FROM table_name_87 WHERE replacement = "michael skibbe" </s> |
What is the club the used aykut kocaman as the replacement? | CREATE TABLE table_name_22 (club VARCHAR, replacement VARCHAR) | SELECT club FROM table_name_22 WHERE replacement = "aykut kocaman" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (club VARCHAR, replacement VARCHAR) Question: What is the club the used aykut kocaman as the replacement? [/INST] SELECT club FROM table_name_22 WHERE replacement = "aykut kocaman" </s> |
What is the date of appointment of nejat biyedić? | CREATE TABLE table_name_80 (date_of_appointment VARCHAR, name VARCHAR) | SELECT date_of_appointment FROM table_name_80 WHERE name = "nejat biyedić" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (date_of_appointment VARCHAR, name VARCHAR) Question: What is the date of appointment of nejat biyedić? [/INST] SELECT date_of_appointment FROM table_name_80 WHERE name = "nejat biyedić" </s> |
When did they play at the wachovia center? | CREATE TABLE table_name_75 (date VARCHAR, location_attendance VARCHAR) | SELECT date FROM table_name_75 WHERE location_attendance = "wachovia center" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (date VARCHAR, location_attendance VARCHAR) Question: When did they play at the wachovia center? [/INST] SELECT date FROM table_name_75 WHERE location_attendance = "wachovia center" </s> |
What game number was played at amway arena? | CREATE TABLE table_name_86 (game VARCHAR, location_attendance VARCHAR) | SELECT game FROM table_name_86 WHERE location_attendance = "amway arena" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (game VARCHAR, location_attendance VARCHAR) Question: What game number was played at amway arena? [/INST] SELECT game FROM table_name_86 WHERE location_attendance = "amway arena" </s> |
How many medals were won total for the country that won 1 silver and was ranked 2 or lower? | CREATE TABLE table_name_18 (total VARCHAR, silver VARCHAR, rank VARCHAR) | SELECT COUNT(total) FROM table_name_18 WHERE silver = 1 AND rank < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (total VARCHAR, silver VARCHAR, rank VARCHAR) Question: How many medals were won total for the country that won 1 silver and was ranked 2 or lower? [/INST] SELECT COUNT(total) FROM table_name_18 WH... |
How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4? | CREATE TABLE table_name_65 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT COUNT(silver) FROM table_name_65 WHERE gold > 0 AND rank > 1 AND total < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_65 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR) Question: How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4? [/INST] SELECT COUN... |
How many bronzes were won by the country with a total higher than 5? | CREATE TABLE table_name_25 (bronze INTEGER, total INTEGER) | SELECT SUM(bronze) FROM table_name_25 WHERE total > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (bronze INTEGER, total INTEGER) Question: How many bronzes were won by the country with a total higher than 5? [/INST] SELECT SUM(bronze) FROM table_name_25 WHERE total > 5 </s> |
How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0? | CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, silver VARCHAR) | SELECT SUM(bronze) FROM table_name_34 WHERE rank > 3 AND silver > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, silver VARCHAR) Question: How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0? [/INST] SELECT SUM(bronze) FROM tabl... |
What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0? | CREATE TABLE table_name_28 (other INTEGER, us_open_cup VARCHAR, concacaf VARCHAR) | SELECT MAX(other) FROM table_name_28 WHERE us_open_cup > 0 AND concacaf = 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (other INTEGER, us_open_cup VARCHAR, concacaf VARCHAR) Question: What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0? [/INST] SELECT MAX(other) FROM table... |
Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534? | CREATE TABLE table_name_41 (subregion VARCHAR, no_p VARCHAR, pop_area__1_km²_ VARCHAR) | SELECT subregion FROM table_name_41 WHERE no_p = 4 AND pop_area__1_km²_ = 534 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (subregion VARCHAR, no_p VARCHAR, pop_area__1_km²_ VARCHAR) Question: Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534? [/INST] SELECT subregion FROM table_name_41 WHERE no_p = 4 AND... |
Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha? | CREATE TABLE table_name_84 (pop_area__1_km²_ INTEGER, no_p VARCHAR, name VARCHAR) | SELECT AVG(pop_area__1_km²_) FROM table_name_84 WHERE no_p > 1 AND name = "albergaria-a-velha" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (pop_area__1_km²_ INTEGER, no_p VARCHAR, name VARCHAR) Question: Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha? [/INST] SELECT AVG(pop_area__1_km²_) FROM table_... |
Which Area (km²) is the lowest one that has a Population of 17,089? | CREATE TABLE table_name_39 (area__km²_ INTEGER, pop VARCHAR) | SELECT MIN(area__km²_) FROM table_name_39 WHERE pop = 17 OFFSET 089 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (area__km²_ INTEGER, pop VARCHAR) Question: Which Area (km²) is the lowest one that has a Population of 17,089? [/INST] SELECT MIN(area__km²_) FROM table_name_39 WHERE pop = 17 OFFSET 089 ROWS </s> |
Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay? | CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR) | SELECT home_team FROM table_name_68 WHERE tie_no = "replay" AND date = "4 february 1987" AND away_team = "luton town" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR) Question: Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay? [/INST] SELECT home_te... |
Who was the away team on 31 January 1987 when the home team was Wimbledon? | CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_51 WHERE date = "31 january 1987" AND home_team = "wimbledon" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, home_team VARCHAR) Question: Who was the away team on 31 January 1987 when the home team was Wimbledon? [/INST] SELECT away_team FROM table_name_51 WHERE date = "3... |
How high is Macedonia's highest point? | CREATE TABLE table_name_53 (height__ft_ VARCHAR, country VARCHAR) | SELECT height__ft_ FROM table_name_53 WHERE country = "macedonia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (height__ft_ VARCHAR, country VARCHAR) Question: How high is Macedonia's highest point? [/INST] SELECT height__ft_ FROM table_name_53 WHERE country = "macedonia" </s> |
What is the theme with dani as the winner? | CREATE TABLE table_name_96 (theme VARCHAR, winner VARCHAR) | SELECT theme FROM table_name_96 WHERE winner = "dani" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (theme VARCHAR, winner VARCHAR) Question: What is the theme with dani as the winner? [/INST] SELECT theme FROM table_name_96 WHERE winner = "dani" </s> |
What are the notes of the patience theme? | CREATE TABLE table_name_76 (notes VARCHAR, theme VARCHAR) | SELECT notes FROM table_name_76 WHERE theme = "patience" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (notes VARCHAR, theme VARCHAR) Question: What are the notes of the patience theme? [/INST] SELECT notes FROM table_name_76 WHERE theme = "patience" </s> |
what is the round when the position is (c)? | CREATE TABLE table_name_85 (round INTEGER, position VARCHAR) | SELECT MAX(round) FROM table_name_85 WHERE position = "(c)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (round INTEGER, position VARCHAR) Question: what is the round when the position is (c)? [/INST] SELECT MAX(round) FROM table_name_85 WHERE position = "(c)" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.