context stringlengths 27 489 | answer stringlengths 18 557 | question stringlengths 12 243 | text stringlengths 103 1.05k |
|---|---|---|---|
CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR) | SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson" | What is the birthplace of Pete Sanderson? | <s>[INST]What is the birthplace of Pete Sanderson? Context: CREATE TABLE table_name_71 (birthplace VARCHAR, real_name VARCHAR)[/INST]SELECT birthplace FROM table_name_71 WHERE real_name = "pete sanderson"</s> |
CREATE TABLE table_name_86 (avg_g INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR) | SELECT MIN(avg_g) FROM table_name_86 WHERE long < 47 AND name = "frank murphy" AND gain < 569 | Which Avg/G is the lowest one that has a Long smaller than 47, and a Name of frank murphy, and a Gain smaller than 569? | <s>[INST]Which Avg/G is the lowest one that has a Long smaller than 47, and a Name of frank murphy, and a Gain smaller than 569? Context: CREATE TABLE table_name_86 (avg_g INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR)[/INST]SELECT MIN(avg_g) FROM table_name_86 WHERE long < 47 AND name = "frank murphy" AND gain < 5... |
CREATE TABLE table_name_96 (attendance INTEGER, leading_scorer VARCHAR, home VARCHAR) | SELECT MIN(attendance) FROM table_name_96 WHERE leading_scorer = "tim duncan (24)" AND home = "spurs" | How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs? | <s>[INST]How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs? Context: CREATE TABLE table_name_96 (attendance INTEGER, leading_scorer VARCHAR, home VARCHAR)[/INST]SELECT MIN(attendance) FROM table_name_96 WHERE leading_scorer = "tim duncan (24)" AND home = "sp... |
CREATE TABLE competition (Competition_type VARCHAR) | SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1 | List the most common type of competition. | <s>[INST]List the most common type of competition. Context: CREATE TABLE competition (Competition_type VARCHAR)[/INST]SELECT Competition_type FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC LIMIT 1</s> |
CREATE TABLE table_name_35 (release_date VARCHAR, director VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_35 WHERE director = "friz freleng" AND title = "tree cornered tweety" | When was Tree Cornered Tweety, directed by Friz Freleng, released? | <s>[INST]When was Tree Cornered Tweety, directed by Friz Freleng, released? Context: CREATE TABLE table_name_35 (release_date VARCHAR, director VARCHAR, title VARCHAR)[/INST]SELECT release_date FROM table_name_35 WHERE director = "friz freleng" AND title = "tree cornered tweety"</s> |
CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR) | SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India" | how many runners-up with nation being india | <s>[INST] how many runners-up with nation being india Context: CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR)[/INST]SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India"</s> |
CREATE TABLE table_name_79 (event VARCHAR, competition VARCHAR, year VARCHAR) | SELECT event FROM table_name_79 WHERE competition = "chicago marathon" AND year > 2004 | Which Event has a Competition of chicago marathon, and a Year larger than 2004? | <s>[INST]Which Event has a Competition of chicago marathon, and a Year larger than 2004? Context: CREATE TABLE table_name_79 (event VARCHAR, competition VARCHAR, year VARCHAR)[/INST]SELECT event FROM table_name_79 WHERE competition = "chicago marathon" AND year > 2004</s> |
CREATE TABLE table_14312471_4 (ground VARCHAR, crowd VARCHAR) | SELECT ground FROM table_14312471_4 WHERE crowd = 19929 | What are the ground where the crowd totals 19929? | <s>[INST]What are the ground where the crowd totals 19929? Context: CREATE TABLE table_14312471_4 (ground VARCHAR, crowd VARCHAR)[/INST]SELECT ground FROM table_14312471_4 WHERE crowd = 19929</s> |
CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR) | SELECT MIN(fa_cup_goals) FROM table_name_55 WHERE fa_cup_apps = "4" AND total_apps = "49" AND total_goals > 17 | What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals? | <s>[INST]What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals? Context: CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)[/INST]SELECT MIN(fa_cup_goals) FROM table_name_55 WHERE... |
CREATE TABLE table_name_4 (state VARCHAR, mountain_peak VARCHAR) | SELECT state FROM table_name_4 WHERE mountain_peak = "west spanish peak" | Which state is West Spanish Peak in? | <s>[INST]Which state is West Spanish Peak in? Context: CREATE TABLE table_name_4 (state VARCHAR, mountain_peak VARCHAR)[/INST]SELECT state FROM table_name_4 WHERE mountain_peak = "west spanish peak"</s> |
CREATE TABLE table_name_39 (car__number INTEGER, driver VARCHAR, pos VARCHAR) | SELECT MIN(car__number) FROM table_name_39 WHERE driver = "ryan newman" AND pos > 10 | Which Car # has a Driver of ryan newman, and a Position larger than 10? | <s>[INST]Which Car # has a Driver of ryan newman, and a Position larger than 10? Context: CREATE TABLE table_name_39 (car__number INTEGER, driver VARCHAR, pos VARCHAR)[/INST]SELECT MIN(car__number) FROM table_name_39 WHERE driver = "ryan newman" AND pos > 10</s> |
CREATE TABLE table_name_37 (score VARCHAR, edition VARCHAR, surface VARCHAR) | SELECT score FROM table_name_37 WHERE edition = 2011 AND surface = "hard (i)" | What is Score, when Edition is 2011, and when Surface is Hard (i)? | <s>[INST]What is Score, when Edition is 2011, and when Surface is Hard (i)? Context: CREATE TABLE table_name_37 (score VARCHAR, edition VARCHAR, surface VARCHAR)[/INST]SELECT score FROM table_name_37 WHERE edition = 2011 AND surface = "hard (i)"</s> |
CREATE TABLE table_name_45 (livery VARCHAR, wheel_arrangement VARCHAR, locomotive_type VARCHAR, year_built VARCHAR) | SELECT livery FROM table_name_45 WHERE locomotive_type = "steam" AND year_built > 1950 AND wheel_arrangement = "2-6-2" | What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2? | <s>[INST]What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2? Context: CREATE TABLE table_name_45 (livery VARCHAR, wheel_arrangement VARCHAR, locomotive_type VARCHAR, year_built VARCHAR)[/INST]SELECT livery FROM table_name_45 WHERE locomotive_type = "steam" AND year_built > 195... |
CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR) | SELECT AVG(attendance) FROM table_name_74 WHERE week = 7 | In week 7, what was the average attendance? | <s>[INST]In week 7, what was the average attendance? Context: CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR)[/INST]SELECT AVG(attendance) FROM table_name_74 WHERE week = 7</s> |
CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR) | SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2001 AND games_won___tests__ = "5 (3)" | What are the points against for 2001, and games won of 5 (3)? | <s>[INST]What are the points against for 2001, and games won of 5 (3)? Context: CREATE TABLE table_name_16 (points_against___tests__ VARCHAR, year_s_ VARCHAR, games_won___tests__ VARCHAR)[/INST]SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2001 AND games_won___tests__ = "5 (3)"</s> |
CREATE TABLE table_name_91 (celebrity VARCHAR, finished VARCHAR) | SELECT celebrity FROM table_name_91 WHERE finished = "7th" | Who was the celebrity who finished in 7th place? | <s>[INST]Who was the celebrity who finished in 7th place? Context: CREATE TABLE table_name_91 (celebrity VARCHAR, finished VARCHAR)[/INST]SELECT celebrity FROM table_name_91 WHERE finished = "7th"</s> |
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR) | SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = "SALE" GROUP BY T2.investor_id HAVING COUNT(*) >= 2 | Show the ids and details of the investors who have at least two transactions with type code "SALE". | <s>[INST]Show the ids and details of the investors who have at least two transactions with type code "SALE". Context: CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)[/INST]SELECT T2.investor_id, T1.Investor_details FR... |
CREATE TABLE table_name_13 (result VARCHAR, location VARCHAR) | SELECT result FROM table_name_13 WHERE location = "london 2012 women's olympic football tournament" | What is the result of the London 2012 Women's Olympic Football Tournament? | <s>[INST]What is the result of the London 2012 Women's Olympic Football Tournament? Context: CREATE TABLE table_name_13 (result VARCHAR, location VARCHAR)[/INST]SELECT result FROM table_name_13 WHERE location = "london 2012 women's olympic football tournament"</s> |
CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR) | SELECT former_school FROM table_29418619_1 WHERE hometown = "North Port, FL" | What is the former school of the player from North Port, FL? | <s>[INST]What is the former school of the player from North Port, FL? Context: CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR)[/INST]SELECT former_school FROM table_29418619_1 WHERE hometown = "North Port, FL"</s> |
CREATE TABLE table_name_85 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood" | What is the score for Collingwood as the home team? | <s>[INST]What is the score for Collingwood as the home team? Context: CREATE TABLE table_name_85 (home_team VARCHAR)[/INST]SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood"</s> |
CREATE TABLE table_name_2 (wins INTEGER, club VARCHAR, against VARCHAR) | SELECT SUM(wins) FROM table_name_2 WHERE club = "port fairy" AND against < 1510 | What is the sum of wins for Port Fairy with under 1510 against? | <s>[INST]What is the sum of wins for Port Fairy with under 1510 against? Context: CREATE TABLE table_name_2 (wins INTEGER, club VARCHAR, against VARCHAR)[/INST]SELECT SUM(wins) FROM table_name_2 WHERE club = "port fairy" AND against < 1510</s> |
CREATE TABLE table_name_66 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR) | SELECT points FROM table_name_66 WHERE chassis = "lotus 33" AND entrant = "team lotus" AND year = 1964 | What point had team Lotus whit the lotus 33 chassis in 1964? | <s>[INST]What point had team Lotus whit the lotus 33 chassis in 1964? Context: CREATE TABLE table_name_66 (points VARCHAR, year VARCHAR, chassis VARCHAR, entrant VARCHAR)[/INST]SELECT points FROM table_name_66 WHERE chassis = "lotus 33" AND entrant = "team lotus" AND year = 1964</s> |
CREATE TABLE table_name_11 (year INTEGER, participation_as VARCHAR) | SELECT AVG(year) FROM table_name_11 WHERE participation_as = "actor, film editor" | Participation as of actor, film editor has what average year? | <s>[INST]Participation as of actor, film editor has what average year? Context: CREATE TABLE table_name_11 (year INTEGER, participation_as VARCHAR)[/INST]SELECT AVG(year) FROM table_name_11 WHERE participation_as = "actor, film editor"</s> |
CREATE TABLE table_name_28 (brand VARCHAR, entrant VARCHAR) | SELECT brand FROM table_name_28 WHERE entrant = "mark henry" | What is Mark Henry's brand? | <s>[INST]What is Mark Henry's brand? Context: CREATE TABLE table_name_28 (brand VARCHAR, entrant VARCHAR)[/INST]SELECT brand FROM table_name_28 WHERE entrant = "mark henry"</s> |
CREATE TABLE table_1965650_4 (pick__number INTEGER, nhl_team VARCHAR) | SELECT MIN(pick__number) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars" | What's the smallest pick number of a player playing in Minnesota North Stars? | <s>[INST]What's the smallest pick number of a player playing in Minnesota North Stars? Context: CREATE TABLE table_1965650_4 (pick__number INTEGER, nhl_team VARCHAR)[/INST]SELECT MIN(pick__number) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"</s> |
CREATE TABLE table_name_98 (died VARCHAR, spouse_to VARCHAR) | SELECT died FROM table_name_98 WHERE spouse_to = "talal i" | When did the consort who had talal i as a spouse die? | <s>[INST]When did the consort who had talal i as a spouse die? Context: CREATE TABLE table_name_98 (died VARCHAR, spouse_to VARCHAR)[/INST]SELECT died FROM table_name_98 WHERE spouse_to = "talal i"</s> |
CREATE TABLE table_name_95 (final_position___tour VARCHAR, year VARCHAR, final_position___giro VARCHAR, rider VARCHAR) | SELECT COUNT(final_position___tour) FROM table_name_95 WHERE final_position___giro > 20 AND rider = "mariano piccoli" AND year < 1999 | What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has? | <s>[INST]What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has? Context: CREATE TABLE table_name_95 (final_position___tour VARCHAR, year VARCHAR, final_position___giro VARCHAR, rider VARCHAR)[/INST]SELECT COUNT(final_position___tour) FROM table_name_95 WH... |
CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR) | SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448" | Which Date has a Location/Attendance of verizon center 7,448? | <s>[INST]Which Date has a Location/Attendance of verizon center 7,448? Context: CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR)[/INST]SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"</s> |
CREATE TABLE table_name_32 (run_4 INTEGER, run_1 VARCHAR, run_3 VARCHAR) | SELECT SUM(run_4) FROM table_name_32 WHERE run_1 = 57.37 AND run_3 < 57.45 | Which Run 4 has a Run 1 of 57.37, and a Run 3 smaller than 57.45? | <s>[INST]Which Run 4 has a Run 1 of 57.37, and a Run 3 smaller than 57.45? Context: CREATE TABLE table_name_32 (run_4 INTEGER, run_1 VARCHAR, run_3 VARCHAR)[/INST]SELECT SUM(run_4) FROM table_name_32 WHERE run_1 = 57.37 AND run_3 < 57.45</s> |
CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR) | SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575 | How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? | <s>[INST]How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? Context: CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR)[/INST]SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakist... |
CREATE TABLE table_name_13 (stadium VARCHAR, visiting_team VARCHAR) | SELECT stadium FROM table_name_13 WHERE visiting_team = "new england patriots" | In what stadium were the New England Patriots the visiting team? | <s>[INST]In what stadium were the New England Patriots the visiting team? Context: CREATE TABLE table_name_13 (stadium VARCHAR, visiting_team VARCHAR)[/INST]SELECT stadium FROM table_name_13 WHERE visiting_team = "new england patriots"</s> |
CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR) | SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1 | How many total wins are associated with events with 1 top-10? | <s>[INST]How many total wins are associated with events with 1 top-10? Context: CREATE TABLE table_name_63 (wins INTEGER, top_10 VARCHAR)[/INST]SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1</s> |
CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR) | SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit" | Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit? | <s>[INST]Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit? Context: CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR)[/INST]SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit"</s> |
CREATE TABLE table_name_62 (name VARCHAR, nationality VARCHAR, ranking VARCHAR) | SELECT name FROM table_name_62 WHERE nationality = "spain" AND ranking > 3 | What is the name of the player from Spain with a rank lower than 3? | <s>[INST]What is the name of the player from Spain with a rank lower than 3? Context: CREATE TABLE table_name_62 (name VARCHAR, nationality VARCHAR, ranking VARCHAR)[/INST]SELECT name FROM table_name_62 WHERE nationality = "spain" AND ranking > 3</s> |
CREATE TABLE table_name_63 (writer VARCHAR, date VARCHAR) | SELECT writer FROM table_name_63 WHERE date = "january 1975" | What is the Writer with a Date that is january 1975? | <s>[INST]What is the Writer with a Date that is january 1975? Context: CREATE TABLE table_name_63 (writer VARCHAR, date VARCHAR)[/INST]SELECT writer FROM table_name_63 WHERE date = "january 1975"</s> |
CREATE TABLE table_name_67 (pick__number VARCHAR, college VARCHAR) | SELECT COUNT(pick__number) FROM table_name_67 WHERE college = "usc" | How many picks did the College of USC wind up getting? | <s>[INST]How many picks did the College of USC wind up getting? Context: CREATE TABLE table_name_67 (pick__number VARCHAR, college VARCHAR)[/INST]SELECT COUNT(pick__number) FROM table_name_67 WHERE college = "usc"</s> |
CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR) | SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Iraklis" | What's the team #2 in the round where team #1 is Iraklis? | <s>[INST]What's the team #2 in the round where team #1 is Iraklis? Context: CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR)[/INST]SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Iraklis"</s> |
CREATE TABLE table_name_85 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR) | SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = "°c ()" AND total_fat = "100g" AND polyunsaturated_fat = "11g" AND saturated_fat = "14g" | What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat? | <s>[INST]What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat? Context: CREATE TABLE table_name_85 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR)[/INST]SELECT mono... |
CREATE TABLE table_name_57 (team VARCHAR, points VARCHAR) | SELECT COUNT(1991 AS _1992) FROM table_name_57 WHERE team = "gimnasia de la plata" AND points > 113 | How much 1991-1992 has a Team of gimnasia de la plata, and more than 113 points? | <s>[INST]How much 1991-1992 has a Team of gimnasia de la plata, and more than 113 points? Context: CREATE TABLE table_name_57 (team VARCHAR, points VARCHAR)[/INST]SELECT COUNT(1991 AS _1992) FROM table_name_57 WHERE team = "gimnasia de la plata" AND points > 113</s> |
CREATE TABLE table_name_43 (ship VARCHAR, pennant_number VARCHAR) | SELECT ship FROM table_name_43 WHERE pennant_number = "h.69" | Which ship has a Pennant number of h.69? | <s>[INST]Which ship has a Pennant number of h.69? Context: CREATE TABLE table_name_43 (ship VARCHAR, pennant_number VARCHAR)[/INST]SELECT ship FROM table_name_43 WHERE pennant_number = "h.69"</s> |
CREATE TABLE table_19523142_5 (group_7 VARCHAR, group_11 VARCHAR) | SELECT group_7 FROM table_19523142_5 WHERE group_11 = "Persikos Sorong City" | When persikos sorong city played in group 11, who played in group 7? | <s>[INST]When persikos sorong city played in group 11, who played in group 7? Context: CREATE TABLE table_19523142_5 (group_7 VARCHAR, group_11 VARCHAR)[/INST]SELECT group_7 FROM table_19523142_5 WHERE group_11 = "Persikos Sorong City"</s> |
CREATE TABLE table_name_5 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | SELECT AVG(grid) FROM table_name_5 WHERE time_retired = "+6.077" AND laps < 26 | What was the grid associated with under 26 laps and a Time/Retired of +6.077? | <s>[INST]What was the grid associated with under 26 laps and a Time/Retired of +6.077? Context: CREATE TABLE table_name_5 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)[/INST]SELECT AVG(grid) FROM table_name_5 WHERE time_retired = "+6.077" AND laps < 26</s> |
CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR) | SELECT country FROM table_name_37 WHERE place = "t3" AND player = "fred couples" | Which country placed t3 and had the player Fred Couples? | <s>[INST]Which country placed t3 and had the player Fred Couples? Context: CREATE TABLE table_name_37 (country VARCHAR, place VARCHAR, player VARCHAR)[/INST]SELECT country FROM table_name_37 WHERE place = "t3" AND player = "fred couples"</s> |
CREATE TABLE table_name_66 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_66 WHERE away_team = "footscray" | What was the score for Footscray when they were the away team? | <s>[INST]What was the score for Footscray when they were the away team? Context: CREATE TABLE table_name_66 (away_team VARCHAR)[/INST]SELECT away_team AS score FROM table_name_66 WHERE away_team = "footscray"</s> |
CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo" | Tell me the date of stade des martyrs, dr congo | <s>[INST]Tell me the date of stade des martyrs, dr congo Context: CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR)[/INST]SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo"</s> |
CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) | SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "republican" AND district = "illinois 4" | How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4? | <s>[INST]How much First elected has a Result of re-elected, and a Party of republican, and a District of illinois 4? Context: CREATE TABLE table_name_76 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR)[/INST]SELECT COUNT(first_elected) FROM table_name_76 WHERE result = "re-elected" AND party = "... |
CREATE TABLE table_name_60 (builder VARCHAR, name_number VARCHAR) | SELECT builder FROM table_name_60 WHERE name_number = "joffre" | Who was the builder for joffre | <s>[INST]Who was the builder for joffre Context: CREATE TABLE table_name_60 (builder VARCHAR, name_number VARCHAR)[/INST]SELECT builder FROM table_name_60 WHERE name_number = "joffre"</s> |
CREATE TABLE table_name_85 (goals_against VARCHAR, drawn VARCHAR, lost VARCHAR, goals_for VARCHAR) | SELECT COUNT(goals_against) FROM table_name_85 WHERE lost > 7 AND goals_for < 27 AND drawn > 1 | How many goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1? | <s>[INST]How many goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1? Context: CREATE TABLE table_name_85 (goals_against VARCHAR, drawn VARCHAR, lost VARCHAR, goals_for VARCHAR)[/INST]SELECT COUNT(goals_against) FROM table_name_85 WHERE ... |
CREATE TABLE table_11665016_2 (title VARCHAR, directed_by VARCHAR) | SELECT title FROM table_11665016_2 WHERE directed_by = "Steven DePaul" | Which episode was directed by steven depaul | <s>[INST]Which episode was directed by steven depaul Context: CREATE TABLE table_11665016_2 (title VARCHAR, directed_by VARCHAR)[/INST]SELECT title FROM table_11665016_2 WHERE directed_by = "Steven DePaul"</s> |
CREATE TABLE table_19805130_3 (episode VARCHAR, rank__night_ VARCHAR) | SELECT episode FROM table_19805130_3 WHERE rank__night_ = "9" | What is the name of the episode with a night rank of 9? | <s>[INST]What is the name of the episode with a night rank of 9? Context: CREATE TABLE table_19805130_3 (episode VARCHAR, rank__night_ VARCHAR)[/INST]SELECT episode FROM table_19805130_3 WHERE rank__night_ = "9"</s> |
CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR) | SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris" | What District had Republican Incumbent Cathy McMorris? | <s>[INST]What District had Republican Incumbent Cathy McMorris? Context: CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR)[/INST]SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris"</s> |
CREATE TABLE table_name_82 (date VARCHAR, athlete VARCHAR, nation VARCHAR, place VARCHAR) | SELECT date FROM table_name_82 WHERE nation = "russia" AND place = "beijing, china" AND athlete = "yelena isinbayeva" | What's the date when Yelena Isinbayeva for Russia was in Beijing, China? | <s>[INST]What's the date when Yelena Isinbayeva for Russia was in Beijing, China? Context: CREATE TABLE table_name_82 (date VARCHAR, athlete VARCHAR, nation VARCHAR, place VARCHAR)[/INST]SELECT date FROM table_name_82 WHERE nation = "russia" AND place = "beijing, china" AND athlete = "yelena isinbayeva"</s> |
CREATE TABLE table_name_89 (date VARCHAR, visitor VARCHAR) | SELECT date FROM table_name_89 WHERE visitor = "toronto" | What is the date of the game with toronto as the visitor? | <s>[INST]What is the date of the game with toronto as the visitor? Context: CREATE TABLE table_name_89 (date VARCHAR, visitor VARCHAR)[/INST]SELECT date FROM table_name_89 WHERE visitor = "toronto"</s> |
CREATE TABLE table_27683516_3 (team VARCHAR, date_of_vacancy VARCHAR) | SELECT COUNT(team) FROM table_27683516_3 WHERE date_of_vacancy = "30 October 2010" | How many dates of vacancy were on 30 october 2010? | <s>[INST]How many dates of vacancy were on 30 october 2010? Context: CREATE TABLE table_27683516_3 (team VARCHAR, date_of_vacancy VARCHAR)[/INST]SELECT COUNT(team) FROM table_27683516_3 WHERE date_of_vacancy = "30 October 2010"</s> |
CREATE TABLE table_22261877_1 (us_viewers__million_ VARCHAR, production_code VARCHAR) | SELECT us_viewers__million_ FROM table_22261877_1 WHERE production_code = "6ACX16" | How many viewers in millions watched the episode with the production code 6acx16? | <s>[INST]How many viewers in millions watched the episode with the production code 6acx16? Context: CREATE TABLE table_22261877_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)[/INST]SELECT us_viewers__million_ FROM table_22261877_1 WHERE production_code = "6ACX16"</s> |
CREATE TABLE table_name_50 (winner VARCHAR, tournament VARCHAR) | SELECT winner FROM table_name_50 WHERE tournament = "majorca" | Name the winner for majorca | <s>[INST]Name the winner for majorca Context: CREATE TABLE table_name_50 (winner VARCHAR, tournament VARCHAR)[/INST]SELECT winner FROM table_name_50 WHERE tournament = "majorca"</s> |
CREATE TABLE table_16175064_3 (season__number VARCHAR, director_s_ VARCHAR, series__number VARCHAR) | SELECT season__number FROM table_16175064_3 WHERE director_s_ = "Donald Crombie" AND series__number = 40 | What is the season number of the episode directed by Donald Crombie and the series number is 40? | <s>[INST]What is the season number of the episode directed by Donald Crombie and the series number is 40? Context: CREATE TABLE table_16175064_3 (season__number VARCHAR, director_s_ VARCHAR, series__number VARCHAR)[/INST]SELECT season__number FROM table_16175064_3 WHERE director_s_ = "Donald Crombie" AND series__number... |
CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR) | SELECT AVG(average) FROM table_name_52 WHERE evening_gown > 9.35 AND state = "south carolina" AND swimsuit > 9.4 | What is the mean average score when the evening gown score is more than 9.35, the state is South Carolina, and the swimsuit score is more than 9.4? | <s>[INST]What is the mean average score when the evening gown score is more than 9.35, the state is South Carolina, and the swimsuit score is more than 9.4? Context: CREATE TABLE table_name_52 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR, state VARCHAR)[/INST]SELECT AVG(average) FROM table_name_52 WHERE eve... |
CREATE TABLE table_name_18 (mintage VARCHAR, theme VARCHAR) | SELECT mintage FROM table_name_18 WHERE theme = "year of the rabbit" | What's the mintage when the theme was year of the rabbit? | <s>[INST]What's the mintage when the theme was year of the rabbit? Context: CREATE TABLE table_name_18 (mintage VARCHAR, theme VARCHAR)[/INST]SELECT mintage FROM table_name_18 WHERE theme = "year of the rabbit"</s> |
CREATE TABLE table_name_31 (segment_a VARCHAR, segment_c VARCHAR) | SELECT segment_a FROM table_name_31 WHERE segment_c = "paint chip cards" | What segment A is associated with a Segment C of paint chip cards? | <s>[INST]What segment A is associated with a Segment C of paint chip cards? Context: CREATE TABLE table_name_31 (segment_a VARCHAR, segment_c VARCHAR)[/INST]SELECT segment_a FROM table_name_31 WHERE segment_c = "paint chip cards"</s> |
CREATE TABLE table_name_28 (position INTEGER, played VARCHAR, goals_against VARCHAR, wins VARCHAR) | SELECT SUM(position) FROM table_name_28 WHERE goals_against < 43 AND wins > 14 AND played > 38 | Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38? | <s>[INST]Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38? Context: CREATE TABLE table_name_28 (position INTEGER, played VARCHAR, goals_against VARCHAR, wins VARCHAR)[/INST]SELECT SUM(position) FROM table_name_28 WHERE goals_against < 43 AND wins > 14 AND played > 38<... |
CREATE TABLE table_name_72 (vessel VARCHAR, type VARCHAR) | SELECT vessel FROM table_name_72 WHERE type = "logistic support" | Which vessel has a type of logistic support? | <s>[INST]Which vessel has a type of logistic support? Context: CREATE TABLE table_name_72 (vessel VARCHAR, type VARCHAR)[/INST]SELECT vessel FROM table_name_72 WHERE type = "logistic support"</s> |
CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR) | SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5" | What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5? | <s>[INST]What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5? Context: CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR)[/INST]SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"</s> |
CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) | SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = "13 ships for usmc (plus 37 more for usn)" | what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)? | <s>[INST]what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)? Context: CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)[/INST]SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = ... |
CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_77 WHERE player = "tom watson" | Which To par has a Player of tom watson? | <s>[INST]Which To par has a Player of tom watson? Context: CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR)[/INST]SELECT to_par FROM table_name_77 WHERE player = "tom watson"</s> |
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_79 WHERE home_team = "north melbourne" | Who is the away side when north melbourne is the home side? | <s>[INST]Who is the away side when north melbourne is the home side? Context: CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)[/INST]SELECT away_team FROM table_name_79 WHERE home_team = "north melbourne"</s> |
CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR) | SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = "8,861" | What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861? | <s>[INST]What is the GDP (billion US$) of the country that has a GDP per capita (US$) of 8,861? Context: CREATE TABLE table_name_29 (gdp__billion_us$_ VARCHAR, gdp_per_capita__us$_ VARCHAR)[/INST]SELECT gdp__billion_us$_ FROM table_name_29 WHERE gdp_per_capita__us$_ = "8,861"</s> |
CREATE TABLE table_name_33 (date_of_release INTEGER, title VARCHAR) | SELECT AVG(date_of_release) FROM table_name_33 WHERE title = "thickskin" | WHAT IS THE AVERAGE DATE OF RELEASE FOR THICKSKIN? | <s>[INST]WHAT IS THE AVERAGE DATE OF RELEASE FOR THICKSKIN? Context: CREATE TABLE table_name_33 (date_of_release INTEGER, title VARCHAR)[/INST]SELECT AVG(date_of_release) FROM table_name_33 WHERE title = "thickskin"</s> |
CREATE TABLE table_name_21 (stadium VARCHAR, score VARCHAR) | SELECT stadium FROM table_name_21 WHERE score = "1 - 1 dodd 38'" | What stadium had the score 1 - 1 dodd 38'? | <s>[INST]What stadium had the score 1 - 1 dodd 38'? Context: CREATE TABLE table_name_21 (stadium VARCHAR, score VARCHAR)[/INST]SELECT stadium FROM table_name_21 WHERE score = "1 - 1 dodd 38'"</s> |
CREATE TABLE table_name_11 (max_torque_at_rpm VARCHAR, engine_name VARCHAR) | SELECT max_torque_at_rpm FROM table_name_11 WHERE engine_name = "1.2 mpi" | What is the max torque of the 1.2 mpi engine? | <s>[INST]What is the max torque of the 1.2 mpi engine? Context: CREATE TABLE table_name_11 (max_torque_at_rpm VARCHAR, engine_name VARCHAR)[/INST]SELECT max_torque_at_rpm FROM table_name_11 WHERE engine_name = "1.2 mpi"</s> |
CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR) | SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A" | What are the notes of the satellite whose nssdc id number is 1959-002a? | <s>[INST]What are the notes of the satellite whose nssdc id number is 1959-002a? Context: CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR)[/INST]SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A"</s> |
CREATE TABLE table_name_82 (artist VARCHAR, actual_title VARCHAR) | SELECT artist FROM table_name_82 WHERE actual_title = "game of thrones" | Game of Thrones was done by which artist? | <s>[INST]Game of Thrones was done by which artist? Context: CREATE TABLE table_name_82 (artist VARCHAR, actual_title VARCHAR)[/INST]SELECT artist FROM table_name_82 WHERE actual_title = "game of thrones"</s> |
CREATE TABLE table_name_79 (statistic VARCHAR, opponent VARCHAR) | SELECT statistic FROM table_name_79 WHERE opponent = "ssc-r" | When the opposing team was SSC-R what was the statistic? | <s>[INST]When the opposing team was SSC-R what was the statistic? Context: CREATE TABLE table_name_79 (statistic VARCHAR, opponent VARCHAR)[/INST]SELECT statistic FROM table_name_79 WHERE opponent = "ssc-r"</s> |
CREATE TABLE table_name_71 (location VARCHAR, host VARCHAR, national_champion VARCHAR) | SELECT location FROM table_name_71 WHERE host = "robert morris university (illinois)" AND national_champion = "lindenwood" | At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption? | <s>[INST]At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption? Context: CREATE TABLE table_name_71 (location VARCHAR, host VARCHAR, national_champion VARCHAR)[/INST]SELECT location FROM table_name_71 WHERE host = "robert morris university (illinois)" AND national_champion = "l... |
CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR) | SELECT play FROM table_name_11 WHERE company = "national theatre of greece" | what is the play when the company is national theatre of greece? | <s>[INST]what is the play when the company is national theatre of greece? Context: CREATE TABLE table_name_11 (play VARCHAR, company VARCHAR)[/INST]SELECT play FROM table_name_11 WHERE company = "national theatre of greece"</s> |
CREATE TABLE table_name_79 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_79 WHERE date = "june 26, 2006" | On June 26, 2006 the game was played on what surface? | <s>[INST]On June 26, 2006 the game was played on what surface? Context: CREATE TABLE table_name_79 (surface VARCHAR, date VARCHAR)[/INST]SELECT surface FROM table_name_79 WHERE date = "june 26, 2006"</s> |
CREATE TABLE table_name_15 (erp_w VARCHAR, frequency_mhz VARCHAR) | SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 fm" | Which ERP W has a Frequency MHz of 88.5 FM? | <s>[INST]Which ERP W has a Frequency MHz of 88.5 FM? Context: CREATE TABLE table_name_15 (erp_w VARCHAR, frequency_mhz VARCHAR)[/INST]SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 fm"</s> |
CREATE TABLE table_name_33 (language_s_ VARCHAR, original_title VARCHAR) | SELECT language_s_ FROM table_name_33 WHERE original_title = "rosie" | What is the language of the film Rosie? | <s>[INST]What is the language of the film Rosie? Context: CREATE TABLE table_name_33 (language_s_ VARCHAR, original_title VARCHAR)[/INST]SELECT language_s_ FROM table_name_33 WHERE original_title = "rosie"</s> |
CREATE TABLE table_name_50 (player VARCHAR, round INTEGER) | SELECT player FROM table_name_50 WHERE round > 8 | Which Player has a Round larger than 8? | <s>[INST]Which Player has a Round larger than 8? Context: CREATE TABLE table_name_50 (player VARCHAR, round INTEGER)[/INST]SELECT player FROM table_name_50 WHERE round > 8</s> |
CREATE TABLE table_name_70 (total INTEGER, bronze VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR) | SELECT AVG(total) FROM table_name_70 WHERE gold = 0 AND rank < 16 AND nation = "georgia" AND bronze > 2 | What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is Georgia and there is more than 2 for Bronze? | <s>[INST]What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is Georgia and there is more than 2 for Bronze? Context: CREATE TABLE table_name_70 (total INTEGER, bronze VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)[/INST]SELECT AVG(total) FROM table_name_70 WHERE gold = 0 AND... |
CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR) | SELECT listed FROM table_name_86 WHERE county = "sublette" AND location = "daniel" | What is the listed for the bridge at Daniel in Sublette county? | <s>[INST]What is the listed for the bridge at Daniel in Sublette county? Context: CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR)[/INST]SELECT listed FROM table_name_86 WHERE county = "sublette" AND location = "daniel"</s> |
CREATE TABLE table_26168687_5 (no_in_season INTEGER) | SELECT MIN(no_in_season) FROM table_26168687_5 | Name the most number in season | <s>[INST]Name the most number in season Context: CREATE TABLE table_26168687_5 (no_in_season INTEGER)[/INST]SELECT MIN(no_in_season) FROM table_26168687_5</s> |
CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR) | SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0 | What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0? | <s>[INST]What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0? Context: CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR)[/INS... |
CREATE TABLE table_name_89 (position VARCHAR, vehicle VARCHAR, year VARCHAR) | SELECT position FROM table_name_89 WHERE vehicle = "bmw" AND year = 2006 | What position did the BMW vehicle made in 2006 hold? | <s>[INST]What position did the BMW vehicle made in 2006 hold? Context: CREATE TABLE table_name_89 (position VARCHAR, vehicle VARCHAR, year VARCHAR)[/INST]SELECT position FROM table_name_89 WHERE vehicle = "bmw" AND year = 2006</s> |
CREATE TABLE table_name_99 (total INTEGER, year_s__won INTEGER) | SELECT MAX(total) FROM table_name_99 WHERE year_s__won < 1959 | What is Highest Total, when Year(s) Won is before 1959? | <s>[INST]What is Highest Total, when Year(s) Won is before 1959? Context: CREATE TABLE table_name_99 (total INTEGER, year_s__won INTEGER)[/INST]SELECT MAX(total) FROM table_name_99 WHERE year_s__won < 1959</s> |
CREATE TABLE table_name_6 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_6 WHERE attendance = "62,078" | What is the result of the game when the attendance is 62,078? | <s>[INST]What is the result of the game when the attendance is 62,078? Context: CREATE TABLE table_name_6 (result VARCHAR, attendance VARCHAR)[/INST]SELECT result FROM table_name_6 WHERE attendance = "62,078"</s> |
CREATE TABLE table_22582663_1 (states_contested INTEGER, party_name VARCHAR) | SELECT MIN(states_contested) FROM table_22582663_1 WHERE party_name = "Apna Dal" | What is the lowest number of states contested under apna dal? | <s>[INST]What is the lowest number of states contested under apna dal? Context: CREATE TABLE table_22582663_1 (states_contested INTEGER, party_name VARCHAR)[/INST]SELECT MIN(states_contested) FROM table_22582663_1 WHERE party_name = "Apna Dal"</s> |
CREATE TABLE table_name_18 (dipole_moment___d__ VARCHAR, density VARCHAR) | SELECT dipole_moment___d__ FROM table_name_18 WHERE density = "1.092 g/ml" | What dipole moment has a density of 1.092 g/ml? | <s>[INST]What dipole moment has a density of 1.092 g/ml? Context: CREATE TABLE table_name_18 (dipole_moment___d__ VARCHAR, density VARCHAR)[/INST]SELECT dipole_moment___d__ FROM table_name_18 WHERE density = "1.092 g/ml"</s> |
CREATE TABLE table_19763199_4 (jury_votes VARCHAR, televotes VARCHAR) | SELECT jury_votes FROM table_19763199_4 WHERE televotes = 7 | How many jury votes for the televote of 7? | <s>[INST]How many jury votes for the televote of 7? Context: CREATE TABLE table_19763199_4 (jury_votes VARCHAR, televotes VARCHAR)[/INST]SELECT jury_votes FROM table_19763199_4 WHERE televotes = 7</s> |
CREATE TABLE table_name_6 (released VARCHAR, album_number VARCHAR) | SELECT released FROM table_name_6 WHERE album_number = "1st" | Album # of 1st was released on what date? | <s>[INST]Album # of 1st was released on what date? Context: CREATE TABLE table_name_6 (released VARCHAR, album_number VARCHAR)[/INST]SELECT released FROM table_name_6 WHERE album_number = "1st"</s> |
CREATE TABLE Addresses (State_County VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Marketing_Region_Code VARCHAR) | SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = "CA" | What are the states or counties of the address of the stores with marketing region code "CA"? | <s>[INST]What are the states or counties of the address of the stores with marketing region code "CA"? Context: CREATE TABLE Addresses (State_County VARCHAR, Address_ID VARCHAR); CREATE TABLE Stores (Address_ID VARCHAR, Marketing_Region_Code VARCHAR)[/INST]SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 O... |
CREATE TABLE table_name_55 (tournament VARCHAR) | SELECT 2012 FROM table_name_55 WHERE tournament = "us open" | Name the 2012 for us open | <s>[INST]Name the 2012 for us open Context: CREATE TABLE table_name_55 (tournament VARCHAR)[/INST]SELECT 2012 FROM table_name_55 WHERE tournament = "us open"</s> |
CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR) | SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = "AFTER" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"? | <s>[INST]Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"? Context: CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)[/INST]SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 ... |
CREATE TABLE table_name_89 (res VARCHAR, record VARCHAR) | SELECT res FROM table_name_89 WHERE record = "2-0" | What was the resolution of the fight when matt grice had a record of 2-0? | <s>[INST]What was the resolution of the fight when matt grice had a record of 2-0? Context: CREATE TABLE table_name_89 (res VARCHAR, record VARCHAR)[/INST]SELECT res FROM table_name_89 WHERE record = "2-0"</s> |
CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR) | SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10" | Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds? | <s>[INST]Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds? Context: CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR)[/INST]SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10"</s> |
CREATE TABLE table_name_47 (general_classification VARCHAR, points_classification VARCHAR) | SELECT general_classification FROM table_name_47 WHERE points_classification = "bradley wiggins" | What is the General classification for a points classification leader of Bradley Wiggins? | <s>[INST]What is the General classification for a points classification leader of Bradley Wiggins? Context: CREATE TABLE table_name_47 (general_classification VARCHAR, points_classification VARCHAR)[/INST]SELECT general_classification FROM table_name_47 WHERE points_classification = "bradley wiggins"</s> |
CREATE TABLE table_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, gap_from_thailand_as_of_1980__times_ VARCHAR) | SELECT gap_from_thailand_as_of_2012__times_ FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "0.29" | What is the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29? | <s>[INST]What is the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29? Context: CREATE TABLE table_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, gap_from_thailand_as_of_1980__times_ VARCHAR)[/INST]SELECT gap_from_thailand_as_of_2012__times_ FROM table_30133_3 WHERE gap_from_thailand_as_of_1... |
CREATE TABLE table_name_71 (name VARCHAR, venue VARCHAR) | SELECT name FROM table_name_71 WHERE venue = "motherwell" | What is Name, when Venue is "Motherwell"? | <s>[INST]What is Name, when Venue is "Motherwell"? Context: CREATE TABLE table_name_71 (name VARCHAR, venue VARCHAR)[/INST]SELECT name FROM table_name_71 WHERE venue = "motherwell"</s> |
CREATE TABLE table_name_8 (year VARCHAR, partner VARCHAR, venue VARCHAR) | SELECT year FROM table_name_8 WHERE partner = "yoo sang-hee" AND venue = "german open" | In what Year did the German Open have Yoo Sang-Hee as Partner? | <s>[INST]In what Year did the German Open have Yoo Sang-Hee as Partner? Context: CREATE TABLE table_name_8 (year VARCHAR, partner VARCHAR, venue VARCHAR)[/INST]SELECT year FROM table_name_8 WHERE partner = "yoo sang-hee" AND venue = "german open"</s> |
CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR) | SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen" | Name the transfer fee with a transfer window of summer for schollen | <s>[INST]Name the transfer fee with a transfer window of summer for schollen Context: CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)[/INST]SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.