instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
Name the film for award of £3,386 | CREATE TABLE table_name_66 (film VARCHAR, award VARCHAR) | SELECT film FROM table_name_66 WHERE award = "£3,386" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (film VARCHAR, award VARCHAR) Question: Name the film for award of £3,386 [/INST] SELECT film FROM table_name_66 WHERE award = "£3,386" </s> |
Name the venue for 2004 and position of 25th | CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR) | SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR) Question: Name the venue for 2004 and position of 25th [/INST] SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004 </s> |
Name the venue for 27th position | CREATE TABLE table_name_1 (venue VARCHAR, position VARCHAR) | SELECT venue FROM table_name_1 WHERE position = "27th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (venue VARCHAR, position VARCHAR) Question: Name the venue for 27th position [/INST] SELECT venue FROM table_name_1 WHERE position = "27th" </s> |
What was the score of the draw in the 2005 FIFA Confederations Cup? | CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, result VARCHAR) | SELECT score FROM table_name_24 WHERE competition = "2005 fifa confederations cup" AND result = "draw" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, result VARCHAR) Question: What was the score of the draw in the 2005 FIFA Confederations Cup? [/INST] SELECT score FROM table_name_24 WHERE competition = "2005 fifa confederations cup" AND result = "draw" </s> |
What is the highest Peroutka with 46 others, and less than 15 electors? | CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR) | SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR) Question: What is the highest Peroutka with 46 others, and less than 15 electors? [/INST] SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15 </s> |
Who came in 3rd place in 1990? | CREATE TABLE table_name_20 (year VARCHAR) | SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (year VARCHAR) Question: Who came in 3rd place in 1990? [/INST] SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990" </s> |
Which class Pos has a Team of jml team panoz? | CREATE TABLE table_name_71 (class VARCHAR, team VARCHAR) | SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (class VARCHAR, team VARCHAR) Question: Which class Pos has a Team of jml team panoz? [/INST] SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz" </s> |
Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps? | CREATE TABLE table_name_25 (class VARCHAR, laps VARCHAR, year VARCHAR, team VARCHAR) | SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (class VARCHAR, laps VARCHAR, year VARCHAR, team VARCHAR) Question: Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps? [/INST] SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327 </s> |
What is the final result of the team that has Simara as No.5? | CREATE TABLE table_name_11 (final VARCHAR, no5 VARCHAR) | SELECT final FROM table_name_11 WHERE no5 = "simara" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (final VARCHAR, no5 VARCHAR) Question: What is the final result of the team that has Simara as No.5? [/INST] SELECT final FROM table_name_11 WHERE no5 = "simara" </s> |
Which Winning Driver has a Second Driver of jimmy bryan? | CREATE TABLE table_name_25 (winning_driver VARCHAR, second_driver VARCHAR) | SELECT winning_driver FROM table_name_25 WHERE second_driver = "jimmy bryan" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (winning_driver VARCHAR, second_driver VARCHAR) Question: Which Winning Driver has a Second Driver of jimmy bryan? [/INST] SELECT winning_driver FROM table_name_25 WHERE second_driver = "jimmy bryan" </s> |
How many average Cars Entered have a Third Driver of manny ayulo? | CREATE TABLE table_name_53 (cars_entered INTEGER, third_driver VARCHAR) | SELECT AVG(cars_entered) FROM table_name_53 WHERE third_driver = "manny ayulo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (cars_entered INTEGER, third_driver VARCHAR) Question: How many average Cars Entered have a Third Driver of manny ayulo? [/INST] SELECT AVG(cars_entered) FROM table_name_53 WHERE third_driver = "manny ayulo" </s> |
What are the largest Cars Entered with a Season of 1958? | CREATE TABLE table_name_69 (cars_entered INTEGER, season VARCHAR) | SELECT MAX(cars_entered) FROM table_name_69 WHERE season = 1958 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (cars_entered INTEGER, season VARCHAR) Question: What are the largest Cars Entered with a Season of 1958? [/INST] SELECT MAX(cars_entered) FROM table_name_69 WHERE season = 1958 </s> |
What is the largest season with a Third Driver of jimmy davies? | CREATE TABLE table_name_2 (season INTEGER, third_driver VARCHAR) | SELECT MAX(season) FROM table_name_2 WHERE third_driver = "jimmy davies" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (season INTEGER, third_driver VARCHAR) Question: What is the largest season with a Third Driver of jimmy davies? [/INST] SELECT MAX(season) FROM table_name_2 WHERE third_driver = "jimmy davies" </s> |
What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959? | CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR) | SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = "rodger ward" AND season < 1959 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR) Question: What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959? [/INST] SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = "rodger ward" AND season < 1959 </s> |
What engine with more than 2 points has Brabham bt58 as Chassis? | CREATE TABLE table_name_66 (engine VARCHAR, chassis VARCHAR, points VARCHAR) | SELECT engine FROM table_name_66 WHERE chassis = "brabham bt58" AND points > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (engine VARCHAR, chassis VARCHAR, points VARCHAR) Question: What engine with more than 2 points has Brabham bt58 as Chassis? [/INST] SELECT engine FROM table_name_66 WHERE chassis = "brabham bt58" AND points > 2 </s> |
How many points did Judd v8 has in 1989? | CREATE TABLE table_name_71 (points VARCHAR, engine VARCHAR, year VARCHAR) | SELECT COUNT(points) FROM table_name_71 WHERE engine = "judd v8" AND year = 1989 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (points VARCHAR, engine VARCHAR, year VARCHAR) Question: How many points did Judd v8 has in 1989? [/INST] SELECT COUNT(points) FROM table_name_71 WHERE engine = "judd v8" AND year = 1989 </s> |
How many years has Sasol Jordan Yamaha as an Entrant? | CREATE TABLE table_name_79 (year INTEGER, entrant VARCHAR) | SELECT AVG(year) FROM table_name_79 WHERE entrant = "sasol jordan yamaha" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (year INTEGER, entrant VARCHAR) Question: How many years has Sasol Jordan Yamaha as an Entrant? [/INST] SELECT AVG(year) FROM table_name_79 WHERE entrant = "sasol jordan yamaha" </s> |
What was the record for the game that had a loss of Williams (3-1)? | CREATE TABLE table_name_30 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_30 WHERE loss = "williams (3-1)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (record VARCHAR, loss VARCHAR) Question: What was the record for the game that had a loss of Williams (3-1)? [/INST] SELECT record FROM table_name_30 WHERE loss = "williams (3-1)" </s> |
What was the score of the game that had a loss of Embree (1-2)? | CREATE TABLE table_name_98 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_98 WHERE loss = "embree (1-2)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (score VARCHAR, loss VARCHAR) Question: What was the score of the game that had a loss of Embree (1-2)? [/INST] SELECT score FROM table_name_98 WHERE loss = "embree (1-2)" </s> |
What shows for 2007 at the Olympic Games as tournament. | CREATE TABLE table_name_55 (tournament VARCHAR) | SELECT 2007 FROM table_name_55 WHERE tournament = "olympic games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (tournament VARCHAR) Question: What shows for 2007 at the Olympic Games as tournament. [/INST] SELECT 2007 FROM table_name_55 WHERE tournament = "olympic games" </s> |
What shows for 2009 when the 2012 is 1R? | CREATE TABLE table_name_5 (Id VARCHAR) | SELECT 2009 FROM table_name_5 WHERE 2012 = "1r" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (Id VARCHAR) Question: What shows for 2009 when the 2012 is 1R? [/INST] SELECT 2009 FROM table_name_5 WHERE 2012 = "1r" </s> |
What is the 2010 when the 2009 shows Q1? | CREATE TABLE table_name_50 (Id VARCHAR) | SELECT 2010 FROM table_name_50 WHERE 2009 = "q1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (Id VARCHAR) Question: What is the 2010 when the 2009 shows Q1? [/INST] SELECT 2010 FROM table_name_50 WHERE 2009 = "q1" </s> |
What is the gross revenue in 2011 for MO? | CREATE TABLE table_name_8 (gross_revenue__2011_ VARCHAR, state VARCHAR) | SELECT gross_revenue__2011_ FROM table_name_8 WHERE state = "mo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (gross_revenue__2011_ VARCHAR, state VARCHAR) Question: What is the gross revenue in 2011 for MO? [/INST] SELECT gross_revenue__2011_ FROM table_name_8 WHERE state = "mo" </s> |
Which state has the venue Tsukisamu dome? | CREATE TABLE table_name_30 (state VARCHAR, venue VARCHAR) | SELECT state FROM table_name_30 WHERE venue = "tsukisamu dome" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (state VARCHAR, venue VARCHAR) Question: Which state has the venue Tsukisamu dome? [/INST] SELECT state FROM table_name_30 WHERE venue = "tsukisamu dome" </s> |
Which city had a gross revenue in 2011 of $739,578? | CREATE TABLE table_name_92 (city VARCHAR, gross_revenue__2011_ VARCHAR) | SELECT city FROM table_name_92 WHERE gross_revenue__2011_ = "$739,578" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_92 (city VARCHAR, gross_revenue__2011_ VARCHAR) Question: Which city had a gross revenue in 2011 of $739,578? [/INST] SELECT city FROM table_name_92 WHERE gross_revenue__2011_ = "$739,578" </s> |
What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047? | CREATE TABLE table_name_28 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR) | SELECT gross_revenue__2011_ FROM table_name_28 WHERE gross_revenue__1982_ = "$1,988,047" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR) Question: What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047? [/INST] SELECT gross_revenue__2011_ FROM table_name_28 WHERE gross_revenue__1982_ = "$1,988,047" </s> |
What was the grid when the driver was Mark Webber? | CREATE TABLE table_name_96 (grid VARCHAR, driver VARCHAR) | SELECT grid FROM table_name_96 WHERE driver = "mark webber" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (grid VARCHAR, driver VARCHAR) Question: What was the grid when the driver was Mark Webber? [/INST] SELECT grid FROM table_name_96 WHERE driver = "mark webber" </s> |
Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600? | CREATE TABLE table_name_1 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR) | SELECT driver FROM table_name_1 WHERE constructor = "renault" AND time_retired = "+38.600" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR) Question: Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600? [/INST] SELECT driver FROM table_name_1 WHERE constructor = "renault" AND time_retired = "+38.600" </s> |
How many laps were there when the Time/Retired was +1:00.003? | CREATE TABLE table_name_73 (laps VARCHAR, time_retired VARCHAR) | SELECT laps FROM table_name_73 WHERE time_retired = "+1:00.003" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (laps VARCHAR, time_retired VARCHAR) Question: How many laps were there when the Time/Retired was +1:00.003? [/INST] SELECT laps FROM table_name_73 WHERE time_retired = "+1:00.003" </s> |
How many laps were there when the Time/Retired was +14.403? | CREATE TABLE table_name_45 (laps VARCHAR, time_retired VARCHAR) | SELECT laps FROM table_name_45 WHERE time_retired = "+14.403" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (laps VARCHAR, time_retired VARCHAR) Question: How many laps were there when the Time/Retired was +14.403? [/INST] SELECT laps FROM table_name_45 WHERE time_retired = "+14.403" </s> |
Who was the driver when there were 35 laps? | CREATE TABLE table_name_10 (driver VARCHAR, laps VARCHAR) | SELECT driver FROM table_name_10 WHERE laps = "35" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (driver VARCHAR, laps VARCHAR) Question: Who was the driver when there were 35 laps? [/INST] SELECT driver FROM table_name_10 WHERE laps = "35" </s> |
How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso? | CREATE TABLE table_name_7 (laps VARCHAR, constructor VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_7 WHERE constructor = "renault" AND driver = "fernando alonso" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (laps VARCHAR, constructor VARCHAR, driver VARCHAR) Question: How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso? [/INST] SELECT laps FROM table_name_7 WHERE constructor = "renault" AND driver = "fernando alonso" </s> |
What's the Street address with a Name of New York Life Insurance building? | CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR) | SELECT street_address FROM table_name_74 WHERE name = "new york life insurance building" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR) Question: What's the Street address with a Name of New York Life Insurance building? [/INST] SELECT street_address FROM table_name_74 WHERE name = "new york life insurance building" </s> |
What's the Years as tallest with a Street address of 324 E. 11th Street? | CREATE TABLE table_name_12 (years_as_tallest VARCHAR, street_address VARCHAR) | SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (years_as_tallest VARCHAR, street_address VARCHAR) Question: What's the Years as tallest with a Street address of 324 E. 11th Street? [/INST] SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street" </s> |
What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue? | CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR) | SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR) Question: What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue? [/INST] SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue" </s> |
What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000? | CREATE TABLE table_name_40 (capacity INTEGER, city VARCHAR, enrollment VARCHAR) | SELECT AVG(capacity) FROM table_name_40 WHERE city = "london" AND enrollment < 30 OFFSET 000 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (capacity INTEGER, city VARCHAR, enrollment VARCHAR) Question: What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000? [/INST] SELECT AVG(capacity) FROM table_name_40 WHERE city = "london" AND enrollment < 30 OFFSET 000 ROWS </s> |
Who had a score of 69-70=139? | CREATE TABLE table_name_25 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_25 WHERE score = 69 - 70 = 139 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (player VARCHAR, score VARCHAR) Question: Who had a score of 69-70=139? [/INST] SELECT player FROM table_name_25 WHERE score = 69 - 70 = 139 </s> |
What was the score of the game that had a result of 5–0? | CREATE TABLE table_name_30 (score VARCHAR, result VARCHAR) | SELECT score FROM table_name_30 WHERE result = "5–0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (score VARCHAR, result VARCHAR) Question: What was the score of the game that had a result of 5–0? [/INST] SELECT score FROM table_name_30 WHERE result = "5–0" </s> |
What is the heat number of the athlete who finished in 2:23.95? | CREATE TABLE table_name_99 (heat INTEGER, time VARCHAR) | SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (heat INTEGER, time VARCHAR) Question: What is the heat number of the athlete who finished in 2:23.95? [/INST] SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95" </s> |
Which lane did the athlete from Zambia swim in? | CREATE TABLE table_name_6 (lane VARCHAR, nationality VARCHAR) | SELECT lane FROM table_name_6 WHERE nationality = "zambia" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (lane VARCHAR, nationality VARCHAR) Question: Which lane did the athlete from Zambia swim in? [/INST] SELECT lane FROM table_name_6 WHERE nationality = "zambia" </s> |
Who was the opponent at the game when the record was 4-5? | CREATE TABLE table_name_69 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_69 WHERE record = "4-5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (opponent VARCHAR, record VARCHAR) Question: Who was the opponent at the game when the record was 4-5? [/INST] SELECT opponent FROM table_name_69 WHERE record = "4-5" </s> |
What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2 | CREATE TABLE table_name_60 (Id VARCHAR) | SELECT AVG(2009) FROM table_name_60 WHERE 2001 > 0 AND 1996 < 1 AND 2004 > 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (Id VARCHAR) Question: What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2 [/INST] SELECT AVG(2009) FROM table_name_60 WHERE 2001 > 0 AND 1996 < 1 AND 2004 > 2 </s> |
What is the listing for 2009 when 1989 is less than 0? | CREATE TABLE table_name_5 (Id VARCHAR) | SELECT SUM(2009) FROM table_name_5 WHERE 1989 < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (Id VARCHAR) Question: What is the listing for 2009 when 1989 is less than 0? [/INST] SELECT SUM(2009) FROM table_name_5 WHERE 1989 < 0 </s> |
what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5? | CREATE TABLE table_name_77 (Id VARCHAR) | SELECT AVG(2005) FROM table_name_77 WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (Id VARCHAR) Question: what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5? [/INST] SELECT AVG(2005) FROM table_name_77 WHERE 1995 > 3 AND 1996 < 4 AND 2011 > 5 </s> |
what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0? | CREATE TABLE table_name_27 (Id VARCHAR) | SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (Id VARCHAR) Question: what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0? [/INST] SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0 </s> |
what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11? | CREATE TABLE table_name_8 (Id VARCHAR) | SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (Id VARCHAR) Question: what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11? [/INST] SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11 </s> |
what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2? | CREATE TABLE table_name_14 (Id VARCHAR) | SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (Id VARCHAR) Question: what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2? [/INST] SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2 </s> |
How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps? | CREATE TABLE table_name_28 (_percentage_of_1_rep_max_last_set_ VARCHAR, set_4 VARCHAR) | SELECT _percentage_of_1_rep_max_last_set_ FROM table_name_28 WHERE set_4 = "145lb x 5reps" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (_percentage_of_1_rep_max_last_set_ VARCHAR, set_4 VARCHAR) Question: How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps? [/INST] SELECT _percentage_of_1_rep_max_last_set_ FROM table_name_28 WHERE set_4 = "145lb x 5reps" </s> |
How many lbs does a set 4 of 115lb x 8reps have? | CREATE TABLE table_name_53 (volume_lbs VARCHAR, set_4 VARCHAR) | SELECT volume_lbs FROM table_name_53 WHERE set_4 = "115lb x 8reps" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (volume_lbs VARCHAR, set_4 VARCHAR) Question: How many lbs does a set 4 of 115lb x 8reps have? [/INST] SELECT volume_lbs FROM table_name_53 WHERE set_4 = "115lb x 8reps" </s> |
What is set 3 on week 6? | CREATE TABLE table_name_1 (set_3 VARCHAR, week VARCHAR) | SELECT set_3 FROM table_name_1 WHERE week = 6 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (set_3 VARCHAR, week VARCHAR) Question: What is set 3 on week 6? [/INST] SELECT set_3 FROM table_name_1 WHERE week = 6 </s> |
What is the per-capita GDP for the country with an overall GDP of 156.640? | CREATE TABLE table_name_90 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR) | SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = "156.640" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR) Question: What is the per-capita GDP for the country with an overall GDP of 156.640? [/INST] SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = "156.640" </s> |
What is the per-capita GDP of the country with an overall GDP of 80.955? | CREATE TABLE table_name_40 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR) | SELECT gdp_per_capita__us$_ FROM table_name_40 WHERE gdp__billion_us$_ = "80.955" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR) Question: What is the per-capita GDP of the country with an overall GDP of 80.955? [/INST] SELECT gdp_per_capita__us$_ FROM table_name_40 WHERE gdp__billion_us$_ = "80.955" </s> |
Which country has an area of 871,980 square km? | CREATE TABLE table_name_15 (member_countries VARCHAR, area__km²_ VARCHAR) | SELECT member_countries FROM table_name_15 WHERE area__km²_ = "871,980" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (member_countries VARCHAR, area__km²_ VARCHAR) Question: Which country has an area of 871,980 square km? [/INST] SELECT member_countries FROM table_name_15 WHERE area__km²_ = "871,980" </s> |
On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match? | CREATE TABLE table_name_74 (outcome VARCHAR, partner VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_74 WHERE partner = "dora djilianova" AND date = "october 1, 1995" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_74 (outcome VARCHAR, partner VARCHAR, date VARCHAR) Question: On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match? [/INST] SELECT outcome FROM table_name_74 WHERE partner = "dora djilianova" AND date = "october 1, 1995" </s> |
With Lindsay Lee-Waters as a partner, what was the final score? | CREATE TABLE table_name_90 (score_in_the_final VARCHAR, partner VARCHAR) | SELECT score_in_the_final FROM table_name_90 WHERE partner = "lindsay lee-waters" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (score_in_the_final VARCHAR, partner VARCHAR) Question: With Lindsay Lee-Waters as a partner, what was the final score? [/INST] SELECT score_in_the_final FROM table_name_90 WHERE partner = "lindsay lee-waters" </s> |
Which score has a Date of august 17? | CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_58 WHERE date = "august 17" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR) Question: Which score has a Date of august 17? [/INST] SELECT score FROM table_name_58 WHERE date = "august 17" </s> |
Which score has an Opponent of @ athletics, and a Record of 76-57? | CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_19 WHERE opponent = "@ athletics" AND record = "76-57" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, record VARCHAR) Question: Which score has an Opponent of @ athletics, and a Record of 76-57? [/INST] SELECT score FROM table_name_19 WHERE opponent = "@ athletics" AND record = "76-57" </s> |
Which loss has a Record of 67-51? | CREATE TABLE table_name_37 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_37 WHERE record = "67-51" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (loss VARCHAR, record VARCHAR) Question: Which loss has a Record of 67-51? [/INST] SELECT loss FROM table_name_37 WHERE record = "67-51" </s> |
Which position has 2 wins in 1992? | CREATE TABLE table_name_31 (position VARCHAR, wins VARCHAR, season VARCHAR) | SELECT position FROM table_name_31 WHERE wins = "2" AND season = 1992 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (position VARCHAR, wins VARCHAR, season VARCHAR) Question: Which position has 2 wins in 1992? [/INST] SELECT position FROM table_name_31 WHERE wins = "2" AND season = 1992 </s> |
How many wins have a Series of formula nippon, and a Position of 8th? | CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR) | SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR) Question: How many wins have a Series of formula nippon, and a Position of 8th? [/INST] SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th" </s> |
What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship> | CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR) | SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR) Question: What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship> [/INST] SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2" </s> |
What was Mark Brooks total score when he finished more than 2 above par? | CREATE TABLE table_name_88 (total INTEGER, to_par VARCHAR, player VARCHAR) | SELECT AVG(total) FROM table_name_88 WHERE to_par > 2 AND player = "mark brooks" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (total INTEGER, to_par VARCHAR, player VARCHAR) Question: What was Mark Brooks total score when he finished more than 2 above par? [/INST] SELECT AVG(total) FROM table_name_88 WHERE to_par > 2 AND player = "mark brooks" </s> |
What was the winning to par score of the 1993 PGA Championship? | CREATE TABLE table_name_4 (to_par VARCHAR, year_s__won VARCHAR) | SELECT to_par FROM table_name_4 WHERE year_s__won = "1993" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (to_par VARCHAR, year_s__won VARCHAR) Question: What was the winning to par score of the 1993 PGA Championship? [/INST] SELECT to_par FROM table_name_4 WHERE year_s__won = "1993" </s> |
How many constructions has a Wheel arrange- ment of 4-4-0? | CREATE TABLE table_name_7 (construct__tion_no INTEGER, wheel_arrange__ment VARCHAR) | SELECT SUM(construct__tion_no) FROM table_name_7 WHERE wheel_arrange__ment = "4-4-0" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (construct__tion_no INTEGER, wheel_arrange__ment VARCHAR) Question: How many constructions has a Wheel arrange- ment of 4-4-0? [/INST] SELECT SUM(construct__tion_no) FROM table_name_7 WHERE wheel_arrange__ment = "4-4-0" </s> |
Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)? | CREATE TABLE table_name_6 (builder VARCHAR, date_ordered VARCHAR, tc VARCHAR, stl_no__1883_84_ VARCHAR) | SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = "november 1881" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (builder VARCHAR, date_ordered VARCHAR, tc VARCHAR, stl_no__1883_84_ VARCHAR) Question: Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)? [/INST] SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = "november 1881" </s> |
What is the Season Outcome for the Sussex Central School? | CREATE TABLE table_name_10 (season_outcome VARCHAR, school VARCHAR) | SELECT season_outcome FROM table_name_10 WHERE school = "sussex central" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (season_outcome VARCHAR, school VARCHAR) Question: What is the Season Outcome for the Sussex Central School? [/INST] SELECT season_outcome FROM table_name_10 WHERE school = "sussex central" </s> |
What is the School of Sussex Tech's Team? | CREATE TABLE table_name_31 (team VARCHAR, school VARCHAR) | SELECT team FROM table_name_31 WHERE school = "sussex tech" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (team VARCHAR, school VARCHAR) Question: What is the School of Sussex Tech's Team? [/INST] SELECT team FROM table_name_31 WHERE school = "sussex tech" </s> |
What is the Team for the Milford School? | CREATE TABLE table_name_68 (team VARCHAR, school VARCHAR) | SELECT team FROM table_name_68 WHERE school = "milford" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (team VARCHAR, school VARCHAR) Question: What is the Team for the Milford School? [/INST] SELECT team FROM table_name_68 WHERE school = "milford" </s> |
Which season was one of the players rated +33? | CREATE TABLE table_name_79 (season VARCHAR, rating VARCHAR) | SELECT season FROM table_name_79 WHERE rating = "+33" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (season VARCHAR, rating VARCHAR) Question: Which season was one of the players rated +33? [/INST] SELECT season FROM table_name_79 WHERE rating = "+33" </s> |
What is the name of the team that had 1 win and a rating of +85? | CREATE TABLE table_name_51 (team VARCHAR, win__number VARCHAR, rating VARCHAR) | SELECT team FROM table_name_51 WHERE win__number = "1" AND rating = "+85" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (team VARCHAR, win__number VARCHAR, rating VARCHAR) Question: What is the name of the team that had 1 win and a rating of +85? [/INST] SELECT team FROM table_name_51 WHERE win__number = "1" AND rating = "+85" </s> |
Which season was one of the players rated +98? | CREATE TABLE table_name_6 (season VARCHAR, rating VARCHAR) | SELECT season FROM table_name_6 WHERE rating = "+98" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (season VARCHAR, rating VARCHAR) Question: Which season was one of the players rated +98? [/INST] SELECT season FROM table_name_6 WHERE rating = "+98" </s> |
What is Patrice Bergeron's rating? | CREATE TABLE table_name_62 (rating VARCHAR, player VARCHAR) | SELECT rating FROM table_name_62 WHERE player = "patrice bergeron" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (rating VARCHAR, player VARCHAR) Question: What is Patrice Bergeron's rating? [/INST] SELECT rating FROM table_name_62 WHERE player = "patrice bergeron" </s> |
Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average? | CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR) | SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR) Question: Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average? [/INST] SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36 </s> |
Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers? | CREATE TABLE table_name_88 (pick__number VARCHAR, name VARCHAR, round VARCHAR) | SELECT COUNT(pick__number) FROM table_name_88 WHERE name = "jaimie thomas" AND round < 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (pick__number VARCHAR, name VARCHAR, round VARCHAR) Question: Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers? [/INST] SELECT COUNT(pick__number) FROM table_name_88 WHERE name = "jaimie thomas" AND round < 7 </s> |
What is the muzzle device with a 1:7 barrel twist and a stock 4th generation? | CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR) | SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = "1:7" AND stock = "4th generation" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR) Question: What is the muzzle device with a 1:7 barrel twist and a stock 4th generation? [/INST] SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = "1:7" AND stock = "4th generation" </s> |
When was the opponent Poland and the match type EC -qualifier? | CREATE TABLE table_name_12 (date VARCHAR, opponenent VARCHAR, match_type VARCHAR) | SELECT date FROM table_name_12 WHERE opponenent = "poland" AND match_type = "ec -qualifier" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (date VARCHAR, opponenent VARCHAR, match_type VARCHAR) Question: When was the opponent Poland and the match type EC -qualifier? [/INST] SELECT date FROM table_name_12 WHERE opponenent = "poland" AND match_type = "ec -qualifier" </s> |
Where was the opponent Germany? | CREATE TABLE table_name_96 (location VARCHAR, opponenent VARCHAR) | SELECT location FROM table_name_96 WHERE opponenent = "germany" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (location VARCHAR, opponenent VARCHAR) Question: Where was the opponent Germany? [/INST] SELECT location FROM table_name_96 WHERE opponenent = "germany" </s> |
Who was the opponent when the result was 2-2 (draw)? | CREATE TABLE table_name_70 (opponenent VARCHAR, result VARCHAR) | SELECT opponenent FROM table_name_70 WHERE result = "2-2 (draw)" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (opponenent VARCHAR, result VARCHAR) Question: Who was the opponent when the result was 2-2 (draw)? [/INST] SELECT opponenent FROM table_name_70 WHERE result = "2-2 (draw)" </s> |
What was the match type in Budapest where the opponent was Luxembourg? | CREATE TABLE table_name_64 (match_type VARCHAR, location VARCHAR, opponenent VARCHAR) | SELECT match_type FROM table_name_64 WHERE location = "budapest" AND opponenent = "luxembourg" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (match_type VARCHAR, location VARCHAR, opponenent VARCHAR) Question: What was the match type in Budapest where the opponent was Luxembourg? [/INST] SELECT match_type FROM table_name_64 WHERE location = "budapest" AND opponenent = "luxembourg" </s> |
Which player has the score 72-67-69=208? | CREATE TABLE table_name_95 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (player VARCHAR, score VARCHAR) Question: Which player has the score 72-67-69=208? [/INST] SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208 </s> |
Who has the par score of 70-76-68-214? | CREATE TABLE table_name_23 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_23 WHERE score = "70-76-68-214" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (to_par VARCHAR, score VARCHAR) Question: Who has the par score of 70-76-68-214? [/INST] SELECT to_par FROM table_name_23 WHERE score = "70-76-68-214" </s> |
Which country has the score 70-76-68-214? | CREATE TABLE table_name_71 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_71 WHERE score = "70-76-68-214" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (country VARCHAR, score VARCHAR) Question: Which country has the score 70-76-68-214? [/INST] SELECT country FROM table_name_71 WHERE score = "70-76-68-214" </s> |
when was the first performance for the ballet with peter mazurowski in the final cast? | CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR) | SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR) Question: when was the first performance for the ballet with peter mazurowski in the final cast? [/INST] SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski" </s> |
who had the first performance on 3 july 2011? | CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR) | SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR) Question: who had the first performance on 3 july 2011? [/INST] SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011" </s> |
who had a last performance of 3 july 2011? | CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR) | SELECT name FROM table_name_18 WHERE last_performance = "3 july 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR) Question: who had a last performance of 3 july 2011? [/INST] SELECT name FROM table_name_18 WHERE last_performance = "3 july 2011" </s> |
what's the status in the style of ballet/ gymnastics? | CREATE TABLE table_name_73 (status VARCHAR, style VARCHAR) | SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (status VARCHAR, style VARCHAR) Question: what's the status in the style of ballet/ gymnastics? [/INST] SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics" </s> |
what's the name with final cast status and first performance on 12 november 2011? | CREATE TABLE table_name_68 (name VARCHAR, status VARCHAR, first_performance VARCHAR) | SELECT name FROM table_name_68 WHERE status = "final cast" AND first_performance = "12 november 2011" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (name VARCHAR, status VARCHAR, first_performance VARCHAR) Question: what's the name with final cast status and first performance on 12 november 2011? [/INST] SELECT name FROM table_name_68 WHERE status = "final cast" AND first_performance = "12 november 2011" </s> |
what last performance has past status, ballet as style and tommy batchelor? | CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR) | SELECT last_performance FROM table_name_7 WHERE status = "past" AND style = "ballet" AND name = "tommy batchelor" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR) Question: what last performance has past status, ballet as style and tommy batchelor? [/INST] SELECT last_performance FROM table_name_7 WHERE status = "past" AND style = "ballet" AND name = "tommy batchelor" </s> |
How many goals was by Rix from Eng who started before 2005 in the youth system? | CREATE TABLE table_name_38 (goals VARCHAR, name VARCHAR, since VARCHAR, nat VARCHAR, transfer_fee VARCHAR) | SELECT COUNT(goals) FROM table_name_38 WHERE nat = "eng" AND transfer_fee = "youth system" AND since < 2005 AND name = "rix" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_38 (goals VARCHAR, name VARCHAR, since VARCHAR, nat VARCHAR, transfer_fee VARCHAR) Question: How many goals was by Rix from Eng who started before 2005 in the youth system? [/INST] SELECT COUNT(goals) FROM table_name_38 WHERE nat = "eng" AND transfer_fee = "youth system" AND since < 2005 AND name = "rix" </s> |
Where is Rix from? | CREATE TABLE table_name_36 (nat VARCHAR, name VARCHAR) | SELECT nat FROM table_name_36 WHERE name = "rix" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_36 (nat VARCHAR, name VARCHAR) Question: Where is Rix from? [/INST] SELECT nat FROM table_name_36 WHERE name = "rix" </s> |
What is the specification of the locomotives with a total produced more than 19 and a model of fb-1? | CREATE TABLE table_name_1 (specification VARCHAR, total_produced VARCHAR, model VARCHAR) | SELECT specification FROM table_name_1 WHERE total_produced > 19 AND model = "fb-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (specification VARCHAR, total_produced VARCHAR, model VARCHAR) Question: What is the specification of the locomotives with a total produced more than 19 and a model of fb-1? [/INST] SELECT specification FROM table_name_1 WHERE total_produced > 19 AND model = "fb-1" </s> |
What is the build date of the locomotives with a total produced less than 45 and a fb-2 model? | CREATE TABLE table_name_42 (build_date VARCHAR, total_produced VARCHAR, model VARCHAR) | SELECT build_date FROM table_name_42 WHERE total_produced < 45 AND model = "fb-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (build_date VARCHAR, total_produced VARCHAR, model VARCHAR) Question: What is the build date of the locomotives with a total produced less than 45 and a fb-2 model? [/INST] SELECT build_date FROM table_name_42 WHERE total_produced < 45 AND model = "fb-2" </s> |
What is the prime mover of the locomotive with a fa-2 model? | CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR) | SELECT prime_mover FROM table_name_16 WHERE model = "fa-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR) Question: What is the prime mover of the locomotive with a fa-2 model? [/INST] SELECT prime_mover FROM table_name_16 WHERE model = "fa-2" </s> |
What is the build date of the locomotive with a fa-2 model? | CREATE TABLE table_name_55 (build_date VARCHAR, model VARCHAR) | SELECT build_date FROM table_name_55 WHERE model = "fa-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (build_date VARCHAR, model VARCHAR) Question: What is the build date of the locomotive with a fa-2 model? [/INST] SELECT build_date FROM table_name_55 WHERE model = "fa-2" </s> |
What region has a transmitter located at Mount Sugarloaf? | CREATE TABLE table_name_1 (region_served VARCHAR, transmitter_location VARCHAR) | SELECT region_served FROM table_name_1 WHERE transmitter_location = "mount sugarloaf" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (region_served VARCHAR, transmitter_location VARCHAR) Question: What region has a transmitter located at Mount Sugarloaf? [/INST] SELECT region_served FROM table_name_1 WHERE transmitter_location = "mount sugarloaf" </s> |
Name the finals for prelim of out of playoffs | CREATE TABLE table_name_71 (finals VARCHAR, prelim VARCHAR) | SELECT finals FROM table_name_71 WHERE prelim = "out of playoffs" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (finals VARCHAR, prelim VARCHAR) Question: Name the finals for prelim of out of playoffs [/INST] SELECT finals FROM table_name_71 WHERE prelim = "out of playoffs" </s> |
Who is the musical director of the film Vettaiyaadu vilaiyaadu? | CREATE TABLE table_name_35 (music_director VARCHAR, film VARCHAR) | SELECT music_director FROM table_name_35 WHERE film = "vettaiyaadu vilaiyaadu" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (music_director VARCHAR, film VARCHAR) Question: Who is the musical director of the film Vettaiyaadu vilaiyaadu? [/INST] SELECT music_director FROM table_name_35 WHERE film = "vettaiyaadu vilaiyaadu" </s> |
What is the 2007 film in Hindi with a music director Shantanu moitra? | CREATE TABLE table_name_2 (film VARCHAR, music_director VARCHAR, year VARCHAR, language VARCHAR) | SELECT film FROM table_name_2 WHERE year = 2007 AND language = "hindi" AND music_director = "shantanu moitra" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (film VARCHAR, music_director VARCHAR, year VARCHAR, language VARCHAR) Question: What is the 2007 film in Hindi with a music director Shantanu moitra? [/INST] SELECT film FROM table_name_2 WHERE year = 2007 AND language = "hindi" AND music_director = "shantanu moitra" </s> |
What is the number of losses that coach John Kowalski has with a PTS smaller than 9? | CREATE TABLE table_name_84 (loss VARCHAR, coach VARCHAR, pts VARCHAR) | SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (loss VARCHAR, coach VARCHAR, pts VARCHAR) Question: What is the number of losses that coach John Kowalski has with a PTS smaller than 9? [/INST] SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9 </s> |
What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? | CREATE TABLE table_name_45 (pct INTEGER, pts VARCHAR, wins VARCHAR) | SELECT AVG(pct) FROM table_name_45 WHERE pts < 9 AND wins > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (pct INTEGER, pts VARCHAR, wins VARCHAR) Question: What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? [/INST] SELECT AVG(pct) FROM table_name_45 WHERE pts < 9 AND wins > 1 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.