instruction stringlengths 12 244 | input stringlengths 27 489 | output stringlengths 18 557 | text stringlengths 194 1.14k |
|---|---|---|---|
What year was Portal? | CREATE TABLE table_name_93 (year INTEGER, game VARCHAR) | SELECT MAX(year) FROM table_name_93 WHERE game = "portal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (year INTEGER, game VARCHAR) Question: What year was Portal? [/INST] SELECT MAX(year) FROM table_name_93 WHERE game = "portal" </s> |
Who was the developer(s) of the genre Adventure? | CREATE TABLE table_name_22 (developer_s_ VARCHAR, genre VARCHAR) | SELECT developer_s_ FROM table_name_22 WHERE genre = "adventure" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (developer_s_ VARCHAR, genre VARCHAR) Question: Who was the developer(s) of the genre Adventure? [/INST] SELECT developer_s_ FROM table_name_22 WHERE genre = "adventure" </s> |
What's the platform of the genre RPG? | CREATE TABLE table_name_80 (platform_s_ VARCHAR, genre VARCHAR) | SELECT platform_s_ FROM table_name_80 WHERE genre = "rpg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (platform_s_ VARCHAR, genre VARCHAR) Question: What's the platform of the genre RPG? [/INST] SELECT platform_s_ FROM table_name_80 WHERE genre = "rpg" </s> |
What's the genre of developer(s) Lionhead Studios? | CREATE TABLE table_name_41 (genre VARCHAR, developer_s_ VARCHAR) | SELECT genre FROM table_name_41 WHERE developer_s_ = "lionhead studios" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (genre VARCHAR, developer_s_ VARCHAR) Question: What's the genre of developer(s) Lionhead Studios? [/INST] SELECT genre FROM table_name_41 WHERE developer_s_ = "lionhead studios" </s> |
What's year was the genre Adventure? | CREATE TABLE table_name_57 (year VARCHAR, genre VARCHAR) | SELECT year FROM table_name_57 WHERE genre = "adventure" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (year VARCHAR, genre VARCHAR) Question: What's year was the genre Adventure? [/INST] SELECT year FROM table_name_57 WHERE genre = "adventure" </s> |
When was Cardinal-Deacon of S. Giorgio in Velabro elevated? | CREATE TABLE table_name_75 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR) | SELECT elevated FROM table_name_75 WHERE cardinalatial_order_and_title = "cardinal-deacon of s. giorgio in velabro" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR) Question: When was Cardinal-Deacon of S. Giorgio in Velabro elevated? [/INST] SELECT elevated FROM table_name_75 WHERE cardinalatial_order_... |
What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated? | CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR) | SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR) Question: What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated? [/INST] SELECT cardinalatial_order_and_tit... |
What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli? | CREATE TABLE table_name_49 (nationality VARCHAR, cardinalatial_order_and_title VARCHAR) | SELECT nationality FROM table_name_49 WHERE cardinalatial_order_and_title = "cardinal-priest of ss. xii apostoli" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (nationality VARCHAR, cardinalatial_order_and_title VARCHAR) Question: What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli? [/INST]... |
What Tournament had Jack Nicklaus as Runner(s)-up? | CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR) | SELECT tournament FROM table_name_47 WHERE runner_s__up = "jack nicklaus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR) Question: What Tournament had Jack Nicklaus as Runner(s)-up? [/INST] SELECT tournament FROM table_name_47 WHERE runner_s__up = "jack nicklaus" </s> |
What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)? | CREATE TABLE table_name_55 (date VARCHAR, winning_score VARCHAR) | SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271) | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (date VARCHAR, winning_score VARCHAR) Question: What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)? [/INST] SELECT date FROM table_name_55 WHERE winning_score = −9(65 -... |
What is the Winning Score of the Tournament with Jack Nicklaus as Runner(s)-up? | CREATE TABLE table_name_15 (winning_score VARCHAR, runner_s__up VARCHAR) | SELECT winning_score FROM table_name_15 WHERE runner_s__up = "jack nicklaus" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (winning_score VARCHAR, runner_s__up VARCHAR) Question: What is the Winning Score of the Tournament with Jack Nicklaus as Runner(s)-up? [/INST] SELECT winning_score FROM table_name_15 WHERE runner_... |
What is the Runner(s)-up of the Kemper Open Tournament? | CREATE TABLE table_name_70 (runner_s__up VARCHAR, tournament VARCHAR) | SELECT runner_s__up FROM table_name_70 WHERE tournament = "kemper open" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (runner_s__up VARCHAR, tournament VARCHAR) Question: What is the Runner(s)-up of the Kemper Open Tournament? [/INST] SELECT runner_s__up FROM table_name_70 WHERE tournament = "kemper open" </s> |
What week has December 19, 2004 as the date? | CREATE TABLE table_name_33 (week VARCHAR, date VARCHAR) | SELECT week FROM table_name_33 WHERE date = "december 19, 2004" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (week VARCHAR, date VARCHAR) Question: What week has December 19, 2004 as the date? [/INST] SELECT week FROM table_name_33 WHERE date = "december 19, 2004" </s> |
What is the highest week that has espn 8:30pm as the TV time? | CREATE TABLE table_name_74 (week INTEGER, tv_time VARCHAR) | SELECT MAX(week) FROM table_name_74 WHERE tv_time = "espn 8:30pm" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (week INTEGER, tv_time VARCHAR) Question: What is the highest week that has espn 8:30pm as the TV time? [/INST] SELECT MAX(week) FROM table_name_74 WHERE tv_time = "espn 8:30pm" </s> |
What result has miami dolphins as the opponent? | CREATE TABLE table_name_36 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_36 WHERE opponent = "miami dolphins" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (result VARCHAR, opponent VARCHAR) Question: What result has miami dolphins as the opponent? [/INST] SELECT result FROM table_name_36 WHERE opponent = "miami dolphins" </s> |
What is the Time of the swimmer from Chinese Taipei in Heat 3? | CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR) | SELECT time FROM table_name_88 WHERE heat = 3 AND lane > 3 AND nationality = "chinese taipei" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR) Question: What is the Time of the swimmer from Chinese Taipei in Heat 3? [/INST] SELECT time FROM table_name_88 WHERE heat = 3 AND la... |
What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills? | CREATE TABLE table_name_88 (dolphins_points INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT AVG(dolphins_points) FROM table_name_88 WHERE opponent = "buffalo bills" AND attendance < 69 OFFSET 313 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (dolphins_points INTEGER, opponent VARCHAR, attendance VARCHAR) Question: What's the Dolphin Points when the attendance was less than 69,313 and had an opponent of the Buffalo Bills? [/INST] SELECT... |
What's the game with an attendance of 71,962? | CREATE TABLE table_name_53 (game INTEGER, attendance VARCHAR) | SELECT MIN(game) FROM table_name_53 WHERE attendance = 71 OFFSET 962 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (game INTEGER, attendance VARCHAR) Question: What's the game with an attendance of 71,962? [/INST] SELECT MIN(game) FROM table_name_53 WHERE attendance = 71 OFFSET 962 ROWS </s> |
What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3? | CREATE TABLE table_name_8 (Final VARCHAR, week_1 VARCHAR, week_3 VARCHAR) | SELECT Final AS week_12 FROM table_name_8 WHERE week_1 = "deepak p rahul" AND week_3 = "amit carol" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (Final VARCHAR, week_1 VARCHAR, week_3 VARCHAR) Question: What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3? [/INST] SELECT Final AS we... |
Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6? | CREATE TABLE table_name_60 (week_6 VARCHAR, week_3 VARCHAR, week_1 VARCHAR) | SELECT week_6 FROM table_name_60 WHERE week_3 = "kashmera rakhi" AND week_1 = "amit bobby" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (week_6 VARCHAR, week_3 VARCHAR, week_1 VARCHAR) Question: Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6? [/INST] SELECT week_6 FROM tabl... |
Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8? | CREATE TABLE table_name_52 (week_8 VARCHAR, week_1 VARCHAR) | SELECT week_8 FROM table_name_52 WHERE week_1 = "carol roopali" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (week_8 VARCHAR, week_1 VARCHAR) Question: Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8? [/INST] SELECT week_8 FROM table_name_52 WHERE week_1 = "carol roopali" <... |
What is the IHSAA class of Centerville, which plays IHSAA class AA football? | CREATE TABLE table_name_92 (ihsaa_class VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) | SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (ihsaa_class VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) Question: What is the IHSAA class of Centerville, which plays IHSAA class AA football? [/INST] SELECT ihsaa_class FROM table_name... |
Winchester Community school, which plays IHSAA class AA football, is located where? | CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) | SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) Question: Winchester Community school, which plays IHSAA class AA football, is located where? [/INST] SELECT location FROM table_nam... |
What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers? | CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR) | SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = "tigers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR) Question: What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers? [/INST] SELECT ihsaa_class FROM table_nam... |
What county has a school with less than 301 students and plays IHSAA class A football? | CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR) | SELECT county FROM table_name_81 WHERE ihsaa_football_class = "a" AND size < 301 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR) Question: What county has a school with less than 301 students and plays IHSAA class A football? [/INST] SELECT county FROM table_name_8... |
What is the lowest game when the score is 102-104? | CREATE TABLE table_name_53 (game INTEGER, score VARCHAR) | SELECT MIN(game) FROM table_name_53 WHERE score = "102-104" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (game INTEGER, score VARCHAR) Question: What is the lowest game when the score is 102-104? [/INST] SELECT MIN(game) FROM table_name_53 WHERE score = "102-104" </s> |
what is the score for game 4? | CREATE TABLE table_name_49 (score VARCHAR, game VARCHAR) | SELECT score FROM table_name_49 WHERE game = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (score VARCHAR, game VARCHAR) Question: what is the score for game 4? [/INST] SELECT score FROM table_name_49 WHERE game = 4 </s> |
what is the series for game 4? | CREATE TABLE table_name_88 (series VARCHAR, game VARCHAR) | SELECT series FROM table_name_88 WHERE game = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (series VARCHAR, game VARCHAR) Question: what is the series for game 4? [/INST] SELECT series FROM table_name_88 WHERE game = 4 </s> |
Which Pendle has a Burnley smaller than 0? | CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER) | SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER) Question: Which Pendle has a Burnley smaller than 0? [/INST] SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 0 </s> |
How much Rossendale has a Fylde smaller than 0? | CREATE TABLE table_name_95 (rossendale VARCHAR, fylde INTEGER) | SELECT COUNT(rossendale) FROM table_name_95 WHERE fylde < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (rossendale VARCHAR, fylde INTEGER) Question: How much Rossendale has a Fylde smaller than 0? [/INST] SELECT COUNT(rossendale) FROM table_name_95 WHERE fylde < 0 </s> |
How much Hyndburn has a Fylde larger than 3? | CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER) | SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER) Question: How much Hyndburn has a Fylde larger than 3? [/INST] SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3 </s> |
How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0? | CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR) | SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR) Question: How much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0? [/INST] SELECT SUM(burnley) FROM table_name_97 WHERE fyld... |
What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor? | CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR) | SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR) Question: What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor? [/INST] SELECT years FRO... |
What years have a duration of 18 years, and patrizio rispo as the actor? | CREATE TABLE table_name_26 (years VARCHAR, duration VARCHAR, actor VARCHAR) | SELECT years FROM table_name_26 WHERE duration = "18 years" AND actor = "patrizio rispo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (years VARCHAR, duration VARCHAR, actor VARCHAR) Question: What years have a duration of 18 years, and patrizio rispo as the actor? [/INST] SELECT years FROM table_name_26 WHERE duration = "18 year... |
What are the years that have a duration of 15 years and giulia poggi as the character? | CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR) | SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR) Question: What are the years that have a duration of 15 years and giulia poggi as the character? [/INST] SELECT years FROM table_name_33 WHERE d... |
What years have claudia ruffo as the actor? | CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR) | SELECT years FROM table_name_18 WHERE actor = "claudia ruffo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR) Question: What years have claudia ruffo as the actor? [/INST] SELECT years FROM table_name_18 WHERE actor = "claudia ruffo" </s> |
What is the duration that has pietro genuardi as the actor? | CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR) | SELECT duration FROM table_name_42 WHERE actor = "pietro genuardi" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR) Question: What is the duration that has pietro genuardi as the actor? [/INST] SELECT duration FROM table_name_42 WHERE actor = "pietro genuardi" </s> |
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor? | CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR) | SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR) Question: What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor? [/INST] SELECT soap_opera FROM table... |
What is the lowest attendance for December 14, 1958 after week 12? | CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR) Question: What is the lowest attendance for December 14, 1958 after week 12? [/INST] SELECT MIN(attendance) FROM table_name_76 WHERE date = "decembe... |
What is the total for the week in the game against the Chicago Bears | CREATE TABLE table_name_38 (week VARCHAR, opponent VARCHAR) | SELECT COUNT(week) FROM table_name_38 WHERE opponent = "chicago bears" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (week VARCHAR, opponent VARCHAR) Question: What is the total for the week in the game against the Chicago Bears [/INST] SELECT COUNT(week) FROM table_name_38 WHERE opponent = "chicago bears" </s> |
What is the highest attendance for December 14, 1958 for after week 12 | CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) | SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 12 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) Question: What is the highest attendance for December 14, 1958 for after week 12 [/INST] SELECT MAX(attendance) FROM table_name_40 WHERE date = "dec... |
What is the Outcome of the Match played after 2003 with a Score of 6–0, 6–3? | CREATE TABLE table_name_88 (outcome VARCHAR, year VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_88 WHERE year > 2003 AND score = "6–0, 6–3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (outcome VARCHAR, year VARCHAR, score VARCHAR) Question: What is the Outcome of the Match played after 2003 with a Score of 6–0, 6–3? [/INST] SELECT outcome FROM table_name_88 WHERE year > 2003 AND... |
What is the Outcome of the match with a Score of 6–1, 6–1? | CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR) | SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR) Question: What is the Outcome of the match with a Score of 6–1, 6–1? [/INST] SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1" </s> |
Who has rank 5? | CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR) | SELECT name FROM table_name_23 WHERE rank = 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR) Question: Who has rank 5? [/INST] SELECT name FROM table_name_23 WHERE rank = 5 </s> |
Which nationality has rank 4? | CREATE TABLE table_name_90 (nationality VARCHAR, rank VARCHAR) | SELECT nationality FROM table_name_90 WHERE rank = 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (nationality VARCHAR, rank VARCHAR) Question: Which nationality has rank 4? [/INST] SELECT nationality FROM table_name_90 WHERE rank = 4 </s> |
What title was used in the nomination of Matrimonio All'Italiana? | CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) Question: What title was used in the nomination of Matrimonio All'Italiana? [/INST] SELECT film_title_used_in_nomination FROM table_na... |
What language was the film Pelle Erobreren, which received the best actor nomination, in? | CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR) | SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR) Question: What language was the film Pelle Erobreren, which received the best actor nomination, in? [/INST] SELECT language FROM table_n... |
What title was used in the nomination of the Spanish language film Traffic? | CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = "spanish" AND original_title = "traffic" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR) Question: What title was used in the nomination of the Spanish language film Traffic? [/INST] SELECT film_title_use... |
What title was used in the nomination of Una Giornata Particolare? | CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_name_20 WHERE original_title = "una giornata particolare" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) Question: What title was used in the nomination of Una Giornata Particolare? [/INST] SELECT film_title_used_in_nomination FROM table_... |
What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand? | CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR) | SELECT date FROM table_name_98 WHERE position = "back" AND year > 1964 AND test_debut = "1st rl test v new zealand" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR) Question: What date has a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand? [/INST] SELECT date FR... |
What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand? | CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR) | SELECT position FROM table_name_92 WHERE year < 1907 AND cross_code_debut = "inaugural rl test v new zealand" AND test_debut = "inaugural ru test v new zealand" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR) Question: What is the position earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a te... |
What is the cross-code debut later than 1958 for Dick Thornett? | CREATE TABLE table_name_87 (cross_code_debut VARCHAR, year VARCHAR, player VARCHAR) | SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (cross_code_debut VARCHAR, year VARCHAR, player VARCHAR) Question: What is the cross-code debut later than 1958 for Dick Thornett? [/INST] SELECT cross_code_debut FROM table_name_87 WHERE year > 19... |
What position has a Cross-code debut of 1st ru test v ireland? | CREATE TABLE table_name_79 (position VARCHAR, cross_code_debut VARCHAR) | SELECT position FROM table_name_79 WHERE cross_code_debut = "1st ru test v ireland" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (position VARCHAR, cross_code_debut VARCHAR) Question: What position has a Cross-code debut of 1st ru test v ireland? [/INST] SELECT position FROM table_name_79 WHERE cross_code_debut = "1st ru tes... |
What was the time for the match with away team Shatin? | CREATE TABLE table_name_4 (time VARCHAR, away_team VARCHAR) | SELECT time FROM table_name_4 WHERE away_team = "shatin" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (time VARCHAR, away_team VARCHAR) Question: What was the time for the match with away team Shatin? [/INST] SELECT time FROM table_name_4 WHERE away_team = "shatin" </s> |
What was the time for the match with away team Convoy Sun Hei Team A? | CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR) | SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR) Question: What was the time for the match with away team Convoy Sun Hei Team A? [/INST] SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a" </... |
What was the away team for the match that had a time of 18:30? | CREATE TABLE table_name_45 (away_team VARCHAR, time VARCHAR) | SELECT away_team FROM table_name_45 WHERE time = "18:30" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (away_team VARCHAR, time VARCHAR) Question: What was the away team for the match that had a time of 18:30? [/INST] SELECT away_team FROM table_name_45 WHERE time = "18:30" </s> |
What was the time for the match with away team Mutual Team B? | CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR) | SELECT time FROM table_name_28 WHERE away_team = "mutual team b" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR) Question: What was the time for the match with away team Mutual Team B? [/INST] SELECT time FROM table_name_28 WHERE away_team = "mutual team b" </s> |
What was the time for the match that had a a home team of HKSSF? | CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR) | SELECT time FROM table_name_17 WHERE home_team = "hkssf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR) Question: What was the time for the match that had a a home team of HKSSF? [/INST] SELECT time FROM table_name_17 WHERE home_team = "hkssf" </s> |
How many people attended on december 26, 1982? | CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) Question: How many people attended on december 26, 1982? [/INST] SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982" </s> |
How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6? | CREATE TABLE table_name_12 (byes VARCHAR, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR) | SELECT COUNT(byes) FROM table_name_12 WHERE wins < 11 AND wimmera_fl = "minyip murtoa" AND losses < 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (byes VARCHAR, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR) Question: How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6? [/INST] SELECT COUN... |
Which Losses have an Against smaller than 1018, and Wins smaller than 14? | CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR) | SELECT AVG(losses) FROM table_name_42 WHERE against < 1018 AND wins < 14 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR) Question: Which Losses have an Against smaller than 1018, and Wins smaller than 14? [/INST] SELECT AVG(losses) FROM table_name_42 WHERE against < 101... |
Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers? | CREATE TABLE table_name_56 (byes INTEGER, against VARCHAR, wimmera_fl VARCHAR) | SELECT MIN(byes) FROM table_name_56 WHERE against > 1018 AND wimmera_fl = "horsham diggers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (byes INTEGER, against VARCHAR, wimmera_fl VARCHAR) Question: Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers? [/INST] SELECT MIN(byes) FROM table_name_56 WHERE aga... |
Which Losses have a Wimmera FL of minyip murtoa? | CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR) | SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR) Question: Which Losses have a Wimmera FL of minyip murtoa? [/INST] SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa" </s> |
Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0? | CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR) | SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR) Question: Which Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0? [/INST] SELECT ... |
Which country has Spence in the name section? | CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR) | SELECT country FROM table_name_6 WHERE name = "spence" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR) Question: Which country has Spence in the name section? [/INST] SELECT country FROM table_name_6 WHERE name = "spence" </s> |
Which country has the status of transferred, moving to of released, and Solano as the listed name? | CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR) | SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR) Question: Which country has the status of transferred, moving to of released, and Solano as the listed name? [/INST] SELECT countr... |
What is the transfer fee for the country that has the name McCartney listed? | CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR) Question: What is the transfer fee for the country that has the name McCartney listed? [/INST] SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney" <... |
What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient? | CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR) | SELECT name FROM table_name_57 WHERE status = "loaned" AND moving_to = "leyton orient" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR) Question: What is the name listed for the country that has a status of loaned and a moving to listed as leyton orient? [/INST] SELECT name FROM tab... |
What is the transfer fee for the country of Nir? | CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR) | SELECT transfer_fee FROM table_name_53 WHERE country = "nir" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR) Question: What is the transfer fee for the country of Nir? [/INST] SELECT transfer_fee FROM table_name_53 WHERE country = "nir" </s> |
Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? | CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) | SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) Question: Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? [/INST] SELECT faste... |
What date was the circuit, snetterton, when riki christodoulou had the fastest lap? | CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR) | SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR) Question: What date was the circuit, snetterton, when riki christodoulou had the fastest lap? [/INST] SELECT date FROM table_name_10 WHERE circu... |
who had the pole position at rockingham circuit with adam christodoulou having the fastest lap? | CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR) | SELECT pole_position FROM table_name_10 WHERE fastest_lap = "adam christodoulou" AND circuit = "rockingham" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR) Question: who had the pole position at rockingham circuit with adam christodoulou having the fastest lap? [/INST] SELECT pole_position ... |
What bonus points have 448 as the points against? | CREATE TABLE table_name_47 (bonus_points VARCHAR, points_against VARCHAR) | SELECT bonus_points FROM table_name_47 WHERE points_against = "448" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (bonus_points VARCHAR, points_against VARCHAR) Question: What bonus points have 448 as the points against? [/INST] SELECT bonus_points FROM table_name_47 WHERE points_against = "448" </s> |
What points for have 30 as the game, and 73 as the total points? | CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR) | SELECT points_for FROM table_name_92 WHERE games = "30" AND total_points = "73" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR) Question: What points for have 30 as the game, and 73 as the total points? [/INST] SELECT points_for FROM table_name_92 WHERE games = "30" ... |
What drawn has 416 as the points for and 533 as the points against? | CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR) | SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR) Question: What drawn has 416 as the points for and 533 as the points against? [/INST] SELECT drawn FROM table_name_49 WHERE points_for = ... |
What match points have 755 as the points against? | CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR) | SELECT match_points FROM table_name_8 WHERE points_against = "755" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR) Question: What match points have 755 as the points against? [/INST] SELECT match_points FROM table_name_8 WHERE points_against = "755" </s> |
What games have colomiers as the club? | CREATE TABLE table_name_47 (games VARCHAR, club VARCHAR) | SELECT games FROM table_name_47 WHERE club = "colomiers" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (games VARCHAR, club VARCHAR) Question: What games have colomiers as the club? [/INST] SELECT games FROM table_name_47 WHERE club = "colomiers" </s> |
Which lost has 84 as the match points? | CREATE TABLE table_name_52 (lost VARCHAR, match_points VARCHAR) | SELECT lost FROM table_name_52 WHERE match_points = "84" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (lost VARCHAR, match_points VARCHAR) Question: Which lost has 84 as the match points? [/INST] SELECT lost FROM table_name_52 WHERE match_points = "84" </s> |
How many constituents does udaipura have? | CREATE TABLE table_name_37 (constituency_number VARCHAR, name VARCHAR) | SELECT constituency_number FROM table_name_37 WHERE name = "udaipura" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (constituency_number VARCHAR, name VARCHAR) Question: How many constituents does udaipura have? [/INST] SELECT constituency_number FROM table_name_37 WHERE name = "udaipura" </s> |
What lane was Henrique Barbosa in? | CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR) | SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR) Question: What lane was Henrique Barbosa in? [/INST] SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa" </s> |
What game was before 2010 and was a role-playing game? | CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR) | SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR) Question: What game was before 2010 and was a role-playing game? [/INST] SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game"... |
What was the platform of Red Dead Redemption? | CREATE TABLE table_name_11 (platform_s_ VARCHAR, game VARCHAR) | SELECT platform_s_ FROM table_name_11 WHERE game = "red dead redemption" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (platform_s_ VARCHAR, game VARCHAR) Question: What was the platform of Red Dead Redemption? [/INST] SELECT platform_s_ FROM table_name_11 WHERE game = "red dead redemption" </s> |
Who was the developer of Wii? | CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR) | SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR) Question: Who was the developer of Wii? [/INST] SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii" </s> |
What year was The Walking Dead? | CREATE TABLE table_name_95 (year VARCHAR, game VARCHAR) | SELECT COUNT(year) FROM table_name_95 WHERE game = "the walking dead" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (year VARCHAR, game VARCHAR) Question: What year was The Walking Dead? [/INST] SELECT COUNT(year) FROM table_name_95 WHERE game = "the walking dead" </s> |
What was the platform when the developer was Telltale Games? | CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR) | SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR) Question: What was the platform when the developer was Telltale Games? [/INST] SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games... |
What is the game of developer Rockstar Games? | CREATE TABLE table_name_71 (game VARCHAR, developer_s_ VARCHAR) | SELECT game FROM table_name_71 WHERE developer_s_ = "rockstar games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (game VARCHAR, developer_s_ VARCHAR) Question: What is the game of developer Rockstar Games? [/INST] SELECT game FROM table_name_71 WHERE developer_s_ = "rockstar games" </s> |
How much Elevation (m) has a Prominence (m) larger than 2,876? | CREATE TABLE table_name_18 (elevation__m_ VARCHAR, prominence__m_ INTEGER) | SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ > 2 OFFSET 876 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (elevation__m_ VARCHAR, prominence__m_ INTEGER) Question: How much Elevation (m) has a Prominence (m) larger than 2,876? [/INST] SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ ... |
When was millwall the home team? | CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_11 WHERE home_team = "millwall" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR) Question: When was millwall the home team? [/INST] SELECT date FROM table_name_11 WHERE home_team = "millwall" </s> |
What was the score when Arsenal was the away team? | CREATE TABLE table_name_49 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_49 WHERE away_team = "arsenal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (score VARCHAR, away_team VARCHAR) Question: What was the score when Arsenal was the away team? [/INST] SELECT score FROM table_name_49 WHERE away_team = "arsenal" </s> |
Which away team had a Score of 2–0? | CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR) | SELECT away_team FROM table_name_53 WHERE score = "2–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR) Question: Which away team had a Score of 2–0? [/INST] SELECT away_team FROM table_name_53 WHERE score = "2–0" </s> |
When was Arsenal was the away team? | CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_17 WHERE away_team = "arsenal" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR) Question: When was Arsenal was the away team? [/INST] SELECT date FROM table_name_17 WHERE away_team = "arsenal" </s> |
What's the date released when there was 9.7% of Green communist? | CREATE TABLE table_name_53 (date_released VARCHAR, green_communist VARCHAR) | SELECT date_released FROM table_name_53 WHERE green_communist = "9.7%" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (date_released VARCHAR, green_communist VARCHAR) Question: What's the date released when there was 9.7% of Green communist? [/INST] SELECT date_released FROM table_name_53 WHERE green_communist = "... |
What's the green communist when Euroteste/JN is the polling Institute? | CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR) | SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR) Question: What's the green communist when Euroteste/JN is the polling Institute? [/INST] SELECT green_communist FROM table_name_41 WHERE polling... |
What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44? | CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR) | SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR) Question: What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 4... |
What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1? | CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) | SELECT MIN(gold) FROM table_name_16 WHERE bronze = 0 AND rank = "19" AND silver < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) Question: What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1? [/INST] S... |
What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0? | CREATE TABLE table_name_18 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT MAX(bronze) FROM table_name_18 WHERE silver < 1 AND nation = "belgium (bel)" AND gold < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) Question: What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the... |
With silver medals less than 1, and total medals less than 2, what is the most bronze medals? | CREATE TABLE table_name_83 (bronze INTEGER, silver VARCHAR, total VARCHAR) | SELECT MAX(bronze) FROM table_name_83 WHERE silver < 1 AND total < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_83 (bronze INTEGER, silver VARCHAR, total VARCHAR) Question: With silver medals less than 1, and total medals less than 2, what is the most bronze medals? [/INST] SELECT MAX(bronze) FROM table_name_83... |
Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2? | CREATE TABLE table_name_80 (byes VARCHAR, wins VARCHAR, losses VARCHAR) | SELECT COUNT(byes) FROM table_name_80 WHERE wins = 14 AND losses > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_80 (byes VARCHAR, wins VARCHAR, losses VARCHAR) Question: Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2? [/INST] SELECT COUNT(byes) FROM table_name_80 ... |
Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7? | CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR) | SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR) Question: Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7? [/INST] SELECT AVG(wins) FROM table_name_11 W... |
What was the date for the game that had a Location/Attendance of the spectrum? | CREATE TABLE table_name_92 (date VARCHAR, location_attendance VARCHAR) | SELECT date FROM table_name_92 WHERE location_attendance = "the spectrum" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (date VARCHAR, location_attendance VARCHAR) Question: What was the date for the game that had a Location/Attendance of the spectrum? [/INST] SELECT date FROM table_name_92 WHERE location_attendance... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.