chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: How many were written by Peter Winther?" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_20704243_3\" WHERE \"directed_by\"='Peter Winther';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: How many directors were in Season 2?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_20704243_3\" WHERE \"season_num\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Who is the director of the episode titled \"The Reunion Job\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_20704243_4\" WHERE \"title\"='\\\"The Reunion Job\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: When was the episode written by Albert Kim aired for the first time?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_20704243_4\" WHERE \"written_by\"='Albert Kim';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: When was the episode titled \"The Boost Job\" originally aired?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_20704243_4\" WHERE \"title\"='\\\"The Boost Job\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: How many millions of people in the US saw the episode titled \"The Reunion Job\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_in_millions\" FROM \"table1_20704243_4\" WHERE \"title\"='\\\"The Reunion Job\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Who wrote the episode titled \"The Morning After Job\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_20704243_4\" WHERE \"title\"='\\\"The Morning After Job\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_5\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Name the series number for m. scott veach & rebecca kirsch" }, { "role": "assistant", "content": "SELECT \"series_num\" FROM \"table1_20704243_5\" WHERE \"written_by\"='M. Scott Veach & Rebecca Kirsch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_5\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Name the number of viewers for series number 50" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_in_millions\" FROM \"table1_20704243_5\" WHERE \"series_num\"=50;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20704243_5\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Name who directed season 1" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_20704243_5\" WHERE \"season_num\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_standard_beams_ismb\" (\n \"type\" text,\n \"beam_height_mm\" real,\n \"flange_width_mm\" real,\n \"web_thickness_mm\" text,\n \"flange_thickness_mm\" text,\n \"weight_kg_m\" text,\n \"cross_section_area_cm_2\" text,\n \"moment_of_inertia_in_torsion_j_cm_4\" text\n);\n\nQuestion: What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=" }, { "role": "assistant", "content": "SELECT COUNT(\"moment_of_inertia_in_torsion_j_cm_4\") FROM \"indian_standard_beams_ismb\" WHERE \"beam_height_mm\"=120;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_standard_beams_ismb\" (\n \"type\" text,\n \"beam_height_mm\" real,\n \"flange_width_mm\" real,\n \"web_thickness_mm\" text,\n \"flange_thickness_mm\" text,\n \"weight_kg_m\" text,\n \"cross_section_area_cm_2\" text,\n \"moment_of_inertia_in_torsion_j_cm_4\" text\n);\n\nQuestion: What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?" }, { "role": "assistant", "content": "SELECT \"cross_section_area_cm_2\" FROM \"indian_standard_beams_ismb\" WHERE \"moment_of_inertia_in_torsion_j_cm_4\"='2.54';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_standard_beams_ismb\" (\n \"type\" text,\n \"beam_height_mm\" real,\n \"flange_width_mm\" real,\n \"web_thickness_mm\" text,\n \"flange_thickness_mm\" text,\n \"weight_kg_m\" text,\n \"cross_section_area_cm_2\" text,\n \"moment_of_inertia_in_torsion_j_cm_4\" text\n);\n\nQuestion: What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg" }, { "role": "assistant", "content": "SELECT \"flange_thickness_mm\" FROM \"indian_standard_beams_ismb\" WHERE \"weight_kg_m\"='6.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_standard_beams_ismb\" (\n \"type\" text,\n \"beam_height_mm\" real,\n \"flange_width_mm\" real,\n \"web_thickness_mm\" text,\n \"flange_thickness_mm\" text,\n \"weight_kg_m\" text,\n \"cross_section_area_cm_2\" text,\n \"moment_of_inertia_in_torsion_j_cm_4\" text\n);\n\nQuestion: What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?" }, { "role": "assistant", "content": "SELECT COUNT(\"moment_of_inertia_in_torsion_j_cm_4\") FROM \"indian_standard_beams_ismb\" WHERE \"web_thickness_mm\"='4.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_standard_beams_ismb\" (\n \"type\" text,\n \"beam_height_mm\" real,\n \"flange_width_mm\" real,\n \"web_thickness_mm\" text,\n \"flange_thickness_mm\" text,\n \"weight_kg_m\" text,\n \"cross_section_area_cm_2\" text,\n \"moment_of_inertia_in_torsion_j_cm_4\" text\n);\n\nQuestion: What is the flange thickness (mm) for the weight (kg/m) 10.4?" }, { "role": "assistant", "content": "SELECT \"flange_thickness_mm\" FROM \"indian_standard_beams_ismb\" WHERE \"weight_kg_m\"='10.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_standard_beams_ismb\" (\n \"type\" text,\n \"beam_height_mm\" real,\n \"flange_width_mm\" real,\n \"web_thickness_mm\" text,\n \"flange_thickness_mm\" text,\n \"weight_kg_m\" text,\n \"cross_section_area_cm_2\" text,\n \"moment_of_inertia_in_torsion_j_cm_4\" text\n);\n\nQuestion: What is the flange width (mm) for cross section area (cm 2) 16.4?" }, { "role": "assistant", "content": "SELECT COUNT(\"flange_width_mm\") FROM \"indian_standard_beams_ismb\" WHERE \"cross_section_area_cm_2\"='16.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"seed\" real,\n \"player\" text,\n \"marseille_32_draw\" text,\n \"metz_32\" text,\n \"lyon_32\" text,\n \"paris_48_byes\" text\n);\n\nQuestion: In what round was lyon (32) a 5 seed?" }, { "role": "assistant", "content": "SELECT \"lyon_32\" FROM \"players\" WHERE \"seed\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"seed\" real,\n \"player\" text,\n \"marseille_32_draw\" text,\n \"metz_32\" text,\n \"lyon_32\" text,\n \"paris_48_byes\" text\n);\n\nQuestion: How many items were recorded marseille (32 draw) was a 2 seed?" }, { "role": "assistant", "content": "SELECT COUNT(\"marseille_32_draw\") FROM \"players\" WHERE \"seed\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"seed\" real,\n \"player\" text,\n \"marseille_32_draw\" text,\n \"metz_32\" text,\n \"lyon_32\" text,\n \"paris_48_byes\" text\n);\n\nQuestion: What is the seed for lyon (32) was DNQ?" }, { "role": "assistant", "content": "SELECT MAX(\"seed\") FROM \"players\" WHERE \"lyon_32\"='DNQ';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"players\" (\n \"seed\" real,\n \"player\" text,\n \"marseille_32_draw\" text,\n \"metz_32\" text,\n \"lyon_32\" text,\n \"paris_48_byes\" text\n);\n\nQuestion: What was the result for Paris(48-byes) for 3 seed?" }, { "role": "assistant", "content": "SELECT \"paris_48_byes\" FROM \"players\" WHERE \"seed\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by\" (\n \"parish\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What was McCain's percentage when Obama had 64.39% of the vote?" }, { "role": "assistant", "content": "SELECT \"mc_cainpct\" FROM \"by\" WHERE \"obamapct\"='64.39%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by\" (\n \"parish\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What was McCain's vote when Obama had 48.35%" }, { "role": "assistant", "content": "SELECT MIN(\"mc_cainnum\") FROM \"by\" WHERE \"obamapct\"='48.35%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by\" (\n \"parish\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: How many votes did Obama have at 32.12%" }, { "role": "assistant", "content": "SELECT MIN(\"obamanum\") FROM \"by\" WHERE \"obamapct\"='32.12%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by\" (\n \"parish\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What parish did McCain have 45.37% of the votes?" }, { "role": "assistant", "content": "SELECT \"parish\" FROM \"by\" WHERE \"mc_cainpct\"='45.37%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by\" (\n \"parish\" text,\n \"obamapct\" text,\n \"obamanum\" real,\n \"mc_cainpct\" text,\n \"mc_cainnum\" real\n);\n\nQuestion: What is the total number of votes McCain had in Webster?" }, { "role": "assistant", "content": "SELECT MAX(\"mc_cainnum\") FROM \"by\" WHERE \"parish\"='Webster';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text\n);\n\nQuestion: What was the original air date for the episode with production code 1wab06?" }, { "role": "assistant", "content": "SELECT \"originalairdate\" FROM \"table1_20726262_2\" WHERE \"production_code\"='1WAB06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text\n);\n\nQuestion: What title episode did Paris Barclay direct?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_20726262_2\" WHERE \"directedby\"='Paris Barclay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text\n);\n\nQuestion: What was the production code for episode #1?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_20726262_2\" WHERE \"no_in_series\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text\n);\n\nQuestion: What number episode was written by kurt sutter & jack logiudice?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_series\") FROM \"table1_20726262_2\" WHERE \"writtenby\"='Kurt Sutter & Jack LoGiudice';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What was the production code for the episode with 3.38 million viewers?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_20726262_3\" WHERE \"u_s_viewers_million\"='3.38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who were the writers for \"Balm\"?" }, { "role": "assistant", "content": "SELECT \"writtenby\" FROM \"table1_20726262_3\" WHERE \"title\"='\\\"Balm\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What season number did production code 2wab12?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_20726262_3\" WHERE \"production_code\"='2WAB12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many numbers in the season were written by Brett Conrad & Liz Sagal?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_20726262_3\" WHERE \"writtenby\"='Brett Conrad & Liz Sagal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: what i the maximum number in the series where the production code is 3wab07?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_series\") FROM \"table1_20726262_4\" WHERE \"production_code\"='3WAB07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: what is the maximum number in the season wher the us viewers is 2.59?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_20726262_4\" WHERE \"u_s_viewers_million\"='2.59';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20726262_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directedby\" text,\n \"writtenby\" text,\n \"originalairdate\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: what is the written by and production code is 3wab03?" }, { "role": "assistant", "content": "SELECT \"writtenby\" FROM \"table1_20726262_4\" WHERE \"production_code\"='3WAB03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20728138_1\" (\n \"party\" text,\n \"seats_contested\" real,\n \"seats_won\" real,\n \"no_of_votes\" real,\n \"pct_of_votes\" text,\n \"pct_in_seats_contested\" text,\n \"seats_forfeited\" real,\n \"2003_seats\" real\n);\n\nQuestion: How many seats were won, when the seats contested was 48?" }, { "role": "assistant", "content": "SELECT \"seats_won\" FROM \"table1_20728138_1\" WHERE \"seats_contested\"=48;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20728138_1\" (\n \"party\" text,\n \"seats_contested\" real,\n \"seats_won\" real,\n \"no_of_votes\" real,\n \"pct_of_votes\" text,\n \"pct_in_seats_contested\" text,\n \"seats_forfeited\" real,\n \"2003_seats\" real\n);\n\nQuestion: How many seats are contested for independents?" }, { "role": "assistant", "content": "SELECT \"seats_contested\" FROM \"table1_20728138_1\" WHERE \"party\"='Independents';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20728138_1\" (\n \"party\" text,\n \"seats_contested\" real,\n \"seats_won\" real,\n \"no_of_votes\" real,\n \"pct_of_votes\" text,\n \"pct_in_seats_contested\" text,\n \"seats_forfeited\" real,\n \"2003_seats\" real\n);\n\nQuestion: What is the percentage seats contested for the revolutionary socialist party?" }, { "role": "assistant", "content": "SELECT \"pct_in_seats_contested\" FROM \"table1_20728138_1\" WHERE \"party\"='Revolutionary Socialist Party';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20728138_1\" (\n \"party\" text,\n \"seats_contested\" real,\n \"seats_won\" real,\n \"no_of_votes\" real,\n \"pct_of_votes\" text,\n \"pct_in_seats_contested\" text,\n \"seats_forfeited\" real,\n \"2003_seats\" real\n);\n\nQuestion: What is the 2003 seat number, when seats contested was at 38.23%" }, { "role": "assistant", "content": "SELECT MIN(\"2003_seats\") FROM \"table1_20728138_1\" WHERE \"pct_in_seats_contested\"='38.23%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20728138_1\" (\n \"party\" text,\n \"seats_contested\" real,\n \"seats_won\" real,\n \"no_of_votes\" real,\n \"pct_of_votes\" text,\n \"pct_in_seats_contested\" text,\n \"seats_forfeited\" real,\n \"2003_seats\" real\n);\n\nQuestion: How many seats were forfeited in the revolutionary socialist party?" }, { "role": "assistant", "content": "SELECT COUNT(\"seats_forfeited\") FROM \"table1_20728138_1\" WHERE \"party\"='Revolutionary Socialist Party';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the opponent when the attendance was exactly 16642?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"attendance\"=16642;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the score for game #7?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"num\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the opponent on February 28, 1991" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='February 28, 1991';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tar_heels_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the date when the record was 1-0?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"record\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tar_heels_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many results finished in a loss?" }, { "role": "assistant", "content": "SELECT COUNT(\"tar_heels_points\") FROM \"schedule\" WHERE \"result\"='Loss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tar_heels_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many games were against Furman?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule\" WHERE \"opponent\"='Furman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tar_heels_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many times were Duke the opponents?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='Duke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tar_heels_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many losses were there when the record was 4-0?" }, { "role": "assistant", "content": "SELECT MAX(\"opponents\") FROM \"schedule\" WHERE \"record\"='4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" text,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the game #7, at or versus (home or at)?" }, { "role": "assistant", "content": "SELECT \"at_vs\" FROM \"game_log\" WHERE \"num\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" text,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who did they play against in game 7?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"num\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" text,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What game number had an attendance of 2813?" }, { "role": "assistant", "content": "SELECT \"num\" FROM \"game_log\" WHERE \"attendance\"=2813;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20746062_1\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"thundering_herd_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What day did the play game number 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"table1_20746062_1\" WHERE \"game\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20746062_1\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"thundering_herd_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the result of the game when they were 2-1?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"table1_20746062_1\" WHERE \"record\"='2-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the record when the Bruins had 41 points?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"bruins_points\"=41;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the date for game 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What game did the Bruins have 56 points?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule\" WHERE \"bruins_points\"=56;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20760802_1\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: What is the total of played where lost equals 4 and drawn equals 1?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"table1_20760802_1\" WHERE \"lost\"='4' AND \"drawn\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20760802_1\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: How many drawn are there where the Club is new ross?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"table1_20760802_1\" WHERE \"club\"='New Ross';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20760802_1\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: How may drawn equal points against at 129?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"table1_20760802_1\" WHERE \"points_against\"='129';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20760802_1\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: How many points differ from 134?" }, { "role": "assistant", "content": "SELECT \"points_difference\" FROM \"table1_20760802_1\" WHERE \"points_for\"='134';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20760802_1\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: How many of the points difference lost equal 10?" }, { "role": "assistant", "content": "SELECT \"points_difference\" FROM \"table1_20760802_1\" WHERE \"lost\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20760802_1\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"bonus_points\" text,\n \"points\" text\n);\n\nQuestion: How many teams that played won 0 games?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"table1_20760802_1\" WHERE \"won\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_2009\" real,\n \"founded\" real\n);\n\nQuestion: What are the public schools with a master's university?" }, { "role": "assistant", "content": "SELECT \"location_s\" FROM \"institutions\" WHERE \"control\"='Public' AND \"type\"='Master''s university';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_2009\" real,\n \"founded\" real\n);\n\nQuestion: What is the minimum enrollment for Plainfield?" }, { "role": "assistant", "content": "SELECT MIN(\"enrollment_2009\") FROM \"institutions\" WHERE \"location_s\"='Plainfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_2009\" real,\n \"founded\" real\n);\n\nQuestion: What type of school had an enrollment in 2009 of 224?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"institutions\" WHERE \"enrollment_2009\"=224;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_2009\" real,\n \"founded\" real\n);\n\nQuestion: When was Southern Vermont College founded?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"institutions\" WHERE \"school\"='Southern Vermont College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_2009\" real,\n \"founded\" real\n);\n\nQuestion: Is art school public or private?" }, { "role": "assistant", "content": "SELECT \"control\" FROM \"institutions\" WHERE \"type\"='Art school';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_2009\" real,\n \"founded\" real\n);\n\nQuestion: What school was founded in 1791?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"institutions\" WHERE \"founded\"=1791;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"active_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_spring_2012\" real,\n \"founded\" real,\n \"accreditation\" text\n);\n\nQuestion: Name the number of spring enrollment for sioux falls seminary" }, { "role": "assistant", "content": "SELECT COUNT(\"enrollment_spring_2012\") FROM \"active_institutions\" WHERE \"school\"='Sioux Falls Seminary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"active_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_spring_2012\" real,\n \"founded\" real,\n \"accreditation\" text\n);\n\nQuestion: Name the accrediatation for southeast technical institute" }, { "role": "assistant", "content": "SELECT \"accreditation\" FROM \"active_institutions\" WHERE \"school\"='Southeast Technical Institute';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"active_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment_spring_2012\" real,\n \"founded\" real,\n \"accreditation\" text\n);\n\nQuestion: Name the total number of founded for yankton" }, { "role": "assistant", "content": "SELECT COUNT(\"founded\") FROM \"active_institutions\" WHERE \"location_s\"='Yankton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_and_southern_calabrian\" (\n \"central_southern_calabrian\" text,\n \"phonetic_greek\" text,\n \"italian\" text,\n \"french\" text,\n \"english\" text\n);\n\nQuestion: What is the Italian word for the English word \"otter\"?" }, { "role": "assistant", "content": "SELECT \"italian\" FROM \"central_and_southern_calabrian\" WHERE \"english\"='otter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_and_southern_calabrian\" (\n \"central_southern_calabrian\" text,\n \"phonetic_greek\" text,\n \"italian\" text,\n \"french\" text,\n \"english\" text\n);\n\nQuestion: How many French words does zinnap\u00f2tamu in Central-Southern Calabrian translate to?" }, { "role": "assistant", "content": "SELECT COUNT(\"french\") FROM \"central_and_southern_calabrian\" WHERE \"central_southern_calabrian\"='zinnap\u00f2tamu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_and_southern_calabrian\" (\n \"central_southern_calabrian\" text,\n \"phonetic_greek\" text,\n \"italian\" text,\n \"french\" text,\n \"english\" text\n);\n\nQuestion: What is the French translation for the English word \"orange\"?" }, { "role": "assistant", "content": "SELECT \"french\" FROM \"central_and_southern_calabrian\" WHERE \"english\"='orange';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_and_southern_calabrian\" (\n \"central_southern_calabrian\" text,\n \"phonetic_greek\" text,\n \"italian\" text,\n \"french\" text,\n \"english\" text\n);\n\nQuestion: What is the Italian word for \"orange\" in English?" }, { "role": "assistant", "content": "SELECT \"italian\" FROM \"central_and_southern_calabrian\" WHERE \"english\"='orange';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_and_southern_calabrian\" (\n \"central_southern_calabrian\" text,\n \"phonetic_greek\" text,\n \"italian\" text,\n \"french\" text,\n \"english\" text\n);\n\nQuestion: How many Phonetic Greek words translate to grenouille in French?" }, { "role": "assistant", "content": "SELECT COUNT(\"phonetic_greek\") FROM \"central_and_southern_calabrian\" WHERE \"french\"='grenouille';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_and_southern_calabrian\" (\n \"central_southern_calabrian\" text,\n \"phonetic_greek\" text,\n \"italian\" text,\n \"french\" text,\n \"english\" text\n);\n\nQuestion: What does the word \"frog\"in English translate to in Italian?" }, { "role": "assistant", "content": "SELECT \"italian\" FROM \"central_and_southern_calabrian\" WHERE \"english\"='frog';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primarily_religious_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" text,\n \"enrollment\" text\n);\n\nQuestion: Where are the Alexandria enrollment locations?" }, { "role": "assistant", "content": "SELECT \"enrollment\" FROM \"primarily_religious_institutions\" WHERE \"location_s\"='Alexandria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primarily_religious_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" text,\n \"enrollment\" text\n);\n\nQuestion: What is the control type which was founded in 1991?" }, { "role": "assistant", "content": "SELECT \"control\" FROM \"primarily_religious_institutions\" WHERE \"founded\"='1991';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primarily_religious_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" text,\n \"enrollment\" text\n);\n\nQuestion: What is the control type which was founded in 1818?" }, { "role": "assistant", "content": "SELECT \"control\" FROM \"primarily_religious_institutions\" WHERE \"founded\"='1818';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primarily_religious_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" text,\n \"enrollment\" text\n);\n\nQuestion: What year was Hartland College founded?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"primarily_religious_institutions\" WHERE \"school\"='Hartland College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primarily_religious_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" text,\n \"enrollment\" text\n);\n\nQuestion: What type of school is Cordoba University?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"primarily_religious_institutions\" WHERE \"school\"='Cordoba University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primarily_religious_institutions\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" text,\n \"enrollment\" text\n);\n\nQuestion: What school is in Richmond?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"primarily_religious_institutions\" WHERE \"location_s\"='Richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_and_established_private_instituti\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" real,\n \"enrollment\" text\n);\n\nQuestion: What accreditation does Hollins University have?" }, { "role": "assistant", "content": "SELECT \"accreditation\" FROM \"public_and_established_private_instituti\" WHERE \"school\"='Hollins University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_and_established_private_instituti\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" real,\n \"enrollment\" text\n);\n\nQuestion: What was the largest founded year for schools having enrollment of exactly 696?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"public_and_established_private_instituti\" WHERE \"enrollment\"='696';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_and_established_private_instituti\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" real,\n \"enrollment\" text\n);\n\nQuestion: What is the control for Christopher Newport University?" }, { "role": "assistant", "content": "SELECT \"control\" FROM \"public_and_established_private_instituti\" WHERE \"school\"='Christopher Newport University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_and_established_private_instituti\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" real,\n \"enrollment\" text\n);\n\nQuestion: What is the total number of schools founded that have an enrollment of 5634?" }, { "role": "assistant", "content": "SELECT COUNT(\"founded\") FROM \"public_and_established_private_instituti\" WHERE \"enrollment\"='5634';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_and_established_private_instituti\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" real,\n \"enrollment\" text\n);\n\nQuestion: What type of school is Stratford University?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"public_and_established_private_instituti\" WHERE \"school\"='Stratford University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"public_and_established_private_instituti\" (\n \"school\" text,\n \"location_s\" text,\n \"control\" text,\n \"type\" text,\n \"accreditation\" text,\n \"founded\" real,\n \"enrollment\" text\n);\n\nQuestion: What type of school is Jefferson College of Health Sciences?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"public_and_established_private_instituti\" WHERE \"school\"='Jefferson College of Health Sciences';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"st_francis_college_lady_terriers_northea\" (\n \"year\" text,\n \"head_coach\" text,\n \"regular_season_record_w_l\" text,\n \"nec_record\" text,\n \"standing\" text,\n \"nec_tournament_record\" text\n);\n\nQuestion: Name the nec record for 11th standing" }, { "role": "assistant", "content": "SELECT \"nec_record\" FROM \"st_francis_college_lady_terriers_northea\" WHERE \"standing\"='11th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"st_francis_college_lady_terriers_northea\" (\n \"year\" text,\n \"head_coach\" text,\n \"regular_season_record_w_l\" text,\n \"nec_record\" text,\n \"standing\" text,\n \"nec_tournament_record\" text\n);\n\nQuestion: Name the year for standing 9th" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"st_francis_college_lady_terriers_northea\" WHERE \"standing\"='9th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"st_francis_college_lady_terriers_northea\" (\n \"year\" text,\n \"head_coach\" text,\n \"regular_season_record_w_l\" text,\n \"nec_record\" text,\n \"standing\" text,\n \"nec_tournament_record\" text\n);\n\nQuestion: Name the year for t-10th" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"st_francis_college_lady_terriers_northea\" WHERE \"standing\"='T-10th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"st_francis_college_lady_terriers_northea\" (\n \"year\" text,\n \"head_coach\" text,\n \"regular_season_record_w_l\" text,\n \"nec_record\" text,\n \"standing\" text,\n \"nec_tournament_record\" text\n);\n\nQuestion: Name the regular season record for standing 11th" }, { "role": "assistant", "content": "SELECT \"regular_season_record_w_l\" FROM \"st_francis_college_lady_terriers_northea\" WHERE \"standing\"='11th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"departmental_service\" (\n \"number\" text,\n \"previous_br_no\" real,\n \"taken_into_deptal_stock\" real,\n \"withdrawn\" real,\n \"disposal\" text\n);\n\nQuestion: Name the most previous br number" }, { "role": "assistant", "content": "SELECT MAX(\"previous_br_no\") FROM \"departmental_service\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"departmental_service\" (\n \"number\" text,\n \"previous_br_no\" real,\n \"taken_into_deptal_stock\" real,\n \"withdrawn\" real,\n \"disposal\" text\n);\n\nQuestion: Name the total number of previous br number for number 21" }, { "role": "assistant", "content": "SELECT COUNT(\"previous_br_no\") FROM \"departmental_service\" WHERE \"number\"='21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20780285_1\" (\n \"country_region\" text,\n \"title\" text,\n \"television_network\" text,\n \"winners\" text,\n \"presenters\" text,\n \"trainers\" text\n);\n\nQuestion: What country uses the title Marele C\u00e2\u0219tig\u0103tor The Big Winner?" }, { "role": "assistant", "content": "SELECT \"country_region\" FROM \"table1_20780285_1\" WHERE \"title\"='Marele c\u00e2\u0219tig\u0103tor The Big Winner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20780285_1\" (\n \"country_region\" text,\n \"title\" text,\n \"television_network\" text,\n \"winners\" text,\n \"presenters\" text,\n \"trainers\" text\n);\n\nQuestion: Silvio Santos is the presenter in what country?" }, { "role": "assistant", "content": "SELECT \"country_region\" FROM \"table1_20780285_1\" WHERE \"presenters\"='Silvio Santos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"height\" text,\n \"weight\" real,\n \"position\" text,\n \"year\" text,\n \"home_town\" text,\n \"high_school\" text\n);\n\nQuestion: What is the home town of David Noel?" }, { "role": "assistant", "content": "SELECT \"home_town\" FROM \"roster\" WHERE \"name\"='David Noel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"num\" real,\n \"height\" text,\n \"weight\" real,\n \"position\" text,\n \"year\" text,\n \"home_town\" text,\n \"high_school\" text\n);\n\nQuestion: What is the high school for the player who's hometown is Blue Island, Il?" }, { "role": "assistant", "content": "SELECT \"high_school\" FROM \"roster\" WHERE \"home_town\"='Blue Island, IL';" } ]