instruction
stringlengths 12
244
| input
stringlengths 27
489
| output
stringlengths 18
557
| text
stringlengths 194
1.14k
|
---|---|---|---|
In 2006, what is the highest number for Live births in the County of Cumbria that has a TFR larger than 1.76? | CREATE TABLE table_name_6 (live_births_2006 INTEGER, county VARCHAR, tfr_2006 VARCHAR) | SELECT MAX(live_births_2006) FROM table_name_6 WHERE county = "cumbria" AND tfr_2006 > 1.76 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (live_births_2006 INTEGER, county VARCHAR, tfr_2006 VARCHAR) Question: In 2006, what is the highest number for Live births in the County of Cumbria that has a TFR larger than 1.76? [/INST] SELECT MAX(live_births_2006) FROM table_name_6 WHERE county = "cumbria" AND tfr_2006 > 1.76 </s> |
Question doesn't make sense since there is no team of pramac d'antin ducati | CREATE TABLE table_name_46 (year INTEGER, team VARCHAR) | SELECT MIN(year) FROM table_name_46 WHERE team = "pramac d'antin ducati" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (year INTEGER, team VARCHAR) Question: Question doesn't make sense since there is no team of pramac d'antin ducati [/INST] SELECT MIN(year) FROM table_name_46 WHERE team = "pramac d'antin ducati" </s> |
Which player from the Ironi Nahariya club was born in 1980? | CREATE TABLE table_name_4 (player VARCHAR, current_club VARCHAR, year_born VARCHAR) | SELECT player FROM table_name_4 WHERE current_club = "ironi nahariya" AND year_born = 1980 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (player VARCHAR, current_club VARCHAR, year_born VARCHAR) Question: Which player from the Ironi Nahariya club was born in 1980? [/INST] SELECT player FROM table_name_4 WHERE current_club = "ironi nahariya" AND year_born = 1980 </s> |
Which position from the Cherkassy Monkeys' club was born after 1978? | CREATE TABLE table_name_10 (position VARCHAR, year_born VARCHAR, current_club VARCHAR) | SELECT position FROM table_name_10 WHERE year_born > 1978 AND current_club = "cherkassy monkeys" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_10 (position VARCHAR, year_born VARCHAR, current_club VARCHAR) Question: Which position from the Cherkassy Monkeys' club was born after 1978? [/INST] SELECT position FROM table_name_10 WHERE year_born > 1978 AND current_club = "cherkassy monkeys" </s> |
What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438? | CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR) | SELECT AVG(rank) FROM table_name_19 WHERE headquarters = "toronto, on" AND screens < 1 OFFSET 438 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR) Question: What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438? [/INST] SELECT AVG(rank) FROM table_name_19 WHERE headquarters = "toronto, on" AND screens < 1 OFFSET 438 ROWS </s> |
what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment? | CREATE TABLE table_name_3 (rank INTEGER, sites VARCHAR, circuit VARCHAR) | SELECT SUM(rank) FROM table_name_3 WHERE sites > 62 AND circuit = "cineplex entertainment" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (rank INTEGER, sites VARCHAR, circuit VARCHAR) Question: what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment? [/INST] SELECT SUM(rank) FROM table_name_3 WHERE sites > 62 AND circuit = "cineplex entertainment" </s> |
what is the number of sites when the number of screens is 687 and rank is more than 7? | CREATE TABLE table_name_8 (sites INTEGER, screens VARCHAR, rank VARCHAR) | SELECT AVG(sites) FROM table_name_8 WHERE screens = 687 AND rank > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (sites INTEGER, screens VARCHAR, rank VARCHAR) Question: what is the number of sites when the number of screens is 687 and rank is more than 7? [/INST] SELECT AVG(sites) FROM table_name_8 WHERE screens = 687 AND rank > 7 </s> |
what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4? | CREATE TABLE table_name_33 (sites INTEGER, headquarters VARCHAR, rank VARCHAR) | SELECT MIN(sites) FROM table_name_33 WHERE headquarters = "columbus, ga" AND rank < 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_33 (sites INTEGER, headquarters VARCHAR, rank VARCHAR) Question: what is the lowest number of sites when the headquarters are in columbus, ga and the rank is smaller than 4? [/INST] SELECT MIN(sites) FROM table_name_33 WHERE headquarters = "columbus, ga" AND rank < 4 </s> |
What is the Other transliteration for value 1 000? | CREATE TABLE table_name_9 (other VARCHAR, value VARCHAR) | SELECT other FROM table_name_9 WHERE value = "1 000" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (other VARCHAR, value VARCHAR) Question: What is the Other transliteration for value 1 000? [/INST] SELECT other FROM table_name_9 WHERE value = "1 000" </s> |
What is the word form for the ALA-LC transliteration of muay s″ain? | CREATE TABLE table_name_55 (word_form VARCHAR, ala_lc VARCHAR) | SELECT word_form FROM table_name_55 WHERE ala_lc = "muay s″ain" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (word_form VARCHAR, ala_lc VARCHAR) Question: What is the word form for the ALA-LC transliteration of muay s″ain? [/INST] SELECT word_form FROM table_name_55 WHERE ala_lc = "muay s″ain" </s> |
What number value has the Other transliteration of muoy roy? | CREATE TABLE table_name_90 (value VARCHAR, other VARCHAR) | SELECT value FROM table_name_90 WHERE other = "muoy roy" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_90 (value VARCHAR, other VARCHAR) Question: What number value has the Other transliteration of muoy roy? [/INST] SELECT value FROM table_name_90 WHERE other = "muoy roy" </s> |
What is the word form for the ALA-LC transliteration of muay bân? | CREATE TABLE table_name_79 (word_form VARCHAR, ala_lc VARCHAR) | SELECT word_form FROM table_name_79 WHERE ala_lc = "muay bân" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (word_form VARCHAR, ala_lc VARCHAR) Question: What is the word form for the ALA-LC transliteration of muay bân? [/INST] SELECT word_form FROM table_name_79 WHERE ala_lc = "muay bân" </s> |
Name the loss when the record is 76-81 | CREATE TABLE table_name_1 (loss VARCHAR, record VARCHAR) | SELECT loss FROM table_name_1 WHERE record = "76-81" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_1 (loss VARCHAR, record VARCHAR) Question: Name the loss when the record is 76-81 [/INST] SELECT loss FROM table_name_1 WHERE record = "76-81" </s> |
Which average bronze had a silver greater than 2 and a gold larger than 7? | CREATE TABLE table_name_9 (bronze INTEGER, silver VARCHAR, gold VARCHAR) | SELECT AVG(bronze) FROM table_name_9 WHERE silver > 2 AND gold > 7 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_9 (bronze INTEGER, silver VARCHAR, gold VARCHAR) Question: Which average bronze had a silver greater than 2 and a gold larger than 7? [/INST] SELECT AVG(bronze) FROM table_name_9 WHERE silver > 2 AND gold > 7 </s> |
When the total was 11 and silver was greater than 4 what was the highest gold? | CREATE TABLE table_name_15 (gold INTEGER, total VARCHAR, silver VARCHAR) | SELECT MAX(gold) FROM table_name_15 WHERE total = 11 AND silver > 4 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (gold INTEGER, total VARCHAR, silver VARCHAR) Question: When the total was 11 and silver was greater than 4 what was the highest gold? [/INST] SELECT MAX(gold) FROM table_name_15 WHERE total = 11 AND silver > 4 </s> |
How many bronze had a total less than 4 and gold bigger than 1? | CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, gold VARCHAR) | SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, gold VARCHAR) Question: How many bronze had a total less than 4 and gold bigger than 1? [/INST] SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 1 </s> |
What is the enrollment associated with a capacity greater then 35,650? | CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER) | SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER) Question: What is the enrollment associated with a capacity greater then 35,650? [/INST] SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650 ROWS </s> |
Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th? | CREATE TABLE table_name_88 (date VARCHAR, opposing_pitcher VARCHAR, inning VARCHAR) | SELECT date FROM table_name_88 WHERE opposing_pitcher = "jack morris" AND inning = "4th" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_88 (date VARCHAR, opposing_pitcher VARCHAR, inning VARCHAR) Question: Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th? [/INST] SELECT date FROM table_name_88 WHERE opposing_pitcher = "jack morris" AND inning = "4th" </s> |
Which average Home Run has a Game of 89? | CREATE TABLE table_name_55 (home_run INTEGER, game VARCHAR) | SELECT AVG(home_run) FROM table_name_55 WHERE game = 89 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_55 (home_run INTEGER, game VARCHAR) Question: Which average Home Run has a Game of 89? [/INST] SELECT AVG(home_run) FROM table_name_55 WHERE game = 89 </s> |
Which team has a Home Run of 27? | CREATE TABLE table_name_18 (team VARCHAR, home_run VARCHAR) | SELECT team FROM table_name_18 WHERE home_run = 27 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (team VARCHAR, home_run VARCHAR) Question: Which team has a Home Run of 27? [/INST] SELECT team FROM table_name_18 WHERE home_run = 27 </s> |
Which Assist/pass has a Score of 1-0, and a Goal of 5? | CREATE TABLE table_name_85 (assist_pass VARCHAR, score VARCHAR, goal VARCHAR) | SELECT assist_pass FROM table_name_85 WHERE score = "1-0" AND goal = "5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_85 (assist_pass VARCHAR, score VARCHAR, goal VARCHAR) Question: Which Assist/pass has a Score of 1-0, and a Goal of 5? [/INST] SELECT assist_pass FROM table_name_85 WHERE score = "1-0" AND goal = "5" </s> |
Which Assist/pass has a Result of 6-2? | CREATE TABLE table_name_73 (assist_pass VARCHAR, result VARCHAR) | SELECT assist_pass FROM table_name_73 WHERE result = "6-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (assist_pass VARCHAR, result VARCHAR) Question: Which Assist/pass has a Result of 6-2? [/INST] SELECT assist_pass FROM table_name_73 WHERE result = "6-2" </s> |
Which Assist/pass has a Goal of 5? | CREATE TABLE table_name_31 (assist_pass VARCHAR, goal VARCHAR) | SELECT assist_pass FROM table_name_31 WHERE goal = "5" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (assist_pass VARCHAR, goal VARCHAR) Question: Which Assist/pass has a Goal of 5? [/INST] SELECT assist_pass FROM table_name_31 WHERE goal = "5" </s> |
Which location has a Goal of 2? | CREATE TABLE table_name_25 (location VARCHAR, goal VARCHAR) | SELECT location FROM table_name_25 WHERE goal = "2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (location VARCHAR, goal VARCHAR) Question: Which location has a Goal of 2? [/INST] SELECT location FROM table_name_25 WHERE goal = "2" </s> |
Which lineup has a Location of usa virginia beach? | CREATE TABLE table_name_95 (lineup VARCHAR, location VARCHAR) | SELECT lineup FROM table_name_95 WHERE location = "usa virginia beach" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (lineup VARCHAR, location VARCHAR) Question: Which lineup has a Location of usa virginia beach? [/INST] SELECT lineup FROM table_name_95 WHERE location = "usa virginia beach" </s> |
Which date had a score of 5-1? | CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_20 WHERE score = "5-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR) Question: Which date had a score of 5-1? [/INST] SELECT date FROM table_name_20 WHERE score = "5-1" </s> |
What result had a score of 2-1? | CREATE TABLE table_name_73 (result VARCHAR, score VARCHAR) | SELECT result FROM table_name_73 WHERE score = "2-1" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_73 (result VARCHAR, score VARCHAR) Question: What result had a score of 2-1? [/INST] SELECT result FROM table_name_73 WHERE score = "2-1" </s> |
Which date had a score of 3-2? | CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_52 WHERE score = "3-2" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR) Question: Which date had a score of 3-2? [/INST] SELECT date FROM table_name_52 WHERE score = "3-2" </s> |
What is the oldest model Porsche v12 that has points less than or equal to 0. | CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR) | SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR, pts VARCHAR) Question: What is the oldest model Porsche v12 that has points less than or equal to 0. [/INST] SELECT MIN(year) FROM table_name_98 WHERE engine = "porsche v12" AND pts < 0 </s> |
Which design uses the theme alpine skiing? | CREATE TABLE table_name_50 (design VARCHAR, theme VARCHAR) | SELECT design FROM table_name_50 WHERE theme = "alpine skiing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (design VARCHAR, theme VARCHAR) Question: Which design uses the theme alpine skiing? [/INST] SELECT design FROM table_name_50 WHERE theme = "alpine skiing" </s> |
When did the Theme of bobsleigh release? | CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR) | SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_56 (date_of_issue VARCHAR, theme VARCHAR) Question: When did the Theme of bobsleigh release? [/INST] SELECT date_of_issue FROM table_name_56 WHERE theme = "bobsleigh" </s> |
What is the highest pts after 1952 with connaught type a? | CREATE TABLE table_name_79 (pts INTEGER, year VARCHAR, chassis VARCHAR) | SELECT MAX(pts) FROM table_name_79 WHERE year > 1952 AND chassis = "connaught type a" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (pts INTEGER, year VARCHAR, chassis VARCHAR) Question: What is the highest pts after 1952 with connaught type a? [/INST] SELECT MAX(pts) FROM table_name_79 WHERE year > 1952 AND chassis = "connaught type a" </s> |
Who did the Chiefs play in Week 8? | CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_30 WHERE week = 8 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR) Question: Who did the Chiefs play in Week 8? [/INST] SELECT opponent FROM table_name_30 WHERE week = 8 </s> |
On what surface was the 26 August 2001 tournament played? | CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_68 WHERE date = "26 august 2001" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR) Question: On what surface was the 26 August 2001 tournament played? [/INST] SELECT surface FROM table_name_68 WHERE date = "26 august 2001" </s> |
What is the average capacity for 150 suites? | CREATE TABLE table_name_46 (capacity INTEGER, suites VARCHAR) | SELECT AVG(capacity) FROM table_name_46 WHERE suites = "150" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (capacity INTEGER, suites VARCHAR) Question: What is the average capacity for 150 suites? [/INST] SELECT AVG(capacity) FROM table_name_46 WHERE suites = "150" </s> |
Where is the Eren Talu bidding project located? | CREATE TABLE table_name_30 (location VARCHAR, project VARCHAR) | SELECT location FROM table_name_30 WHERE project = "eren talu bidding project" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (location VARCHAR, project VARCHAR) Question: Where is the Eren Talu bidding project located? [/INST] SELECT location FROM table_name_30 WHERE project = "eren talu bidding project" </s> |
Which location has a capacity larger than 52,000? | CREATE TABLE table_name_94 (location VARCHAR, capacity INTEGER) | SELECT location FROM table_name_94 WHERE capacity > 52 OFFSET 000 ROWS | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_94 (location VARCHAR, capacity INTEGER) Question: Which location has a capacity larger than 52,000? [/INST] SELECT location FROM table_name_94 WHERE capacity > 52 OFFSET 000 ROWS </s> |
What is the highest capacity in Aslantepe in 2002-2005? | CREATE TABLE table_name_97 (capacity INTEGER, location VARCHAR, year VARCHAR) | SELECT MAX(capacity) FROM table_name_97 WHERE location = "aslantepe" AND year = "2002-2005" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_97 (capacity INTEGER, location VARCHAR, year VARCHAR) Question: What is the highest capacity in Aslantepe in 2002-2005? [/INST] SELECT MAX(capacity) FROM table_name_97 WHERE location = "aslantepe" AND year = "2002-2005" </s> |
What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០? | CREATE TABLE table_name_40 (ungegn VARCHAR, khmer INTEGER) | SELECT ungegn FROM table_name_40 WHERE khmer > ១០០០០០០០០ | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (ungegn VARCHAR, khmer INTEGER) Question: What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០? [/INST] SELECT ungegn FROM table_name_40 WHERE khmer > ១០០០០០០០០ </s> |
What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn? | CREATE TABLE table_name_39 (word_form VARCHAR, khmer VARCHAR, ungegn VARCHAR) | SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = "(muŏy) dáb leăn" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (word_form VARCHAR, khmer VARCHAR, ungegn VARCHAR) Question: What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn? [/INST] SELECT word_form FROM table_name_39 WHERE khmer > ១០០០០០ AND ungegn = "(muŏy) dáb leăn" </s> |
What is the UNGEGN, when the Value is 10 000? | CREATE TABLE table_name_34 (ungegn VARCHAR, value VARCHAR) | SELECT ungegn FROM table_name_34 WHERE value = "10 000" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_34 (ungegn VARCHAR, value VARCHAR) Question: What is the UNGEGN, when the Value is 10 000? [/INST] SELECT ungegn FROM table_name_34 WHERE value = "10 000" </s> |
Name the 2008 for wta premier mandatory tournaments of 2007 | CREATE TABLE table_name_77 (Id VARCHAR) | SELECT 2008 FROM table_name_77 WHERE 2007 = "wta premier mandatory tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (Id VARCHAR) Question: Name the 2008 for wta premier mandatory tournaments of 2007 [/INST] SELECT 2008 FROM table_name_77 WHERE 2007 = "wta premier mandatory tournaments" </s> |
Name the tournament of beijing | CREATE TABLE table_name_71 (tournament VARCHAR) | SELECT 2011 FROM table_name_71 WHERE tournament = "beijing" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (tournament VARCHAR) Question: Name the tournament of beijing [/INST] SELECT 2011 FROM table_name_71 WHERE tournament = "beijing" </s> |
Name the 2009 for 2007 of 2r and tournament of wimbledon | CREATE TABLE table_name_35 (tournament VARCHAR) | SELECT 2009 FROM table_name_35 WHERE 2007 = "2r" AND tournament = "wimbledon" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_35 (tournament VARCHAR) Question: Name the 2009 for 2007 of 2r and tournament of wimbledon [/INST] SELECT 2009 FROM table_name_35 WHERE 2007 = "2r" AND tournament = "wimbledon" </s> |
Name the 2011 for 2010 of olympic games | CREATE TABLE table_name_64 (Id VARCHAR) | SELECT 2011 FROM table_name_64 WHERE 2010 = "olympic games" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (Id VARCHAR) Question: Name the 2011 for 2010 of olympic games [/INST] SELECT 2011 FROM table_name_64 WHERE 2010 = "olympic games" </s> |
Name the 2011 for tokyo tournament | CREATE TABLE table_name_62 (tournament VARCHAR) | SELECT 2011 FROM table_name_62 WHERE tournament = "tokyo" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_62 (tournament VARCHAR) Question: Name the 2011 for tokyo tournament [/INST] SELECT 2011 FROM table_name_62 WHERE tournament = "tokyo" </s> |
Name the 2009 for wta premier mandatory tournaments | CREATE TABLE table_name_99 (tournament VARCHAR) | SELECT 2009 FROM table_name_99 WHERE tournament = "wta premier mandatory tournaments" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (tournament VARCHAR) Question: Name the 2009 for wta premier mandatory tournaments [/INST] SELECT 2009 FROM table_name_99 WHERE tournament = "wta premier mandatory tournaments" </s> |
Which year did Ray Crawford the Kurtis Kraft 500g chassis? | CREATE TABLE table_name_70 (year VARCHAR, chassis VARCHAR) | SELECT year FROM table_name_70 WHERE chassis = "kurtis kraft 500g" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (year VARCHAR, chassis VARCHAR) Question: Which year did Ray Crawford the Kurtis Kraft 500g chassis? [/INST] SELECT year FROM table_name_70 WHERE chassis = "kurtis kraft 500g" </s> |
What city had a july high below 84, and a january low of 34.3? | CREATE TABLE table_name_84 (city VARCHAR, july__avg_high_°f_ VARCHAR, january__avg_low_°f_ VARCHAR) | SELECT city FROM table_name_84 WHERE july__avg_high_°f_ < 84 AND january__avg_low_°f_ = "34.3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_84 (city VARCHAR, july__avg_high_°f_ VARCHAR, january__avg_low_°f_ VARCHAR) Question: What city had a july high below 84, and a january low of 34.3? [/INST] SELECT city FROM table_name_84 WHERE july__avg_high_°f_ < 84 AND january__avg_low_°f_ = "34.3" </s> |
What is the july average low associated with a january average high of 30.4? | CREATE TABLE table_name_28 (july__avg_low_ VARCHAR, january__avg_high_°f_ VARCHAR) | SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = "30.4" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (july__avg_low_ VARCHAR, january__avg_high_°f_ VARCHAR) Question: What is the july average low associated with a january average high of 30.4? [/INST] SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = "30.4" </s> |
Which class has an identifier of CBUA-FM? | CREATE TABLE table_name_50 (class VARCHAR, identifier VARCHAR) | SELECT class FROM table_name_50 WHERE identifier = "cbua-fm" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (class VARCHAR, identifier VARCHAR) Question: Which class has an identifier of CBUA-FM? [/INST] SELECT class FROM table_name_50 WHERE identifier = "cbua-fm" </s> |
What is the city of license for the frequency 90.1 FM? | CREATE TABLE table_name_15 (city_of_license VARCHAR, frequency VARCHAR) | SELECT city_of_license FROM table_name_15 WHERE frequency = "90.1 fm" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (city_of_license VARCHAR, frequency VARCHAR) Question: What is the city of license for the frequency 90.1 FM? [/INST] SELECT city_of_license FROM table_name_15 WHERE frequency = "90.1 fm" </s> |
What is the power when the city of license is Beaver Creek? | CREATE TABLE table_name_50 (power VARCHAR, city_of_license VARCHAR) | SELECT power FROM table_name_50 WHERE city_of_license = "beaver creek" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (power VARCHAR, city_of_license VARCHAR) Question: What is the power when the city of license is Beaver Creek? [/INST] SELECT power FROM table_name_50 WHERE city_of_license = "beaver creek" </s> |
What is the city of license when the class is LP and the identifier is CBDK? | CREATE TABLE table_name_70 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR) | SELECT city_of_license FROM table_name_70 WHERE class = "lp" AND identifier = "cbdk" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR) Question: What is the city of license when the class is LP and the identifier is CBDK? [/INST] SELECT city_of_license FROM table_name_70 WHERE class = "lp" AND identifier = "cbdk" </s> |
What is the class when the frequency is 560 AM? | CREATE TABLE table_name_57 (class VARCHAR, frequency VARCHAR) | SELECT class FROM table_name_57 WHERE frequency = "560 am" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_57 (class VARCHAR, frequency VARCHAR) Question: What is the class when the frequency is 560 AM? [/INST] SELECT class FROM table_name_57 WHERE frequency = "560 am" </s> |
What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9? | CREATE TABLE table_name_16 (assets__us INTEGER, company VARCHAR, revenues__us$_billion_ VARCHAR) | SELECT MIN(assets__us) AS $_billion_ FROM table_name_16 WHERE company = "piraeus bank" AND revenues__us$_billion_ < 3.9 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (assets__us INTEGER, company VARCHAR, revenues__us$_billion_ VARCHAR) Question: What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9? [/INST] SELECT MIN(assets__us) AS $_billion_ FROM table_name_16 WHERE company = "piraeus bank" AND revenues__us$_billion_ < 3.9 </s> |
What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1? | CREATE TABLE table_name_87 (market_value__us INTEGER, rank VARCHAR, revenues__us$_billion_ VARCHAR, company VARCHAR) | SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = "national bank of greece" AND rank < 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (market_value__us INTEGER, rank VARCHAR, revenues__us$_billion_ VARCHAR, company VARCHAR) Question: What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1? [/INST] SELECT AVG(market_value__us) AS $_billion_ FROM table_name_87 WHERE revenues__us$_billion_ > 6.2 AND company = "national bank of greece" AND rank < 1 </s> |
Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3? | CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR) | SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR) Question: Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3? [/INST] SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3 </s> |
Tell me the venue with result of eng by 6 wkts | CREATE TABLE table_name_72 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_72 WHERE result = "eng by 6 wkts" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (venue VARCHAR, result VARCHAR) Question: Tell me the venue with result of eng by 6 wkts [/INST] SELECT venue FROM table_name_72 WHERE result = "eng by 6 wkts" </s> |
Name the Home captain for venue of the oval | CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR) | SELECT home_captain FROM table_name_14 WHERE venue = "the oval" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR) Question: Name the Home captain for venue of the oval [/INST] SELECT home_captain FROM table_name_14 WHERE venue = "the oval" </s> |
Name the away captain with result of wi by 9 wkts | CREATE TABLE table_name_69 (away_captain VARCHAR, result VARCHAR) | SELECT away_captain FROM table_name_69 WHERE result = "wi by 9 wkts" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_69 (away_captain VARCHAR, result VARCHAR) Question: Name the away captain with result of wi by 9 wkts [/INST] SELECT away_captain FROM table_name_69 WHERE result = "wi by 9 wkts" </s> |
Name the venue for eng by 6 wkts | CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_46 WHERE result = "eng by 6 wkts" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR) Question: Name the venue for eng by 6 wkts [/INST] SELECT venue FROM table_name_46 WHERE result = "eng by 6 wkts" </s> |
What is the date of the last performance when the style is street dance and the name is George Maguire? | CREATE TABLE table_name_77 (last_performance VARCHAR, style VARCHAR, name VARCHAR) | SELECT last_performance FROM table_name_77 WHERE style = "street dance" AND name = "george maguire" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (last_performance VARCHAR, style VARCHAR, name VARCHAR) Question: What is the date of the last performance when the style is street dance and the name is George Maguire? [/INST] SELECT last_performance FROM table_name_77 WHERE style = "street dance" AND name = "george maguire" </s> |
What is the date of the last performance for Liam Mower? | CREATE TABLE table_name_11 (last_performance VARCHAR, name VARCHAR) | SELECT last_performance FROM table_name_11 WHERE name = "liam mower" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_11 (last_performance VARCHAR, name VARCHAR) Question: What is the date of the last performance for Liam Mower? [/INST] SELECT last_performance FROM table_name_11 WHERE name = "liam mower" </s> |
How many points did the Weslake v12 get in 1966? | CREATE TABLE table_name_28 (points INTEGER, engine VARCHAR, year VARCHAR) | SELECT MAX(points) FROM table_name_28 WHERE engine = "weslake v12" AND year < 1966 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_28 (points INTEGER, engine VARCHAR, year VARCHAR) Question: How many points did the Weslake v12 get in 1966? [/INST] SELECT MAX(points) FROM table_name_28 WHERE engine = "weslake v12" AND year < 1966 </s> |
What was the name of the team in 1965 driving the Ferrari 158? | CREATE TABLE table_name_3 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_3 WHERE year = 1965 AND chassis = "ferrari 158" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_3 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) Question: What was the name of the team in 1965 driving the Ferrari 158? [/INST] SELECT entrant FROM table_name_3 WHERE year = 1965 AND chassis = "ferrari 158" </s> |
What Chassis had a Weslake v12 in it? | CREATE TABLE table_name_30 (chassis VARCHAR, engine VARCHAR) | SELECT chassis FROM table_name_30 WHERE engine = "weslake v12" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_30 (chassis VARCHAR, engine VARCHAR) Question: What Chassis had a Weslake v12 in it? [/INST] SELECT chassis FROM table_name_30 WHERE engine = "weslake v12" </s> |
Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no | CREATE TABLE table_name_13 (copaxone VARCHAR, mitoxantrone VARCHAR, betaseron__beta_1b_ VARCHAR) | SELECT copaxone FROM table_name_13 WHERE mitoxantrone = "no" AND betaseron__beta_1b_ = "no" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (copaxone VARCHAR, mitoxantrone VARCHAR, betaseron__beta_1b_ VARCHAR) Question: Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no [/INST] SELECT copaxone FROM table_name_13 WHERE mitoxantrone = "no" AND betaseron__beta_1b_ = "no" </s> |
Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147? | CREATE TABLE table_name_46 (test_career VARCHAR, total_dismissals VARCHAR, tests VARCHAR, catches VARCHAR) | SELECT test_career FROM table_name_46 WHERE tests > 41 AND catches > 33 AND total_dismissals = 147 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_46 (test_career VARCHAR, total_dismissals VARCHAR, tests VARCHAR, catches VARCHAR) Question: Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147? [/INST] SELECT test_career FROM table_name_46 WHERE tests > 41 AND catches > 33 AND total_dismissals = 147 </s> |
What is the average dismissals of 83 test and catches less than 33? | CREATE TABLE table_name_5 (total_dismissals INTEGER, tests VARCHAR, catches VARCHAR) | SELECT AVG(total_dismissals) FROM table_name_5 WHERE tests = 83 AND catches < 33 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (total_dismissals INTEGER, tests VARCHAR, catches VARCHAR) Question: What is the average dismissals of 83 test and catches less than 33? [/INST] SELECT AVG(total_dismissals) FROM table_name_5 WHERE tests = 83 AND catches < 33 </s> |
Which winner has a points classification of Tony Rominger at stage 17? | CREATE TABLE table_name_72 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR) | SELECT winner FROM table_name_72 WHERE points_classification = "tony rominger" AND stage = "17" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_72 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR) Question: Which winner has a points classification of Tony Rominger at stage 17? [/INST] SELECT winner FROM table_name_72 WHERE points_classification = "tony rominger" AND stage = "17" </s> |
Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino? | CREATE TABLE table_name_93 (stage VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) | SELECT stage FROM table_name_93 WHERE mountains_classification = "mariano piccoli" AND points_classification = "mario cipollini" AND winner = "laudelino cubino" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_93 (stage VARCHAR, winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) Question: Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino? [/INST] SELECT stage FROM table_name_93 WHERE mountains_classification = "mariano piccoli" AND points_classification = "mario cipollini" AND winner = "laudelino cubino" </s> |
Who won stage 16? | CREATE TABLE table_name_87 (winner VARCHAR, stage VARCHAR) | SELECT winner FROM table_name_87 WHERE stage = "16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (winner VARCHAR, stage VARCHAR) Question: Who won stage 16? [/INST] SELECT winner FROM table_name_87 WHERE stage = "16" </s> |
Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest? | CREATE TABLE table_name_70 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR) | SELECT mountains_classification FROM table_name_70 WHERE general_classification = "tony rominger" AND winner = "maurizio fondriest" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_70 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR) Question: Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest? [/INST] SELECT mountains_classification FROM table_name_70 WHERE general_classification = "tony rominger" AND winner = "maurizio fondriest" </s> |
What is the general classification at stage 18 that has a points classification of Tony Rominger? | CREATE TABLE table_name_59 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR) | SELECT general_classification FROM table_name_59 WHERE points_classification = "tony rominger" AND stage = "18" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_59 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR) Question: What is the general classification at stage 18 that has a points classification of Tony Rominger? [/INST] SELECT general_classification FROM table_name_59 WHERE points_classification = "tony rominger" AND stage = "18" </s> |
Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio? | CREATE TABLE table_name_5 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) | SELECT stage FROM table_name_5 WHERE mountains_classification = "mariano piccoli" AND winner = "giuseppe citterio" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_5 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) Question: Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio? [/INST] SELECT stage FROM table_name_5 WHERE mountains_classification = "mariano piccoli" AND winner = "giuseppe citterio" </s> |
What is the year First elected when the Member is John Armitage? | CREATE TABLE table_name_6 (first_elected VARCHAR, member VARCHAR) | SELECT first_elected FROM table_name_6 WHERE member = "john armitage" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_6 (first_elected VARCHAR, member VARCHAR) Question: What is the year First elected when the Member is John Armitage? [/INST] SELECT first_elected FROM table_name_6 WHERE member = "john armitage" </s> |
Who is the Electorate, when the year for First elected is 1974, and when the Party is Country? | CREATE TABLE table_name_16 (electorate VARCHAR, first_elected VARCHAR, party VARCHAR) | SELECT electorate FROM table_name_16 WHERE first_elected = "1974" AND party = "country" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_16 (electorate VARCHAR, first_elected VARCHAR, party VARCHAR) Question: Who is the Electorate, when the year for First elected is 1974, and when the Party is Country? [/INST] SELECT electorate FROM table_name_16 WHERE first_elected = "1974" AND party = "country" </s> |
Who is the Member when the Party is Alp, and when the Electorate is Grey? | CREATE TABLE table_name_66 (member VARCHAR, party VARCHAR, electorate VARCHAR) | SELECT member FROM table_name_66 WHERE party = "alp" AND electorate = "grey" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_66 (member VARCHAR, party VARCHAR, electorate VARCHAR) Question: Who is the Member when the Party is Alp, and when the Electorate is Grey? [/INST] SELECT member FROM table_name_66 WHERE party = "alp" AND electorate = "grey" </s> |
What is the State, when the year First elected is 1966, and when the Member is Alan Jarman? | CREATE TABLE table_name_13 (state VARCHAR, first_elected VARCHAR, member VARCHAR) | SELECT state FROM table_name_13 WHERE first_elected = "1966" AND member = "alan jarman" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_13 (state VARCHAR, first_elected VARCHAR, member VARCHAR) Question: What is the State, when the year First elected is 1966, and when the Member is Alan Jarman? [/INST] SELECT state FROM table_name_13 WHERE first_elected = "1966" AND member = "alan jarman" </s> |
What is the year First Elected, when the Party is Alp, and when the State is qld? | CREATE TABLE table_name_17 (first_elected VARCHAR, party VARCHAR, state VARCHAR) | SELECT first_elected FROM table_name_17 WHERE party = "alp" AND state = "qld" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (first_elected VARCHAR, party VARCHAR, state VARCHAR) Question: What is the year First Elected, when the Party is Alp, and when the State is qld? [/INST] SELECT first_elected FROM table_name_17 WHERE party = "alp" AND state = "qld" </s> |
What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp? | CREATE TABLE table_name_21 (first_elected VARCHAR, state VARCHAR, member VARCHAR) | SELECT first_elected FROM table_name_21 WHERE state = "vic" AND member = "hon don chipp" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_21 (first_elected VARCHAR, state VARCHAR, member VARCHAR) Question: What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp? [/INST] SELECT first_elected FROM table_name_21 WHERE state = "vic" AND member = "hon don chipp" </s> |
Which total number of starts has more than 2 wins and a money list rank greater than 1? | CREATE TABLE table_name_18 (starts VARCHAR, wins VARCHAR, money_list_rank VARCHAR) | SELECT COUNT(starts) FROM table_name_18 WHERE wins > 2 AND money_list_rank > 1 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (starts VARCHAR, wins VARCHAR, money_list_rank VARCHAR) Question: Which total number of starts has more than 2 wins and a money list rank greater than 1? [/INST] SELECT COUNT(starts) FROM table_name_18 WHERE wins > 2 AND money_list_rank > 1 </s> |
What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25? | CREATE TABLE table_name_98 (top_10 INTEGER, wins VARCHAR, top_25 VARCHAR) | SELECT SUM(top_10) FROM table_name_98 WHERE wins > 2 AND top_25 < 16 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_98 (top_10 INTEGER, wins VARCHAR, top_25 VARCHAR) Question: What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25? [/INST] SELECT SUM(top_10) FROM table_name_98 WHERE wins > 2 AND top_25 < 16 </s> |
What is the greatest money list ranking that has a Top 25 higher than 2? | CREATE TABLE table_name_44 (money_list_rank INTEGER, top_25 INTEGER) | SELECT MAX(money_list_rank) FROM table_name_44 WHERE top_25 < 2 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_44 (money_list_rank INTEGER, top_25 INTEGER) Question: What is the greatest money list ranking that has a Top 25 higher than 2? [/INST] SELECT MAX(money_list_rank) FROM table_name_44 WHERE top_25 < 2 </s> |
What Away team had an Attendance of 3,395? | CREATE TABLE table_name_68 (away_team VARCHAR, attendance VARCHAR) | SELECT away_team FROM table_name_68 WHERE attendance = "3,395" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_68 (away_team VARCHAR, attendance VARCHAR) Question: What Away team had an Attendance of 3,395? [/INST] SELECT away_team FROM table_name_68 WHERE attendance = "3,395" </s> |
What Home team had an Attendance of 2,776? | CREATE TABLE table_name_12 (home_team VARCHAR, attendance VARCHAR) | SELECT home_team FROM table_name_12 WHERE attendance = "2,776" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_12 (home_team VARCHAR, attendance VARCHAR) Question: What Home team had an Attendance of 2,776? [/INST] SELECT home_team FROM table_name_12 WHERE attendance = "2,776" </s> |
Which engine has more than 1 point after 1981? | CREATE TABLE table_name_71 (engine VARCHAR, points VARCHAR, year VARCHAR) | SELECT engine FROM table_name_71 WHERE points > 1 AND year > 1981 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_71 (engine VARCHAR, points VARCHAR, year VARCHAR) Question: Which engine has more than 1 point after 1981? [/INST] SELECT engine FROM table_name_71 WHERE points > 1 AND year > 1981 </s> |
Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179? | CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR) | SELECT engine FROM table_name_99 WHERE entrant = "marlboro team alfa romeo" AND chassis = "alfa romeo 179" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, chassis VARCHAR) Question: Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179? [/INST] SELECT engine FROM table_name_99 WHERE entrant = "marlboro team alfa romeo" AND chassis = "alfa romeo 179" </s> |
When has a surface of road and an event of half marathon? | CREATE TABLE table_name_63 (date VARCHAR, surface VARCHAR, event VARCHAR) | SELECT date FROM table_name_63 WHERE surface = "road" AND event = "half marathon" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_63 (date VARCHAR, surface VARCHAR, event VARCHAR) Question: When has a surface of road and an event of half marathon? [/INST] SELECT date FROM table_name_63 WHERE surface = "road" AND event = "half marathon" </s> |
Which Surface has a Place of lappeenranta? | CREATE TABLE table_name_54 (surface VARCHAR, place VARCHAR) | SELECT surface FROM table_name_54 WHERE place = "lappeenranta" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_54 (surface VARCHAR, place VARCHAR) Question: Which Surface has a Place of lappeenranta? [/INST] SELECT surface FROM table_name_54 WHERE place = "lappeenranta" </s> |
Which Class Pos have Laps smaller than 304, and a Year after 2001? | CREATE TABLE table_name_79 (class VARCHAR, laps VARCHAR, year VARCHAR) | SELECT class AS pos FROM table_name_79 WHERE laps < 304 AND year > 2001 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_79 (class VARCHAR, laps VARCHAR, year VARCHAR) Question: Which Class Pos have Laps smaller than 304, and a Year after 2001? [/INST] SELECT class AS pos FROM table_name_79 WHERE laps < 304 AND year > 2001 </s> |
What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson? | CREATE TABLE table_name_4 (laps INTEGER, year VARCHAR, co_drivers VARCHAR) | SELECT MIN(laps) FROM table_name_4 WHERE year > 2002 AND co_drivers = "alexander frei bruno besson" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (laps INTEGER, year VARCHAR, co_drivers VARCHAR) Question: What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson? [/INST] SELECT MIN(laps) FROM table_name_4 WHERE year > 2002 AND co_drivers = "alexander frei bruno besson" </s> |
How many people attended the score of w 7-6? | CREATE TABLE table_name_15 (crowd VARCHAR, score VARCHAR) | SELECT crowd FROM table_name_15 WHERE score = "w 7-6" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (crowd VARCHAR, score VARCHAR) Question: How many people attended the score of w 7-6? [/INST] SELECT crowd FROM table_name_15 WHERE score = "w 7-6" </s> |
Who lost that has a score of w 4-3? | CREATE TABLE table_name_25 (loss VARCHAR, score VARCHAR) | SELECT loss FROM table_name_25 WHERE score = "w 4-3" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_25 (loss VARCHAR, score VARCHAR) Question: Who lost that has a score of w 4-3? [/INST] SELECT loss FROM table_name_25 WHERE score = "w 4-3" </s> |
Loss of schrom happened on what date? | CREATE TABLE table_name_39 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_39 WHERE loss = "schrom" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_39 (date VARCHAR, loss VARCHAR) Question: Loss of schrom happened on what date? [/INST] SELECT date FROM table_name_39 WHERE loss = "schrom" </s> |
Opponent of @mil, and a Record of 45-16 happened on what date? | CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT date FROM table_name_95 WHERE opponent = "@mil" AND record = "45-16" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, record VARCHAR) Question: Opponent of @mil, and a Record of 45-16 happened on what date? [/INST] SELECT date FROM table_name_95 WHERE opponent = "@mil" AND record = "45-16" </s> |
Loss of willis has what record? | CREATE TABLE table_name_52 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_52 WHERE loss = "willis" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_52 (record VARCHAR, loss VARCHAR) Question: Loss of willis has what record? [/INST] SELECT record FROM table_name_52 WHERE loss = "willis" </s> |
Loss of wilcox, and a Date of jun 18 had what opponent? | CREATE TABLE table_name_95 (opponent VARCHAR, loss VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_95 WHERE loss = "wilcox" AND date = "jun 18" | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_95 (opponent VARCHAR, loss VARCHAR, date VARCHAR) Question: Loss of wilcox, and a Date of jun 18 had what opponent? [/INST] SELECT opponent FROM table_name_95 WHERE loss = "wilcox" AND date = "jun 18" </s> |
Name the to par for score of 74-74-74-71=293 | CREATE TABLE table_name_64 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_64 WHERE score = 74 - 74 - 74 - 71 = 293 | <s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (to_par VARCHAR, score VARCHAR) Question: Name the to par for score of 74-74-74-71=293 [/INST] SELECT to_par FROM table_name_64 WHERE score = 74 - 74 - 74 - 71 = 293 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.