context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_29 (rank_by_average INTEGER, competition_finish VARCHAR, average VARCHAR) | SELECT SUM(rank_by_average) FROM table_name_29 WHERE competition_finish > 8 AND average > 30 | Name the sum of rank by average with competition finish more than 8 and average larger than 30 | <s>[INST]Name the sum of rank by average with competition finish more than 8 and average larger than 30 Context: CREATE TABLE table_name_29 (rank_by_average INTEGER, competition_finish VARCHAR, average VARCHAR)[/INST]SELECT SUM(rank_by_average) FROM table_name_29 WHERE competition_finish > 8 AND average > 30</s> |
CREATE TABLE table_name_92 (pick__number INTEGER, overall VARCHAR, college VARCHAR, name VARCHAR) | SELECT MIN(pick__number) FROM table_name_92 WHERE college = "troy state" AND name = "reggie dwight" AND overall < 217 | Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217? | <s>[INST]Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217? Context: CREATE TABLE table_name_92 (pick__number INTEGER, overall VARCHAR, college VARCHAR, name VARCHAR)[/INST]SELECT MIN(pick__number) FROM table_name_92 WHERE college = "troy state... |
CREATE TABLE table_name_93 (delivery VARCHAR, quantity VARCHAR, standing VARCHAR) | SELECT delivery FROM table_name_93 WHERE quantity = 16 AND standing > 128 | Which deliver has 16 and a standing more than 128? | <s>[INST]Which deliver has 16 and a standing more than 128? Context: CREATE TABLE table_name_93 (delivery VARCHAR, quantity VARCHAR, standing VARCHAR)[/INST]SELECT delivery FROM table_name_93 WHERE quantity = 16 AND standing > 128</s> |
CREATE TABLE table_name_36 (liberal VARCHAR, dates VARCHAR, polling_firm VARCHAR, prog_cons VARCHAR) | SELECT liberal FROM table_name_36 WHERE polling_firm = "corporate research associates" AND prog_cons = "32%" AND dates = "august 2007" | According to the August 2007 poll by the Corporate Research Associates that reported 32% Prog. Cons., what percentage aligned with the Liberal party? | <s>[INST]According to the August 2007 poll by the Corporate Research Associates that reported 32% Prog. Cons., what percentage aligned with the Liberal party? Context: CREATE TABLE table_name_36 (liberal VARCHAR, dates VARCHAR, polling_firm VARCHAR, prog_cons VARCHAR)[/INST]SELECT liberal FROM table_name_36 WHERE polli... |
CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR) | SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner" | What is Joanne Carner's average score in Canadian Women's Open games that she has won? | <s>[INST]What is Joanne Carner's average score in Canadian Women's Open games that she has won? Context: CREATE TABLE table_name_70 (score INTEGER, champion VARCHAR)[/INST]SELECT AVG(score) FROM table_name_70 WHERE champion = "joanne carner"</s> |
CREATE TABLE table_name_92 (goals INTEGER, player VARCHAR) | SELECT MIN(goals) FROM table_name_92 WHERE player = "andy williams" | What is the smallest number of goals for andy williams? | <s>[INST]What is the smallest number of goals for andy williams? Context: CREATE TABLE table_name_92 (goals INTEGER, player VARCHAR)[/INST]SELECT MIN(goals) FROM table_name_92 WHERE player = "andy williams"</s> |
CREATE TABLE table_name_87 (round VARCHAR, pick VARCHAR) | SELECT COUNT(round) FROM table_name_87 WHERE pick = 20 | What is the total number of rounds of the player with a pick of 20? | <s>[INST]What is the total number of rounds of the player with a pick of 20? Context: CREATE TABLE table_name_87 (round VARCHAR, pick VARCHAR)[/INST]SELECT COUNT(round) FROM table_name_87 WHERE pick = 20</s> |
CREATE TABLE table_name_94 (starts INTEGER, chassis VARCHAR, finishes VARCHAR) | SELECT AVG(starts) FROM table_name_94 WHERE chassis = "focus rs wrc 08" AND finishes > 27 | what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27? | <s>[INST]what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27? Context: CREATE TABLE table_name_94 (starts INTEGER, chassis VARCHAR, finishes VARCHAR)[/INST]SELECT AVG(starts) FROM table_name_94 WHERE chassis = "focus rs wrc 08" AND finishes > 27</s> |
CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR) | SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = "ondragstart" | How many descriptions are there when the attribute is "ondragstart"? | <s>[INST]How many descriptions are there when the attribute is "ondragstart"? Context: CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR)[/INST]SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = "ondragstart"</s> |
CREATE TABLE table_name_40 (hometown_school VARCHAR, position VARCHAR, player VARCHAR) | SELECT hometown_school FROM table_name_40 WHERE position = "of" AND player = "mike white" | What is the hometown of Mike White? | <s>[INST]What is the hometown of Mike White? Context: CREATE TABLE table_name_40 (hometown_school VARCHAR, position VARCHAR, player VARCHAR)[/INST]SELECT hometown_school FROM table_name_40 WHERE position = "of" AND player = "mike white"</s> |
CREATE TABLE table_name_89 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_89 WHERE score = "2–4" | On what date was the score 2–4? | <s>[INST]On what date was the score 2–4? Context: CREATE TABLE table_name_89 (date VARCHAR, score VARCHAR)[/INST]SELECT date FROM table_name_89 WHERE score = "2–4"</s> |
CREATE TABLE table_name_85 (golden_tickets INTEGER, callback_venue VARCHAR) | SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = "georgia international convention center" | How many golden tickets for the georgia international convention center? | <s>[INST]How many golden tickets for the georgia international convention center? Context: CREATE TABLE table_name_85 (golden_tickets INTEGER, callback_venue VARCHAR)[/INST]SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = "georgia international convention center"</s> |
CREATE TABLE table_20354_7 (malayalam_name VARCHAR, zodiac_sign VARCHAR) | SELECT malayalam_name FROM table_20354_7 WHERE zodiac_sign = "Leo" | Name the malayalam name for leo | <s>[INST]Name the malayalam name for leo Context: CREATE TABLE table_20354_7 (malayalam_name VARCHAR, zodiac_sign VARCHAR)[/INST]SELECT malayalam_name FROM table_20354_7 WHERE zodiac_sign = "Leo"</s> |
CREATE TABLE table_name_97 (episode VARCHAR, writer_s_ VARCHAR) | SELECT episode FROM table_name_97 WHERE writer_s_ = "jonathan lewis" | What episode was written by jonathan lewis? | <s>[INST]What episode was written by jonathan lewis? Context: CREATE TABLE table_name_97 (episode VARCHAR, writer_s_ VARCHAR)[/INST]SELECT episode FROM table_name_97 WHERE writer_s_ = "jonathan lewis"</s> |
CREATE TABLE table_name_36 (country VARCHAR, score VARCHAR, player VARCHAR) | SELECT country FROM table_name_36 WHERE score = 66 AND player = "scott hoch" | What is Scott Hoch with a Score of 66 Country? | <s>[INST]What is Scott Hoch with a Score of 66 Country? Context: CREATE TABLE table_name_36 (country VARCHAR, score VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_36 WHERE score = 66 AND player = "scott hoch"</s> |
CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (first_name VARCHAR); CREATE TABLE Staff (first_name VARCHAR, staff_id VARCHAR) | SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id | What is the first name of the staff who did not give any lesson? | <s>[INST]What is the first name of the staff who did not give any lesson? Context: CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (first_name VARCHAR); CREATE TABLE Staff (first_name VARCHAR, staff_id VARCHAR)[/INST]SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T... |
CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR) | SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car__number < 59 AND driver = "mike skinner" | Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner? | <s>[INST]Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner? Context: CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR)[/INST]SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car_... |
CREATE TABLE table_name_3 (balls VARCHAR, venue VARCHAR, score VARCHAR) | SELECT balls FROM table_name_3 WHERE venue = "bristol" AND score = "104*" | What is Balls, when Venue is "Bristol", and when Score is "104*"? | <s>[INST]What is Balls, when Venue is "Bristol", and when Score is "104*"? Context: CREATE TABLE table_name_3 (balls VARCHAR, venue VARCHAR, score VARCHAR)[/INST]SELECT balls FROM table_name_3 WHERE venue = "bristol" AND score = "104*"</s> |
CREATE TABLE table_name_25 (home_stadium VARCHAR, conference VARCHAR, city VARCHAR) | SELECT home_stadium FROM table_name_25 WHERE conference = "american" AND city = "nashville, tennessee" | Which Home Stadium has American as its Conference as well as nashville, tennessee as the city? | <s>[INST]Which Home Stadium has American as its Conference as well as nashville, tennessee as the city? Context: CREATE TABLE table_name_25 (home_stadium VARCHAR, conference VARCHAR, city VARCHAR)[/INST]SELECT home_stadium FROM table_name_25 WHERE conference = "american" AND city = "nashville, tennessee"</s> |
CREATE TABLE table_name_80 (pci_express VARCHAR, memory VARCHAR, model VARCHAR) | SELECT pci_express FROM table_name_80 WHERE memory = "ddr2" AND model = "nforce 520" | What is the PCI-express with a ddr2 memory and a nforce 520 model? | <s>[INST]What is the PCI-express with a ddr2 memory and a nforce 520 model? Context: CREATE TABLE table_name_80 (pci_express VARCHAR, memory VARCHAR, model VARCHAR)[/INST]SELECT pci_express FROM table_name_80 WHERE memory = "ddr2" AND model = "nforce 520"</s> |
CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR) | SELECT COUNT(record) FROM table_27715173_6 WHERE date = "November 24" | How many records are there for the game on november 24? | <s>[INST]How many records are there for the game on november 24? Context: CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR)[/INST]SELECT COUNT(record) FROM table_27715173_6 WHERE date = "November 24"</s> |
CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR) | SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda" | How many people attended games with st kilda as the home side? | <s>[INST]How many people attended games with st kilda as the home side? Context: CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR)[/INST]SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda"</s> |
CREATE TABLE table_20967430_4 (directed_by VARCHAR, original_air_date VARCHAR) | SELECT directed_by FROM table_20967430_4 WHERE original_air_date = "March 18, 1988" | Who directed the episode that originally aired on March 18, 1988? | <s>[INST]Who directed the episode that originally aired on March 18, 1988? Context: CREATE TABLE table_20967430_4 (directed_by VARCHAR, original_air_date VARCHAR)[/INST]SELECT directed_by FROM table_20967430_4 WHERE original_air_date = "March 18, 1988"</s> |
CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR) | SELECT group FROM table_name_70 WHERE name = "espn international sports" | What is the group of ESPN International Sports? | <s>[INST]What is the group of ESPN International Sports? Context: CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR)[/INST]SELECT group FROM table_name_70 WHERE name = "espn international sports"</s> |
CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR) | SELECT COUNT(arena__capacity_) FROM table_19526911_1 WHERE head_coach = "Yuriy Korotkevich" | What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich? | <s>[INST]What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich? Context: CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR)[/INST]SELECT COUNT(arena__capacity_) FROM table_19526911_1 WHERE head_coach = "Yuriy Korotkevich"</s> |
CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR) | SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001" | What is the Launched which is on 3 may 2001? | <s>[INST]What is the Launched which is on 3 may 2001? Context: CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR)[/INST]SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001"</s> |
CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) | SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | List the name for storms and the number of affected regions for each storm. | <s>[INST]List the name for storms and the number of affected regions for each storm. Context: CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)[/INST]SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id<... |
CREATE TABLE table_name_89 (country_territory VARCHAR, mr_gay_international VARCHAR) | SELECT country_territory FROM table_name_89 WHERE mr_gay_international = "jason keatly" | In what Country/Territory did Jason Keatly win Mr. Gay Internatnional? | <s>[INST]In what Country/Territory did Jason Keatly win Mr. Gay Internatnional? Context: CREATE TABLE table_name_89 (country_territory VARCHAR, mr_gay_international VARCHAR)[/INST]SELECT country_territory FROM table_name_89 WHERE mr_gay_international = "jason keatly"</s> |
CREATE TABLE table_name_41 (district VARCHAR, party VARCHAR, results VARCHAR) | SELECT district FROM table_name_41 WHERE party = "republican" AND results = "retired to run for governor democratic gain" | What district is the incumbent Republican and the incumbent retired to run for governor democratic gain? | <s>[INST]What district is the incumbent Republican and the incumbent retired to run for governor democratic gain? Context: CREATE TABLE table_name_41 (district VARCHAR, party VARCHAR, results VARCHAR)[/INST]SELECT district FROM table_name_41 WHERE party = "republican" AND results = "retired to run for governor democrat... |
CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "chicago cardinals" AND week < 4 | What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4? | <s>[INST]What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4? Context: CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR)[/INST]SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "chicago cardinals" AND week < 4</s> |
CREATE TABLE table_20074209_1 (redskins__score_ VARCHAR, opponent__score_ VARCHAR) | SELECT redskins__score_ FROM table_20074209_1 WHERE opponent__score_ = "Tennessee Titans 27" | what is redskins (score) against tennessee titans 27 | <s>[INST]what is redskins (score) against tennessee titans 27 Context: CREATE TABLE table_20074209_1 (redskins__score_ VARCHAR, opponent__score_ VARCHAR)[/INST]SELECT redskins__score_ FROM table_20074209_1 WHERE opponent__score_ = "Tennessee Titans 27"</s> |
CREATE TABLE table_name_96 (viavoice_5_15_09 VARCHAR, csa_5_14_09 VARCHAR, tns_sofres_5_28_09 VARCHAR) | SELECT viavoice_5_15_09 FROM table_name_96 WHERE csa_5_14_09 = "5%" AND tns_sofres_5_28_09 = "4.5%" | Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%? | <s>[INST]Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%? Context: CREATE TABLE table_name_96 (viavoice_5_15_09 VARCHAR, csa_5_14_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)[/INST]SELECT viavoice_5_15_09 FROM table_name_96 WHERE csa_5_14_09 = "5%" AND tns_sofres_5_28_09 = "4.5%"</s> |
CREATE TABLE table_name_84 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_84 WHERE venue = "valley parade" | Did the Bulls win or lose at Valley Parade? | <s>[INST]Did the Bulls win or lose at Valley Parade? Context: CREATE TABLE table_name_84 (result VARCHAR, venue VARCHAR)[/INST]SELECT result FROM table_name_84 WHERE venue = "valley parade"</s> |
CREATE TABLE table_name_13 (fuml INTEGER, att VARCHAR, long VARCHAR) | SELECT AVG(fuml) FROM table_name_13 WHERE att = 5 AND long > 7 | I want to know the average Fuml for Att of 5 and long more than 7 | <s>[INST]I want to know the average Fuml for Att of 5 and long more than 7 Context: CREATE TABLE table_name_13 (fuml INTEGER, att VARCHAR, long VARCHAR)[/INST]SELECT AVG(fuml) FROM table_name_13 WHERE att = 5 AND long > 7</s> |
CREATE TABLE table_14962287_2 (league VARCHAR, name VARCHAR) | SELECT COUNT(league) FROM table_14962287_2 WHERE name = "Billy Meredith Category:Articles with hCards" | How many different Leagues are associated with Billy Meredith Category:Articles with hCards? | <s>[INST]How many different Leagues are associated with Billy Meredith Category:Articles with hCards? Context: CREATE TABLE table_14962287_2 (league VARCHAR, name VARCHAR)[/INST]SELECT COUNT(league) FROM table_14962287_2 WHERE name = "Billy Meredith Category:Articles with hCards"</s> |
CREATE TABLE table_14342367_5 (starter VARCHAR, player VARCHAR) | SELECT starter FROM table_14342367_5 WHERE player = "Herb Graver" | was herb graver a starter? | <s>[INST]was herb graver a starter? Context: CREATE TABLE table_14342367_5 (starter VARCHAR, player VARCHAR)[/INST]SELECT starter FROM table_14342367_5 WHERE player = "Herb Graver"</s> |
CREATE TABLE table_name_99 (total INTEGER, championship INTEGER) | SELECT AVG(total) FROM table_name_99 WHERE championship > 13 | Which Championship total is over 13? | <s>[INST]Which Championship total is over 13? Context: CREATE TABLE table_name_99 (total INTEGER, championship INTEGER)[/INST]SELECT AVG(total) FROM table_name_99 WHERE championship > 13</s> |
CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_5 WHERE date = "26 february 2008" | Who was the home team of the game on 26 February 2008? | <s>[INST]Who was the home team of the game on 26 February 2008? Context: CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR)[/INST]SELECT home FROM table_name_5 WHERE date = "26 february 2008"</s> |
CREATE TABLE table_11622392_1 (purse__ INTEGER) | SELECT MAX(purse__) AS $__ FROM table_11622392_1 | What is the sum of the largest purse? | <s>[INST]What is the sum of the largest purse? Context: CREATE TABLE table_11622392_1 (purse__ INTEGER)[/INST]SELECT MAX(purse__) AS $__ FROM table_11622392_1</s> |
CREATE TABLE table_25800134_4 (writer_s_ VARCHAR, season__number VARCHAR) | SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15 | Who was the writer of episode 15? | <s>[INST]Who was the writer of episode 15? Context: CREATE TABLE table_25800134_4 (writer_s_ VARCHAR, season__number VARCHAR)[/INST]SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15</s> |
CREATE TABLE table_name_56 (week INTEGER, result VARCHAR) | SELECT AVG(week) FROM table_name_56 WHERE result = "l 28–17" | Name the average week for result of l 28–17 | <s>[INST]Name the average week for result of l 28–17 Context: CREATE TABLE table_name_56 (week INTEGER, result VARCHAR)[/INST]SELECT AVG(week) FROM table_name_56 WHERE result = "l 28–17"</s> |
CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR) | SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school" | What is the area of Cromwell Primary school, which has a state authority? | <s>[INST]What is the area of Cromwell Primary school, which has a state authority? Context: CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)[/INST]SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"</s> |
CREATE TABLE table_name_91 (title__english_ VARCHAR, number_of_season VARCHAR) | SELECT title__english_ FROM table_name_91 WHERE number_of_season = 6 | What is the English title for season 6? | <s>[INST]What is the English title for season 6? Context: CREATE TABLE table_name_91 (title__english_ VARCHAR, number_of_season VARCHAR)[/INST]SELECT title__english_ FROM table_name_91 WHERE number_of_season = 6</s> |
CREATE TABLE table_name_56 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_56 WHERE home_team = "sheffield wednesday" | What was the tie resulting from Sheffield Wednesday's game? | <s>[INST]What was the tie resulting from Sheffield Wednesday's game? Context: CREATE TABLE table_name_56 (tie_no VARCHAR, home_team VARCHAR)[/INST]SELECT tie_no FROM table_name_56 WHERE home_team = "sheffield wednesday"</s> |
CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_60 WHERE home_team = "melbourne" | What venue is home for the Melbourne team? | <s>[INST]What venue is home for the Melbourne team? Context: CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR)[/INST]SELECT venue FROM table_name_60 WHERE home_team = "melbourne"</s> |
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 | What is the greatest money list ranking that has a Top 25 higher than 2? | <s>[INST]What is the greatest money list ranking that has a Top 25 higher than 2? Context: CREATE TABLE table_name_44 (money_list_rank INTEGER, top_25 INTEGER)[/INST]SELECT MAX(money_list_rank) FROM table_name_44 WHERE top_25 < 2</s> |
CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR) | SELECT school FROM table_name_76 WHERE hometown = "riverside, ca" | Which school is in Riverside, CA? | <s>[INST]Which school is in Riverside, CA? Context: CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR)[/INST]SELECT school FROM table_name_76 WHERE hometown = "riverside, ca"</s> |
CREATE TABLE table_198175_2 (swedish_name VARCHAR, residence_city VARCHAR) | SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa" | What is every Swedish name for residence city is Loviisa? | <s>[INST]What is every Swedish name for residence city is Loviisa? Context: CREATE TABLE table_198175_2 (swedish_name VARCHAR, residence_city VARCHAR)[/INST]SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa"</s> |
CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR) | SELECT MIN(rank) FROM table_name_80 WHERE time = "6:36.65" | What is the least rank for athletes with a time of 6:36.65? | <s>[INST]What is the least rank for athletes with a time of 6:36.65? Context: CREATE TABLE table_name_80 (rank INTEGER, time VARCHAR)[/INST]SELECT MIN(rank) FROM table_name_80 WHERE time = "6:36.65"</s> |
CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER) | SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12 | Which average money has a To par larger than 12? | <s>[INST]Which average money has a To par larger than 12? Context: CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER)[/INST]SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12</s> |
CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR) | SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = "Djibril Cisse" | Name the total number of club worl cup for djibril cisse | <s>[INST]Name the total number of club worl cup for djibril cisse Context: CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR)[/INST]SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = "Djibril Cisse"</s> |
CREATE TABLE table_name_79 (pos VARCHAR, team VARCHAR) | SELECT pos FROM table_name_79 WHERE team = "racing organisation course" | What was the position of the Racing Organisation Course team? | <s>[INST]What was the position of the Racing Organisation Course team? Context: CREATE TABLE table_name_79 (pos VARCHAR, team VARCHAR)[/INST]SELECT pos FROM table_name_79 WHERE team = "racing organisation course"</s> |
CREATE TABLE film (title VARCHAR, special_features VARCHAR) | SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%' | Which movies have 'Deleted Scenes' as a substring in the special feature? | <s>[INST]Which movies have 'Deleted Scenes' as a substring in the special feature? Context: CREATE TABLE film (title VARCHAR, special_features VARCHAR)[/INST]SELECT title FROM film WHERE special_features LIKE '%Deleted Scenes%'</s> |
CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_52 WHERE result = "w 31-21" | Tell mem the opponent for result of w 31-21 | <s>[INST]Tell mem the opponent for result of w 31-21 Context: CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_52 WHERE result = "w 31-21"</s> |
CREATE TABLE table_11959669_6 (location_attendance VARCHAR, score VARCHAR) | SELECT COUNT(location_attendance) FROM table_11959669_6 WHERE score = "98–90" | How many times is the score 98–90? | <s>[INST]How many times is the score 98–90? Context: CREATE TABLE table_11959669_6 (location_attendance VARCHAR, score VARCHAR)[/INST]SELECT COUNT(location_attendance) FROM table_11959669_6 WHERE score = "98–90"</s> |
CREATE TABLE table_name_16 (county INTEGER, party VARCHAR, borough VARCHAR) | SELECT SUM(county) FROM table_name_16 WHERE party = "people before profit" AND borough > 0 | How many counties have people before profit as the party, and a borough greater than 0? | <s>[INST]How many counties have people before profit as the party, and a borough greater than 0? Context: CREATE TABLE table_name_16 (county INTEGER, party VARCHAR, borough VARCHAR)[/INST]SELECT SUM(county) FROM table_name_16 WHERE party = "people before profit" AND borough > 0</s> |
CREATE TABLE table_name_60 (route INTEGER, rank VARCHAR, elevation VARCHAR) | SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = "11,312 feet 3448 m" | On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m? | <s>[INST]On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m? Context: CREATE TABLE table_name_60 (route INTEGER, rank VARCHAR, elevation VARCHAR)[/INST]SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = "11,312 feet 3448 m"</s> |
CREATE TABLE table_name_96 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_96 WHERE result = "w 33-31" | Tell me opponent for result of w 33-31 | <s>[INST]Tell me opponent for result of w 33-31 Context: CREATE TABLE table_name_96 (opponent VARCHAR, result VARCHAR)[/INST]SELECT opponent FROM table_name_96 WHERE result = "w 33-31"</s> |
CREATE TABLE table_name_30 (division INTEGER, team VARCHAR, apps VARCHAR) | SELECT MIN(division) FROM table_name_30 WHERE team = "benfica" AND apps = 22 | What is the lowest Division, when Team is "Benfica", and when Apps is 22? | <s>[INST]What is the lowest Division, when Team is "Benfica", and when Apps is 22? Context: CREATE TABLE table_name_30 (division INTEGER, team VARCHAR, apps VARCHAR)[/INST]SELECT MIN(division) FROM table_name_30 WHERE team = "benfica" AND apps = 22</s> |
CREATE TABLE table_22815568_6 (population INTEGER) | SELECT MAX(population) FROM table_22815568_6 | What is the population maximum? | <s>[INST]What is the population maximum? Context: CREATE TABLE table_22815568_6 (population INTEGER)[/INST]SELECT MAX(population) FROM table_22815568_6</s> |
CREATE TABLE phone (chip_model VARCHAR, screen_mode VARCHAR, Hardware_Model_name VARCHAR) | SELECT chip_model, screen_mode FROM phone WHERE Hardware_Model_name = "LG-P760" | What are the chip model and screen mode of the phone with hardware model name "LG-P760"? | <s>[INST]What are the chip model and screen mode of the phone with hardware model name "LG-P760"? Context: CREATE TABLE phone (chip_model VARCHAR, screen_mode VARCHAR, Hardware_Model_name VARCHAR)[/INST]SELECT chip_model, screen_mode FROM phone WHERE Hardware_Model_name = "LG-P760"</s> |
CREATE TABLE table_26996293_7 (pick__number VARCHAR, player VARCHAR) | SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie" | How many times was player brian currie picked? | <s>[INST]How many times was player brian currie picked? Context: CREATE TABLE table_26996293_7 (pick__number VARCHAR, player VARCHAR)[/INST]SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie"</s> |
CREATE TABLE table_name_17 (laps VARCHAR, car_no VARCHAR) | SELECT laps FROM table_name_17 WHERE car_no = "23" | How many laps did car 23 do? | <s>[INST]How many laps did car 23 do? Context: CREATE TABLE table_name_17 (laps VARCHAR, car_no VARCHAR)[/INST]SELECT laps FROM table_name_17 WHERE car_no = "23"</s> |
CREATE TABLE table_name_17 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR) | SELECT m60a3_patton FROM table_name_17 WHERE m1a1_abrams = "t (short tons)" | What is the M60A3 when the M1A1 is T (Short Tons)? | <s>[INST]What is the M60A3 when the M1A1 is T (Short Tons)? Context: CREATE TABLE table_name_17 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR)[/INST]SELECT m60a3_patton FROM table_name_17 WHERE m1a1_abrams = "t (short tons)"</s> |
CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park" | What was the largest crowd at vfl park? | <s>[INST]What was the largest crowd at vfl park? Context: CREATE TABLE table_name_75 (crowd INTEGER, venue VARCHAR)[/INST]SELECT MAX(crowd) FROM table_name_75 WHERE venue = "vfl park"</s> |
CREATE TABLE table_name_29 (player VARCHAR, hometown VARCHAR) | SELECT player FROM table_name_29 WHERE hometown = "chula vista, ca" | What player is from Chula Vista, Ca? | <s>[INST]What player is from Chula Vista, Ca? Context: CREATE TABLE table_name_29 (player VARCHAR, hometown VARCHAR)[/INST]SELECT player FROM table_name_29 WHERE hometown = "chula vista, ca"</s> |
CREATE TABLE airlines (country VARCHAR, active VARCHAR) | SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 | Which countries has the most number of airlines whose active status is 'Y'? | <s>[INST]Which countries has the most number of airlines whose active status is 'Y'? Context: CREATE TABLE airlines (country VARCHAR, active VARCHAR)[/INST]SELECT country FROM airlines WHERE active = 'Y' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_name_57 (pick__number INTEGER, college VARCHAR) | SELECT MAX(pick__number) FROM table_name_57 WHERE college = "penn state" | What was the highest pick for Penn State? | <s>[INST]What was the highest pick for Penn State? Context: CREATE TABLE table_name_57 (pick__number INTEGER, college VARCHAR)[/INST]SELECT MAX(pick__number) FROM table_name_57 WHERE college = "penn state"</s> |
CREATE TABLE table_name_15 (horse VARCHAR, faults VARCHAR, total VARCHAR) | SELECT horse FROM table_name_15 WHERE faults = "0" AND total = 4.1 | Tell me the horse with faults of 0 when the total is 4.1 | <s>[INST]Tell me the horse with faults of 0 when the total is 4.1 Context: CREATE TABLE table_name_15 (horse VARCHAR, faults VARCHAR, total VARCHAR)[/INST]SELECT horse FROM table_name_15 WHERE faults = "0" AND total = 4.1</s> |
CREATE TABLE Rating (rID VARCHAR, stars VARCHAR) | SELECT rID FROM Rating WHERE stars <> 4 | Find the ids of reviewers who didn't only give 4 star. | <s>[INST]Find the ids of reviewers who didn't only give 4 star. Context: CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)[/INST]SELECT rID FROM Rating WHERE stars <> 4</s> |
CREATE TABLE table_name_31 (games VARCHAR, points VARCHAR) | SELECT F.goals FROM table_name_31 WHERE games = "22 22" AND points = "012 12" | Name the F. Goals for games of 22 22 and points of 012 12 | <s>[INST]Name the F. Goals for games of 22 22 and points of 012 12 Context: CREATE TABLE table_name_31 (games VARCHAR, points VARCHAR)[/INST]SELECT F.goals FROM table_name_31 WHERE games = "22 22" AND points = "012 12"</s> |
CREATE TABLE table_name_18 (lane INTEGER, name VARCHAR) | SELECT MIN(lane) FROM table_name_18 WHERE name = "lenny krayzelburg" | Name the least lane for lenny krayzelburg | <s>[INST]Name the least lane for lenny krayzelburg Context: CREATE TABLE table_name_18 (lane INTEGER, name VARCHAR)[/INST]SELECT MIN(lane) FROM table_name_18 WHERE name = "lenny krayzelburg"</s> |
CREATE TABLE table_name_44 (res VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT res FROM table_name_44 WHERE round < 2 AND opponent = "d.j. linderman" | What is the result for rounds under 2 against D.J. Linderman? | <s>[INST]What is the result for rounds under 2 against D.J. Linderman? Context: CREATE TABLE table_name_44 (res VARCHAR, round VARCHAR, opponent VARCHAR)[/INST]SELECT res FROM table_name_44 WHERE round < 2 AND opponent = "d.j. linderman"</s> |
CREATE TABLE table_20140132_1 (location VARCHAR, team VARCHAR) | SELECT location FROM table_20140132_1 WHERE team = "Saturn" | What is the location of the team Saturn? | <s>[INST]What is the location of the team Saturn? Context: CREATE TABLE table_20140132_1 (location VARCHAR, team VARCHAR)[/INST]SELECT location FROM table_20140132_1 WHERE team = "Saturn"</s> |
CREATE TABLE table_name_9 (draft VARCHAR, pick VARCHAR) | SELECT draft FROM table_name_9 WHERE pick = "46" | In which year was the Pick #46? | <s>[INST]In which year was the Pick #46? Context: CREATE TABLE table_name_9 (draft VARCHAR, pick VARCHAR)[/INST]SELECT draft FROM table_name_9 WHERE pick = "46"</s> |
CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR) | SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)" | What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? | <s>[INST]What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? Context: CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR)[/INST]SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)"</s> |
CREATE TABLE table_name_44 (opponent VARCHAR, city VARCHAR) | SELECT opponent FROM table_name_44 WHERE city = "louisville" | Who was the opponent when the city was Louisville? | <s>[INST]Who was the opponent when the city was Louisville? Context: CREATE TABLE table_name_44 (opponent VARCHAR, city VARCHAR)[/INST]SELECT opponent FROM table_name_44 WHERE city = "louisville"</s> |
CREATE TABLE table_name_35 (municipal_code INTEGER, party VARCHAR, area VARCHAR) | SELECT SUM(municipal_code) FROM table_name_35 WHERE party = "frp" AND area = 100 | What's the Municipal code of the FRP Party with an area of 100? | <s>[INST]What's the Municipal code of the FRP Party with an area of 100? Context: CREATE TABLE table_name_35 (municipal_code INTEGER, party VARCHAR, area VARCHAR)[/INST]SELECT SUM(municipal_code) FROM table_name_35 WHERE party = "frp" AND area = 100</s> |
CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR) | SELECT population_2012_ FROM table_28741_1 WHERE country = "Indonesia" | What is the 2012 population of Indonesia? | <s>[INST]What is the 2012 population of Indonesia? Context: CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR)[/INST]SELECT population_2012_ FROM table_28741_1 WHERE country = "Indonesia"</s> |
CREATE TABLE table_name_36 (pick VARCHAR, player VARCHAR) | SELECT pick FROM table_name_36 WHERE player = "moe gardner" | What was Moe Gardner's pick? | <s>[INST]What was Moe Gardner's pick? Context: CREATE TABLE table_name_36 (pick VARCHAR, player VARCHAR)[/INST]SELECT pick FROM table_name_36 WHERE player = "moe gardner"</s> |
CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) | SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" | List the document ids for any documents with the status code done and the type code paper. | <s>[INST]List the document ids for any documents with the status code done and the type code paper. Context: CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)[/INST]SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper"... |
CREATE TABLE table_name_80 (conference VARCHAR, city VARCHAR) | SELECT conference FROM table_name_80 WHERE city = "portland, oregon" | Which conference is in Portland, Oregon? | <s>[INST]Which conference is in Portland, Oregon? Context: CREATE TABLE table_name_80 (conference VARCHAR, city VARCHAR)[/INST]SELECT conference FROM table_name_80 WHERE city = "portland, oregon"</s> |
CREATE TABLE table_name_73 (set_4 VARCHAR, score VARCHAR) | SELECT set_4 FROM table_name_73 WHERE score = "2-3" | What is the set 4 with a 2-3 score? | <s>[INST]What is the set 4 with a 2-3 score? Context: CREATE TABLE table_name_73 (set_4 VARCHAR, score VARCHAR)[/INST]SELECT set_4 FROM table_name_73 WHERE score = "2-3"</s> |
CREATE TABLE table_name_87 (qual_1 VARCHAR, team VARCHAR, best VARCHAR) | SELECT qual_1 FROM table_name_87 WHERE team = "rusport" AND best = "58.665" | What is the qual 1 for rusport and had a best of 58.665? | <s>[INST]What is the qual 1 for rusport and had a best of 58.665? Context: CREATE TABLE table_name_87 (qual_1 VARCHAR, team VARCHAR, best VARCHAR)[/INST]SELECT qual_1 FROM table_name_87 WHERE team = "rusport" AND best = "58.665"</s> |
CREATE TABLE table_name_32 (rank INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) | SELECT SUM(rank) FROM table_name_32 WHERE bronze < 1 AND nation = "switzerland (sui)" AND total < 2 | What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2? | <s>[INST]What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2? Context: CREATE TABLE table_name_32 (rank INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)[/INST]SELECT SUM(rank) FROM table_name_32 WHERE bronze < 1 AND nation = "switzerland (sui)" AND... |
CREATE TABLE College (enr INTEGER) | SELECT AVG(enr) FROM College | What is the average enrollment number? | <s>[INST]What is the average enrollment number? Context: CREATE TABLE College (enr INTEGER)[/INST]SELECT AVG(enr) FROM College</s> |
CREATE TABLE table_name_8 (population_density__per_km²_ VARCHAR, change___percentage_ VARCHAR) | SELECT population_density__per_km²_ FROM table_name_8 WHERE change___percentage_ = "-6.7" | What is the population density (per km) that has -6.7 as the change (%)? | <s>[INST]What is the population density (per km) that has -6.7 as the change (%)? Context: CREATE TABLE table_name_8 (population_density__per_km²_ VARCHAR, change___percentage_ VARCHAR)[/INST]SELECT population_density__per_km²_ FROM table_name_8 WHERE change___percentage_ = "-6.7"</s> |
CREATE TABLE table_name_88 (hosts VARCHAR, host_city VARCHAR, theme VARCHAR) | SELECT hosts FROM table_name_88 WHERE host_city = "bangkok" AND theme = "codehunters" | Who are the hosts from the event with a theme of codehunters and the host city of Bangkok? | <s>[INST]Who are the hosts from the event with a theme of codehunters and the host city of Bangkok? Context: CREATE TABLE table_name_88 (hosts VARCHAR, host_city VARCHAR, theme VARCHAR)[/INST]SELECT hosts FROM table_name_88 WHERE host_city = "bangkok" AND theme = "codehunters"</s> |
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_89 WHERE date = "march 1" | What is Record, when Date is "March 1"? | <s>[INST]What is Record, when Date is "March 1"? Context: CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)[/INST]SELECT record FROM table_name_89 WHERE date = "march 1"</s> |
CREATE TABLE table_name_7 (year VARCHAR) | SELECT SUM(1995) FROM table_name_7 WHERE year = "jiangxi" AND 2008 > 67 | What is the 1995 value with a Jiangxi year and a 2008 value bigger than 67? | <s>[INST]What is the 1995 value with a Jiangxi year and a 2008 value bigger than 67? Context: CREATE TABLE table_name_7 (year VARCHAR)[/INST]SELECT SUM(1995) FROM table_name_7 WHERE year = "jiangxi" AND 2008 > 67</s> |
CREATE TABLE table_name_57 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT MIN(total) FROM table_name_57 WHERE gold = 0 AND bronze > 2 AND silver > 1 | What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? | <s>[INST]What is the lowest total amount of medals from countries with 0 gold medals, more than 2 bronze medals, and more than 1 silver medal? Context: CREATE TABLE table_name_57 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)[/INST]SELECT MIN(total) FROM table_name_57 WHERE gold = 0 AND bronze > 2 AND si... |
CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR, opponent VARCHAR) | SELECT AVG(attendance) FROM table_name_34 WHERE week > 6 AND opponent = "at philadelphia eagles" | What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6? | <s>[INST]What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6? Context: CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR, opponent VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_34 WHERE week > 6 AND opponent = "at philadelphia eagles"</s> |
CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) | SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55" | How many viewers in millions watched the episode 23:55 minutes long? | <s>[INST]How many viewers in millions watched the episode 23:55 minutes long? Context: CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)[/INST]SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55"</s> |
CREATE TABLE table_name_90 (loses INTEGER, wins VARCHAR, pos VARCHAR) | SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3 | What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3? | <s>[INST]What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3? Context: CREATE TABLE table_name_90 (loses INTEGER, wins VARCHAR, pos VARCHAR)[/INST]SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3</s> |
CREATE TABLE table_name_51 (august VARCHAR, october VARCHAR) | SELECT august FROM table_name_51 WHERE october = "shannon long" | Who is the August playmate with the October playmate Shannon Long? | <s>[INST]Who is the August playmate with the October playmate Shannon Long? Context: CREATE TABLE table_name_51 (august VARCHAR, october VARCHAR)[/INST]SELECT august FROM table_name_51 WHERE october = "shannon long"</s> |
CREATE TABLE table_name_8 (date VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR) | SELECT date FROM table_name_8 WHERE margin_of_victory = "2 strokes" AND to_par = "−16" | A tournament on which date has a margin of victory of 2 strokes and a par of −16? | <s>[INST]A tournament on which date has a margin of victory of 2 strokes and a par of −16? Context: CREATE TABLE table_name_8 (date VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR)[/INST]SELECT date FROM table_name_8 WHERE margin_of_victory = "2 strokes" AND to_par = "−16"</s> |
CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "HOU" | Find the names of the clubs that have at least a member from the city with city code "HOU". | <s>[INST]Find the names of the clubs that have at least a member from the city with city code "HOU". Context: CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)[/INST]SELECT DISTINCT t1.clubname FROM ... |
CREATE TABLE procedures (name VARCHAR, cost VARCHAR) | SELECT name, cost FROM procedures ORDER BY cost DESC | List the name and cost of all procedures sorted by the cost from the highest to the lowest. | <s>[INST]List the name and cost of all procedures sorted by the cost from the highest to the lowest. Context: CREATE TABLE procedures (name VARCHAR, cost VARCHAR)[/INST]SELECT name, cost FROM procedures ORDER BY cost DESC</s> |
CREATE TABLE table_name_29 (goals VARCHAR, games VARCHAR) | SELECT goals FROM table_name_29 WHERE games = "47" | How many goals were there in game 47? | <s>[INST]How many goals were there in game 47? Context: CREATE TABLE table_name_29 (goals VARCHAR, games VARCHAR)[/INST]SELECT goals FROM table_name_29 WHERE games = "47"</s> |
CREATE TABLE table_name_84 (number_of_branches INTEGER, on_site_atms VARCHAR, off_site_atms VARCHAR) | SELECT SUM(number_of_branches) FROM table_name_84 WHERE on_site_atms = 1548 AND off_site_atms > 3672 | What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672? | <s>[INST]What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672? Context: CREATE TABLE table_name_84 (number_of_branches INTEGER, on_site_atms VARCHAR, off_site_atms VARCHAR)[/INST]SELECT SUM(number_of_branches) FROM table_name_84 WHERE on_site_atms = 1548 AND off_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.