instruction
stringlengths
12
244
input
stringlengths
27
489
output
stringlengths
18
557
text
stringlengths
194
1.14k
Which party had a term start of 5 august 1999?
CREATE TABLE table_name_95 (party VARCHAR, term_start VARCHAR)
SELECT party FROM table_name_95 WHERE term_start = "5 august 1999"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (party VARCHAR, term_start VARCHAR) Question: Which party had a term start of 5 august 1999? [/INST] SELECT party FROM table_name_95 WHERE term_start = "5 august 1999" </s>
What term end had minister Danny Ayalon?
CREATE TABLE table_name_40 (term_end VARCHAR, minister VARCHAR)
SELECT term_end FROM table_name_40 WHERE minister = "danny ayalon"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (term_end VARCHAR, minister VARCHAR) Question: What term end had minister Danny Ayalon? [/INST] SELECT term_end FROM table_name_40 WHERE minister = "danny ayalon" </s>
Which goverment had a party of yisrael beiteinu?
CREATE TABLE table_name_60 (governments VARCHAR, party VARCHAR)
SELECT governments FROM table_name_60 WHERE party = "yisrael beiteinu"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_60 (governments VARCHAR, party VARCHAR) Question: Which goverment had a party of yisrael beiteinu? [/INST] SELECT governments FROM table_name_60 WHERE party = "yisrael beiteinu" </s>
Who was the minister of the labor party and had 26 goverments?
CREATE TABLE table_name_82 (minister VARCHAR, party VARCHAR, governments VARCHAR)
SELECT minister FROM table_name_82 WHERE party = "labor party" AND governments = "26"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (minister VARCHAR, party VARCHAR, governments VARCHAR) Question: Who was the minister of the labor party and had 26 goverments? [/INST] SELECT minister FROM table_name_82 WHERE party = "labor party...
What is the category that came before 2011?
CREATE TABLE table_name_44 (category VARCHAR, year INTEGER)
SELECT category FROM table_name_44 WHERE year < 2011
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (category VARCHAR, year INTEGER) Question: What is the category that came before 2011? [/INST] SELECT category FROM table_name_44 WHERE year < 2011 </s>
What is the year of the Premios Carlos Gardel 2009 award?
CREATE TABLE table_name_58 (year VARCHAR, award VARCHAR)
SELECT year FROM table_name_58 WHERE award = "premios carlos gardel 2009"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (year VARCHAR, award VARCHAR) Question: What is the year of the Premios Carlos Gardel 2009 award? [/INST] SELECT year FROM table_name_58 WHERE award = "premios carlos gardel 2009" </s>
What is Andrea Suarez Lazaro's height?
CREATE TABLE table_name_25 (height VARCHAR, contestant VARCHAR)
SELECT height FROM table_name_25 WHERE contestant = "andrea suarez lazaro"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (height VARCHAR, contestant VARCHAR) Question: What is Andrea Suarez Lazaro's height? [/INST] SELECT height FROM table_name_25 WHERE contestant = "andrea suarez lazaro" </s>
What is niurbi encarnación ynoa's height?
CREATE TABLE table_name_95 (height VARCHAR, contestant VARCHAR)
SELECT height FROM table_name_95 WHERE contestant = "niurbi encarnación ynoa"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (height VARCHAR, contestant VARCHAR) Question: What is niurbi encarnación ynoa's height? [/INST] SELECT height FROM table_name_95 WHERE contestant = "niurbi encarnación ynoa" </s>
What is the province for Jamao Afuera?
CREATE TABLE table_name_13 (province VARCHAR, _community VARCHAR, hometown VARCHAR)
SELECT province, _community FROM table_name_13 WHERE hometown = "jamao afuera"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (province VARCHAR, _community VARCHAR, hometown VARCHAR) Question: What is the province for Jamao Afuera? [/INST] SELECT province, _community FROM table_name_13 WHERE hometown = "jamao afuera" </s>
What is the geographical region for hometown Imbert?
CREATE TABLE table_name_1 (geographical_regions VARCHAR, hometown VARCHAR)
SELECT geographical_regions FROM table_name_1 WHERE hometown = "imbert"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (geographical_regions VARCHAR, hometown VARCHAR) Question: What is the geographical region for hometown Imbert? [/INST] SELECT geographical_regions FROM table_name_1 WHERE hometown = "imbert" </s>
What is the Name of the Ship attacked on 20February1942?
CREATE TABLE table_name_64 (name_of_ship VARCHAR, date VARCHAR)
SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (name_of_ship VARCHAR, date VARCHAR) Question: What is the Name of the Ship attacked on 20February1942? [/INST] SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942" </s>
Which ship was sunk at 01:00?
CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR)
SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_96 (name_of_ship VARCHAR, fate VARCHAR, time VARCHAR) Question: Which ship was sunk at 01:00? [/INST] SELECT name_of_ship FROM table_name_96 WHERE fate = "sunk at" AND time = "01:00" </s>
What is the to par for the 68-72-73=213 score?
CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_73 WHERE score = 68 - 72 - 73 = 213
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR) Question: What is the to par for the 68-72-73=213 score? [/INST] SELECT to_par FROM table_name_73 WHERE score = 68 - 72 - 73 = 213 </s>
What is the to par for the 69-70-72=211 score?
CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_56 WHERE score = 69 - 70 - 72 = 211
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR) Question: What is the to par for the 69-70-72=211 score? [/INST] SELECT to_par FROM table_name_56 WHERE score = 69 - 70 - 72 = 211 </s>
What is the to par for the United States with a 67-71-73=211 score?
CREATE TABLE table_name_72 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_72 WHERE country = "united states" AND score = 67 - 71 - 73 = 211
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (to_par VARCHAR, country VARCHAR, score VARCHAR) Question: What is the to par for the United States with a 67-71-73=211 score? [/INST] SELECT to_par FROM table_name_72 WHERE country = "united state...
What country has t4 place and a 67-71-73=211 score?
CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_16 WHERE place = "t4" AND score = 67 - 71 - 73 = 211
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR, score VARCHAR) Question: What country has t4 place and a 67-71-73=211 score? [/INST] SELECT country FROM table_name_16 WHERE place = "t4" AND score = 67 - 71 - 73 =...
What is the to par for Australia and a 73-69-71=213 score?
CREATE TABLE table_name_43 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_43 WHERE country = "australia" AND score = 73 - 69 - 71 = 213
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (to_par VARCHAR, country VARCHAR, score VARCHAR) Question: What is the to par for Australia and a 73-69-71=213 score? [/INST] SELECT to_par FROM table_name_43 WHERE country = "australia" AND score ...
What Location has a Partner of app, a Population Served larger than 2000, and a Design flow (LPM) of 375?
CREATE TABLE table_name_31 (location VARCHAR, design_flow__lpm_ VARCHAR, partner VARCHAR, population_served VARCHAR)
SELECT location FROM table_name_31 WHERE partner = "app" AND population_served > 2000 AND design_flow__lpm_ = 375
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (location VARCHAR, design_flow__lpm_ VARCHAR, partner VARCHAR, population_served VARCHAR) Question: What Location has a Partner of app, a Population Served larger than 2000, and a Design flow (LPM)...
What Construction Start has an Inauguration Date of 2010 june?
CREATE TABLE table_name_39 (construction_start VARCHAR, inauguration_date VARCHAR)
SELECT construction_start FROM table_name_39 WHERE inauguration_date = "2010 june"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (construction_start VARCHAR, inauguration_date VARCHAR) Question: What Construction Start has an Inauguration Date of 2010 june? [/INST] SELECT construction_start FROM table_name_39 WHERE inaugurat...
What Construction Start has a Design flow (LPM) of 1300?
CREATE TABLE table_name_99 (construction_start VARCHAR, design_flow__lpm_ VARCHAR)
SELECT construction_start FROM table_name_99 WHERE design_flow__lpm_ = 1300
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (construction_start VARCHAR, design_flow__lpm_ VARCHAR) Question: What Construction Start has a Design flow (LPM) of 1300? [/INST] SELECT construction_start FROM table_name_99 WHERE design_flow__lp...
What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june?
CREATE TABLE table_name_40 (location VARCHAR, design_flow__lpm_ VARCHAR, construction_start VARCHAR)
SELECT location FROM table_name_40 WHERE design_flow__lpm_ < 1900 AND construction_start = "2006 june"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (location VARCHAR, design_flow__lpm_ VARCHAR, construction_start VARCHAR) Question: What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june? [/INST] SELECT lo...
What Partner has a Construction Start of 2008 january?
CREATE TABLE table_name_2 (partner VARCHAR, construction_start VARCHAR)
SELECT partner FROM table_name_2 WHERE construction_start = "2008 january"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_2 (partner VARCHAR, construction_start VARCHAR) Question: What Partner has a Construction Start of 2008 january? [/INST] SELECT partner FROM table_name_2 WHERE construction_start = "2008 january" </s>
What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?
CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR)
SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = "app" AND construction_start = "2008 january" AND population_served > 3500
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR) Question: What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 ...
What is Sandy Lyle's To Par?
CREATE TABLE table_name_76 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_76 WHERE player = "sandy lyle"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (to_par VARCHAR, player VARCHAR) Question: What is Sandy Lyle's To Par? [/INST] SELECT to_par FROM table_name_76 WHERE player = "sandy lyle" </s>
What is Australia's score where they were in place t1?
CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_43 WHERE country = "australia" AND place = "t1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR) Question: What is Australia's score where they were in place t1? [/INST] SELECT score FROM table_name_43 WHERE country = "australia" AND place = "t1"...
What place has Wales as a country?
CREATE TABLE table_name_16 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_16 WHERE country = "wales"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (place VARCHAR, country VARCHAR) Question: What place has Wales as a country? [/INST] SELECT place FROM table_name_16 WHERE country = "wales" </s>
What is the To Par of Peter Senior from Australia?
CREATE TABLE table_name_28 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_28 WHERE country = "australia" AND player = "peter senior"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (to_par VARCHAR, country VARCHAR, player VARCHAR) Question: What is the To Par of Peter Senior from Australia? [/INST] SELECT to_par FROM table_name_28 WHERE country = "australia" AND player = "pet...
What is the score of Howard Clark from England with a To Par of +1?
CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_55 WHERE to_par = "+1" AND country = "england" AND player = "howard clark"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (score VARCHAR, player VARCHAR, to_par VARCHAR, country VARCHAR) Question: What is the score of Howard Clark from England with a To Par of +1? [/INST] SELECT score FROM table_name_55 WHERE to_par =...
What is the score of the player with a To Par of +1 from Spain?
CREATE TABLE table_name_54 (score VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_54 WHERE to_par = "+1" AND country = "spain"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (score VARCHAR, to_par VARCHAR, country VARCHAR) Question: What is the score of the player with a To Par of +1 from Spain? [/INST] SELECT score FROM table_name_54 WHERE to_par = "+1" AND country = ...
Who won the event against U.S.A.?
CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR)
SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a."
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR) Question: Who won the event against U.S.A.? [/INST] SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a." </s>
Where was the match on 10/11/2001 against 15?
CREATE TABLE table_name_3 (venue VARCHAR, against VARCHAR, date VARCHAR)
SELECT venue FROM table_name_3 WHERE against = 15 AND date = "10/11/2001"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (venue VARCHAR, against VARCHAR, date VARCHAR) Question: Where was the match on 10/11/2001 against 15? [/INST] SELECT venue FROM table_name_3 WHERE against = 15 AND date = "10/11/2001" </s>
What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin?
CREATE TABLE table_name_81 (against INTEGER, status VARCHAR, venue VARCHAR)
SELECT MIN(against) FROM table_name_81 WHERE status = "six nations" AND venue = "lansdowne road, dublin"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_81 (against INTEGER, status VARCHAR, venue VARCHAR) Question: What is the lowest against team in the Six Nations status in Lansdowne Road, Dublin? [/INST] SELECT MIN(against) FROM table_name_81 WHERE ...
What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (Id VARCHAR) Question: What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009? [/INST] SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r" </s>
What 2008 has A as the 2007, and 2r as the 2010?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT 2008 FROM table_name_40 WHERE 2007 = "a" AND 2010 = "2r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (Id VARCHAR) Question: What 2008 has A as the 2007, and 2r as the 2010? [/INST] SELECT 2008 FROM table_name_40 WHERE 2007 = "a" AND 2010 = "2r" </s>
What 2009 has lq as the 2011?
CREATE TABLE table_name_58 (Id VARCHAR)
SELECT 2009 FROM table_name_58 WHERE 2011 = "lq"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_58 (Id VARCHAR) Question: What 2009 has lq as the 2011? [/INST] SELECT 2009 FROM table_name_58 WHERE 2011 = "lq" </s>
What 2009 has 345 as the 2007?
CREATE TABLE table_name_33 (Id VARCHAR)
SELECT 2009 FROM table_name_33 WHERE 2007 = "345"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (Id VARCHAR) Question: What 2009 has 345 as the 2007? [/INST] SELECT 2009 FROM table_name_33 WHERE 2007 = "345" </s>
What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo?
CREATE TABLE table_name_24 (nation VARCHAR, sport VARCHAR, pinyin VARCHAR)
SELECT nation FROM table_name_24 WHERE sport = "weightlifting" AND pinyin = "kùkè qúndǎo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_24 (nation VARCHAR, sport VARCHAR, pinyin VARCHAR) Question: What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo? [/INST] SELECT nation FROM table_name_24 WHERE sport = "weightlifting...
What day did Glentoran play at Windsor Park, Belfast?
CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR)
SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park, belfast"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (date VARCHAR, team VARCHAR, venue VARCHAR) Question: What day did Glentoran play at Windsor Park, Belfast? [/INST] SELECT date FROM table_name_34 WHERE team = "glentoran" AND venue = "windsor park...
What day was the score 1-0?
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_39 WHERE score = "1-0"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR) Question: What day was the score 1-0? [/INST] SELECT date FROM table_name_39 WHERE score = "1-0" </s>
Which team scored 2-1?
CREATE TABLE table_name_40 (team VARCHAR, score VARCHAR)
SELECT team FROM table_name_40 WHERE score = "2-1"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (team VARCHAR, score VARCHAR) Question: Which team scored 2-1? [/INST] SELECT team FROM table_name_40 WHERE score = "2-1" </s>
What is the 1998 value with 2r in 2003?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 1998 FROM table_name_60 WHERE 2003 = "2r"
<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 1998 value with 2r in 2003? [/INST] SELECT 1998 FROM table_name_60 WHERE 2003 = "2r" </s>
What is the 2004 value with 2r in 1994?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2004 FROM table_name_60 WHERE 1994 = "2r"
<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 2004 value with 2r in 1994? [/INST] SELECT 2004 FROM table_name_60 WHERE 1994 = "2r" </s>
What is the 2003 value for the french open, which has a 1r in 1994?
CREATE TABLE table_name_10 (tournament VARCHAR)
SELECT 2003 FROM table_name_10 WHERE 1994 = "1r" AND tournament = "french open"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (tournament VARCHAR) Question: What is the 2003 value for the french open, which has a 1r in 1994? [/INST] SELECT 2003 FROM table_name_10 WHERE 1994 = "1r" AND tournament = "french open" </s>
What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career?
CREATE TABLE table_name_50 (career VARCHAR)
SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (career VARCHAR) Question: What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career? [/INST] SELECT 2003 FROM table_name_50 WHERE 1998 = "1r" AND 1994 = "1r" AND career = "7-12" </...
Which driver finished in position 8?
CREATE TABLE table_name_50 (driver VARCHAR, fin_pos VARCHAR)
SELECT driver FROM table_name_50 WHERE fin_pos = 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (driver VARCHAR, fin_pos VARCHAR) Question: Which driver finished in position 8? [/INST] SELECT driver FROM table_name_50 WHERE fin_pos = 8 </s>
What is the average grid for Marco Andretti with a finishing position higher than 19?
CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR, fin_pos VARCHAR)
SELECT AVG(grid) FROM table_name_85 WHERE driver = "marco andretti" AND fin_pos > 19
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR, fin_pos VARCHAR) Question: What is the average grid for Marco Andretti with a finishing position higher than 19? [/INST] SELECT AVG(grid) FROM table_name_85 WHERE dri...
What is Car number 98's lowest grid?
CREATE TABLE table_name_53 (grid INTEGER, car_no VARCHAR)
SELECT MIN(grid) FROM table_name_53 WHERE car_no = 98
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_53 (grid INTEGER, car_no VARCHAR) Question: What is Car number 98's lowest grid? [/INST] SELECT MIN(grid) FROM table_name_53 WHERE car_no = 98 </s>
What is the highest Laps Led with a grid of less than 4 and a finishing position of 15?
CREATE TABLE table_name_26 (laps INTEGER, grid VARCHAR, fin_pos VARCHAR)
SELECT MAX(laps) AS Led FROM table_name_26 WHERE grid < 4 AND fin_pos = 15
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (laps INTEGER, grid VARCHAR, fin_pos VARCHAR) Question: What is the highest Laps Led with a grid of less than 4 and a finishing position of 15? [/INST] SELECT MAX(laps) AS Led FROM table_name_26 WH...
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?
CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR)
SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR) Question: What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu? [/INST] SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4...
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR)
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR) Question: What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85? [/INST] SELECT AVG(jianshu) FROM table_name_29 WHERE r...
On what date did the woman married to Louis II become consort?
CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR)
SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR) Question: On what date did the woman married to Louis II become consort? [/INST] SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii" </s>
What is the Date of the game when the Record is 32–31–6?
CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_8 WHERE record = "32–31–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR) Question: What is the Date of the game when the Record is 32–31–6? [/INST] SELECT date FROM table_name_8 WHERE record = "32–31–6" </s>
What is the Opponent at the Honda Center on March 29?
CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR) Question: What is the Opponent at the Honda Center on March 29? [/INST] SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "m...
What is the Opponent when the Record is 34–31–6?
CREATE TABLE table_name_3 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_3 WHERE record = "34–31–6"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (opponent VARCHAR, record VARCHAR) Question: What is the Opponent when the Record is 34–31–6? [/INST] SELECT opponent FROM table_name_3 WHERE record = "34–31–6" </s>
What is Date, when Away Team is "Minehead"?
CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_13 WHERE away_team = "minehead"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR) Question: What is Date, when Away Team is "Minehead"? [/INST] SELECT date FROM table_name_13 WHERE away_team = "minehead" </s>
What is Date, when Away Team is "Barnet"?
CREATE TABLE table_name_7 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_7 WHERE away_team = "barnet"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (date VARCHAR, away_team VARCHAR) Question: What is Date, when Away Team is "Barnet"? [/INST] SELECT date FROM table_name_7 WHERE away_team = "barnet" </s>
What is Tie no, when Home Team is "Hull City"?
CREATE TABLE table_name_69 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_69 WHERE home_team = "hull city"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (tie_no VARCHAR, home_team VARCHAR) Question: What is Tie no, when Home Team is "Hull City"? [/INST] SELECT tie_no FROM table_name_69 WHERE home_team = "hull city" </s>
What is Away Team, when Home Team is "Swindon Town"?
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_3 WHERE home_team = "swindon town"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR) Question: What is Away Team, when Home Team is "Swindon Town"? [/INST] SELECT away_team FROM table_name_3 WHERE home_team = "swindon town" </s>
What is Away Team, when Home Team is "Boston United"?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "boston united"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) Question: What is Away Team, when Home Team is "Boston United"? [/INST] SELECT away_team FROM table_name_30 WHERE home_team = "boston united" </s>
What was Nick Faldo's score?
CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_73 WHERE player = "nick faldo"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR) Question: What was Nick Faldo's score? [/INST] SELECT score FROM table_name_73 WHERE player = "nick faldo" </s>
What country placed t8 and scored 71-71-71=213?
CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR) Question: What country placed t8 and scored 71-71-71=213? [/INST] SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213...
What was the place when the score was 67-73-73=213?
CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (place VARCHAR, score VARCHAR) Question: What was the place when the score was 67-73-73=213? [/INST] SELECT place FROM table_name_23 WHERE score = 67 - 73 - 73 = 213 </s>
What was the place when the score was 70-69-74=213?
CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (place VARCHAR, score VARCHAR) Question: What was the place when the score was 70-69-74=213? [/INST] SELECT place FROM table_name_12 WHERE score = 70 - 69 - 74 = 213 </s>
What was United States place when the player was Fred Couples?
CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR) Question: What was United States place when the player was Fred Couples? [/INST] SELECT place FROM table_name_26 WHERE country = "united states" AND...
WHAT IS THE TOURNAMENT WITH 2008 AND 2011 WITH A?
CREATE TABLE table_name_82 (tournament VARCHAR)
SELECT tournament FROM table_name_82 WHERE 2008 = "a" AND 2011 = "a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (tournament VARCHAR) Question: WHAT IS THE TOURNAMENT WITH 2008 AND 2011 WITH A? [/INST] SELECT tournament FROM table_name_82 WHERE 2008 = "a" AND 2011 = "a" </s>
WHAT IS THE 2012 WITH 2005 OF 1R?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT 2012 FROM table_name_35 WHERE 2005 = "1r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (Id VARCHAR) Question: WHAT IS THE 2012 WITH 2005 OF 1R? [/INST] SELECT 2012 FROM table_name_35 WHERE 2005 = "1r" </s>
WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT 2010 FROM table_name_93 WHERE 2012 = "2r" AND tournament = "miami masters"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (tournament VARCHAR) Question: WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS? [/INST] SELECT 2010 FROM table_name_93 WHERE 2012 = "2r" AND tournament = "miami masters" </s>
WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A?
CREATE TABLE table_name_84 (tournament VARCHAR)
SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (tournament VARCHAR) Question: WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A? [/INST] SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a" </s>
WHAT IS THE 2007 AT MADRID MASTERS?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (tournament VARCHAR) Question: WHAT IS THE 2007 AT MADRID MASTERS? [/INST] SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters" </s>
WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_67 (Id VARCHAR) Question: WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R? [/INST] SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r" </s>
What game was released before 2010 with a Metacritic of 85/100?
CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR)
SELECT game_title FROM table_name_48 WHERE metacritic = "85/100" AND year_released < 2010
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR) Question: What game was released before 2010 with a Metacritic of 85/100? [/INST] SELECT game_title FROM table_name_48 WHERE metacrit...
What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%?
CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR)
SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.44%"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (metacritic VARCHAR, gamerankings VARCHAR, year_released VARCHAR, platform VARCHAR) Question: What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.4...
What is the GameRankings Released of 2011 with a Metacritic of 83/100?
CREATE TABLE table_name_40 (gamerankings VARCHAR, metacritic VARCHAR, year_released VARCHAR)
SELECT gamerankings FROM table_name_40 WHERE metacritic = "83/100" AND year_released = 2011
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (gamerankings VARCHAR, metacritic VARCHAR, year_released VARCHAR) Question: What is the GameRankings Released of 2011 with a Metacritic of 83/100? [/INST] SELECT gamerankings FROM table_name_40 WHE...
How many weeks have an attendance less than 26,048?
CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER)
SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (week INTEGER, attendance INTEGER) Question: How many weeks have an attendance less than 26,048? [/INST] SELECT SUM(week) FROM table_name_7 WHERE attendance < 26 OFFSET 048 ROWS </s>
What was the record when the Denver Broncos played the New York Titans at Bears Stadium?
CREATE TABLE table_name_44 (record VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_44 WHERE game_site = "bears stadium" AND opponent = "new york titans"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (record VARCHAR, game_site VARCHAR, opponent VARCHAR) Question: What was the record when the Denver Broncos played the New York Titans at Bears Stadium? [/INST] SELECT record FROM table_name_44 WHE...
What was the result of the match on December 9, 1962?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_78 WHERE date = "december 9, 1962"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR) Question: What was the result of the match on December 9, 1962? [/INST] SELECT result FROM table_name_78 WHERE date = "december 9, 1962" </s>
What is To par, when Score is "70-68-68-71=277"?
CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR) Question: What is To par, when Score is "70-68-68-71=277"? [/INST] SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277 </s>
What is the score of the match on 12 September 1990?
CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_29 WHERE date = "12 september 1990"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR) Question: What is the score of the match on 12 September 1990? [/INST] SELECT score FROM table_name_29 WHERE date = "12 september 1990" </s>
For what league was the player in G position drafted?
CREATE TABLE table_name_87 (league_from VARCHAR, position VARCHAR)
SELECT league_from FROM table_name_87 WHERE position = "g"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (league_from VARCHAR, position VARCHAR) Question: For what league was the player in G position drafted? [/INST] SELECT league_from FROM table_name_87 WHERE position = "g" </s>
What pick number was player Greg McKegg?
CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR)
SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR) Question: What pick number was player Greg McKegg? [/INST] SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg" </s>
What Place has a Player of tony jacklin?
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_28 WHERE player = "tony jacklin"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR) Question: What Place has a Player of tony jacklin? [/INST] SELECT place FROM table_name_28 WHERE player = "tony jacklin" </s>
What Place has a Player of bernhard langer?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_49 WHERE player = "bernhard langer"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR) Question: What Place has a Player of bernhard langer? [/INST] SELECT place FROM table_name_49 WHERE player = "bernhard langer" </s>
What Player has a Country of west germany?
CREATE TABLE table_name_86 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_86 WHERE country = "west germany"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_86 (player VARCHAR, country VARCHAR) Question: What Player has a Country of west germany? [/INST] SELECT player FROM table_name_86 WHERE country = "west germany" </s>
What Player has a To par of –2?
CREATE TABLE table_name_20 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_20 WHERE to_par = "–2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (player VARCHAR, to_par VARCHAR) Question: What Player has a To par of –2? [/INST] SELECT player FROM table_name_20 WHERE to_par = "–2" </s>
What To par has a Place of t2, and a Country of united states?
CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR) Question: What To par has a Place of t2, and a Country of united states? [/INST] SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "...
What Score has a Place of t2, and a Country of england?
CREATE TABLE table_name_75 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT score FROM table_name_75 WHERE place = "t2" AND country = "england"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (score VARCHAR, place VARCHAR, country VARCHAR) Question: What Score has a Place of t2, and a Country of england? [/INST] SELECT score FROM table_name_75 WHERE place = "t2" AND country = "england" ...
How many tries were there for club cwmtwrch rfc?
CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR)
SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (tries_against VARCHAR, club VARCHAR) Question: How many tries were there for club cwmtwrch rfc? [/INST] SELECT tries_against FROM table_name_52 WHERE club = "cwmtwrch rfc" </s>
What is the draw when the tries against was 69?
CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR)
SELECT drawn FROM table_name_75 WHERE tries_against = "69"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_75 (drawn VARCHAR, tries_against VARCHAR) Question: What is the draw when the tries against was 69? [/INST] SELECT drawn FROM table_name_75 WHERE tries_against = "69" </s>
What is the try bonus when the loss is 13 and the draw is 2?
CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR) Question: What is the try bonus when the loss is 13 and the draw is 2? [/INST] SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2"...
What is the average Finish, when Team is "Buck Baker", and when Start is less than 13?
CREATE TABLE table_name_39 (finish INTEGER, team VARCHAR, start VARCHAR)
SELECT AVG(finish) FROM table_name_39 WHERE team = "buck baker" AND start < 13
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (finish INTEGER, team VARCHAR, start VARCHAR) Question: What is the average Finish, when Team is "Buck Baker", and when Start is less than 13? [/INST] SELECT AVG(finish) FROM table_name_39 WHERE te...
What is the average Year, when Start is "11"?
CREATE TABLE table_name_42 (year INTEGER, start VARCHAR)
SELECT AVG(year) FROM table_name_42 WHERE start = 11
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (year INTEGER, start VARCHAR) Question: What is the average Year, when Start is "11"? [/INST] SELECT AVG(year) FROM table_name_42 WHERE start = 11 </s>
What is the lowest Year, when Finish is "29", and when Start is less than 24?
CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR)
SELECT MIN(year) FROM table_name_14 WHERE finish = 29 AND start < 24
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (year INTEGER, finish VARCHAR, start VARCHAR) Question: What is the lowest Year, when Finish is "29", and when Start is less than 24? [/INST] SELECT MIN(year) FROM table_name_14 WHERE finish = 29 A...
What is the highest Year, when Finish is "51", and when Start is less than 64?
CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR)
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR) Question: What is the highest Year, when Finish is "51", and when Start is less than 64? [/INST] SELECT MAX(year) FROM table_name_29 WHERE finish = 51 ...
What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?
CREATE TABLE table_name_97 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR, start VARCHAR)
SELECT manufacturer FROM table_name_97 WHERE finish > 29 AND start < 23 AND year = 1973
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (manufacturer VARCHAR, year VARCHAR, finish VARCHAR, start VARCHAR) Question: What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"? [/INST] SELE...
What is the opposing team with 11 against?
CREATE TABLE table_name_7 (opposing_teams VARCHAR, against VARCHAR)
SELECT opposing_teams FROM table_name_7 WHERE against = 11
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (opposing_teams VARCHAR, against VARCHAR) Question: What is the opposing team with 11 against? [/INST] SELECT opposing_teams FROM table_name_7 WHERE against = 11 </s>
What is the venue where Argentina was the opposing team in a test match?
CREATE TABLE table_name_26 (venue VARCHAR, opposing_teams VARCHAR, status VARCHAR)
SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_26 (venue VARCHAR, opposing_teams VARCHAR, status VARCHAR) Question: What is the venue where Argentina was the opposing team in a test match? [/INST] SELECT venue FROM table_name_26 WHERE opposing_tea...
What is the status of the game against France with more than 16 against?
CREATE TABLE table_name_18 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT status FROM table_name_18 WHERE against > 16 AND opposing_teams = "france"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR) Question: What is the status of the game against France with more than 16 against? [/INST] SELECT status FROM table_name_18 WHERE against >...
On what date is there a status of Five Nations and an against of 23?
CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT date FROM table_name_10 WHERE status = "five nations" AND against = 23
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (date VARCHAR, status VARCHAR, against VARCHAR) Question: On what date is there a status of Five Nations and an against of 23? [/INST] SELECT date FROM table_name_10 WHERE status = "five nations" A...
What model has a number built smaller than 6.526, and the Chassis code w109.015?
CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR)
SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = "w109.015"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR) Question: What model has a number built smaller than 6.526, and the Chassis code w109.015? [/INST] SELECT model FROM table_name_82 WHERE ...
What was the record at Tiger Stadium?
CREATE TABLE table_name_30 (record VARCHAR, game_site VARCHAR)
SELECT record FROM table_name_30 WHERE game_site = "tiger stadium"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (record VARCHAR, game_site VARCHAR) Question: What was the record at Tiger Stadium? [/INST] SELECT record FROM table_name_30 WHERE game_site = "tiger stadium" </s>