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 \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: What school is located in Huntsville, Texas?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"division_ii\" WHERE \"location\"='Huntsville, Texas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: How many students are enrolled in the team nicknamed Comets?" }, { "role": "assistant", "content": "SELECT \"enrollment\" FROM \"division_ii\" WHERE \"team_nickname\"='Comets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"currently_proposed\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"tenant\" text,\n \"opening\" text\n);\n\nQuestion: Name the number of tenants for russia at the saransk stadium" }, { "role": "assistant", "content": "SELECT COUNT(\"tenant\") FROM \"currently_proposed\" WHERE \"country\"='Russia' AND \"stadium\"='Saransk Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"currently_proposed\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"tenant\" text,\n \"opening\" text\n);\n\nQuestion: Name the country for lusail national stadium" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"currently_proposed\" WHERE \"stadium\"='Lusail National Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"currently_proposed\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"tenant\" text,\n \"opening\" text\n);\n\nQuestion: Name the city for los angeles stadium" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"currently_proposed\" WHERE \"stadium\"='Los Angeles Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"currently_proposed\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"tenant\" text,\n \"opening\" text\n);\n\nQuestion: Name the stadium for nizhny novgorod" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"currently_proposed\" WHERE \"city\"='Nizhny Novgorod';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"currently_proposed\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"tenant\" text,\n \"opening\" text\n);\n\nQuestion: Name the country for athens" }, { "role": "assistant", "content": "SELECT COUNT(\"country\") FROM \"currently_proposed\" WHERE \"city\"='Athens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28283535_4\" (\n \"episode\" text,\n \"date_aired\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"nightly_rank\" real,\n \"weekly_rank\" text\n);\n\nQuestion: When did the episode 1.13 air for the first time?" }, { "role": "assistant", "content": "SELECT \"date_aired\" FROM \"table1_28283535_4\" WHERE \"episode\"='1.13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28283535_4\" (\n \"episode\" text,\n \"date_aired\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"nightly_rank\" real,\n \"weekly_rank\" text\n);\n\nQuestion: What's the weekly rank of episode 1.03?" }, { "role": "assistant", "content": "SELECT \"weekly_rank\" FROM \"table1_28283535_4\" WHERE \"episode\"='1.03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28283535_4\" (\n \"episode\" text,\n \"date_aired\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"nightly_rank\" real,\n \"weekly_rank\" text\n);\n\nQuestion: What is the rating of episode 1.04?" }, { "role": "assistant", "content": "SELECT \"rating\" FROM \"table1_28283535_4\" WHERE \"episode\"='1.04';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: How many items are listed under caps when burnley is the club team?" }, { "role": "assistant", "content": "SELECT COUNT(\"cap_s\") FROM \"canada\" WHERE \"club_s\"='Burnley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: What club did the championship player come from who had 10 goals?" }, { "role": "assistant", "content": "SELECT \"club_s\" FROM \"canada\" WHERE \"goal_s\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"canada\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: How many goals did the player from Ipswich town score?" }, { "role": "assistant", "content": "SELECT MIN(\"goal_s\") FROM \"canada\" WHERE \"club_s\"='Ipswich Town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: When 16 is the cap who is the player?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"new_zealand\" WHERE \"cap_s\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: When 2010 v australia is the interantional debut what is the club?" }, { "role": "assistant", "content": "SELECT \"club_s\" FROM \"new_zealand\" WHERE \"international_debut\"='2010 v Australia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: When winston reid category:articles with hcards is the player what is the club?" }, { "role": "assistant", "content": "SELECT \"club_s\" FROM \"new_zealand\" WHERE \"player\"='Winston Reid Category:Articles with hCards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"cap_s\") FROM \"new_zealand\" WHERE \"goal_s\"=1 AND \"player\"='Tommy Smith Category:Articles with hCards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"player\" text,\n \"cap_s\" real,\n \"goal_s\" real,\n \"international_debut\" text,\n \"club_s\" text\n);\n\nQuestion: When rory fallon category:articles with hcards is the player when is the international debut?" }, { "role": "assistant", "content": "SELECT \"international_debut\" FROM \"new_zealand\" WHERE \"player\"='Rory Fallon Category:Articles with hCards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2828803_1\" (\n \"series_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is th title of the episode written by Nick Thiel?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_2828803_1\" WHERE \"written_by\"='Nick Thiel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2828803_1\" (\n \"series_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many million u.s. viewers watched the episode with a production code of 2t7004?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_2828803_1\" WHERE \"production_code\"='2T7004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2828803_1\" (\n \"series_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the name of the episode that was directed by Dennis Smith?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_2828803_1\" WHERE \"directed_by\"='Dennis Smith';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2828803_1\" (\n \"series_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What date did \"The runner\" originally air on?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_2828803_1\" WHERE \"title\"='\\\"The Runner\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2828803_1\" (\n \"series_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the name of the episode nick thiel wrote?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_2828803_1\" WHERE \"written_by\"='Nick Thiel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many site entries are there at 3:30pm and the visiting team is coastal carolina?" }, { "role": "assistant", "content": "SELECT COUNT(\"site\") FROM \"week_one\" WHERE \"time\"='3:30pm' AND \"visiting_team\"='Coastal Carolina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the result when the visiting team is syracuse?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_one\" WHERE \"visiting_team\"='Syracuse';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: When svein tuft is the winner what is the highest stage?" }, { "role": "assistant", "content": "SELECT MAX(\"stage\") FROM \"classification_leadership\" WHERE \"winner\"='Svein Tuft';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: when svein tuft is the winner how many stages are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"stage\") FROM \"classification_leadership\" WHERE \"winner\"='Svein Tuft';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: when hayden roulston is the winner what is the team classification?" }, { "role": "assistant", "content": "SELECT \"team_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Hayden Roulston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: When michael reihs is the mountains classification what is the stage?" }, { "role": "assistant", "content": "SELECT \"stage\" FROM \"classification_leadership\" WHERE \"mountains_classification\"='Michael Reihs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: When michael van stayen is the points classification what is the team classification?" }, { "role": "assistant", "content": "SELECT \"team_classification\" FROM \"classification_leadership\" WHERE \"points_classification\"='Michael Van Stayen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: When hayden roulston is the winner what is the stage?" }, { "role": "assistant", "content": "SELECT \"stage\" FROM \"classification_leadership\" WHERE \"winner\"='Hayden Roulston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What date was the game where Texas Southern was the visiting team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"week_two\" WHERE \"visiting_team\"='Texas Southern';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many Connecticut home games were broadcast?" }, { "role": "assistant", "content": "SELECT COUNT(\"broadcast\") FROM \"week_two\" WHERE \"home_team\"='Connecticut';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: In what facility was Pittsburgh's home game played?" }, { "role": "assistant", "content": "SELECT \"site\" FROM \"week_two\" WHERE \"home_team\"='Pittsburgh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the final score of Washington's home game?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_two\" WHERE \"home_team\"='Washington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_clubs\" (\n \"club\" text,\n \"location\" text,\n \"home_venue\" text,\n \"capacity\" text,\n \"founded\" real,\n \"years_active\" text\n);\n\nQuestion: Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"current_clubs\" WHERE \"capacity\"='10,517 5,006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_clubs\" (\n \"club\" text,\n \"location\" text,\n \"home_venue\" text,\n \"capacity\" text,\n \"founded\" real,\n \"years_active\" text\n);\n\nQuestion: Where is the home venue of the team founded in 1993?" }, { "role": "assistant", "content": "SELECT \"home_venue\" FROM \"current_clubs\" WHERE \"founded\"=1993;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_clubs\" (\n \"club\" text,\n \"location\" text,\n \"home_venue\" text,\n \"capacity\" text,\n \"founded\" real,\n \"years_active\" text\n);\n\nQuestion: How long has the team who owns North Shore Events Centre Vector Arena been active?" }, { "role": "assistant", "content": "SELECT \"years_active\" FROM \"current_clubs\" WHERE \"home_venue\"='North Shore Events Centre Vector Arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_clubs\" (\n \"club\" text,\n \"location\" text,\n \"home_venue\" text,\n \"capacity\" text,\n \"founded\" real,\n \"years_active\" text\n);\n\nQuestion: What is the capacity for the Home Venue of the New Zealand Breakers club?" }, { "role": "assistant", "content": "SELECT \"capacity\" FROM \"current_clubs\" WHERE \"club\"='New Zealand Breakers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28334498_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed \"From Russia With Love\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_28334498_3\" WHERE \"title\"='\\\"From Russia With Love\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28334498_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many episodes were directed by Jeff Melman and 1.21million viewers?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_28334498_3\" WHERE \"directed_by\"='Jeff Melman' AND \"u_s_viewers_millions\"='1.21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28334498_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What air date had 1.01 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_28334498_3\" WHERE \"u_s_viewers_millions\"='1.01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28342423_1\" (\n \"parent_unit\" text,\n \"geschwader_base\" text,\n \"unit_gruppe_staffel\" text,\n \"aircraft_type\" text,\n \"commanding_officer\" text\n);\n\nQuestion: Name the aircraft type for furstenau/vorden" }, { "role": "assistant", "content": "SELECT \"aircraft_type\" FROM \"table1_28342423_1\" WHERE \"geschwader_base\"='Furstenau/Vorden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28342423_1\" (\n \"parent_unit\" text,\n \"geschwader_base\" text,\n \"unit_gruppe_staffel\" text,\n \"aircraft_type\" text,\n \"commanding_officer\" text\n);\n\nQuestion: Name the parent unit for ludwig franzisket" }, { "role": "assistant", "content": "SELECT \"parent_unit\" FROM \"table1_28342423_1\" WHERE \"commanding_officer\"='Ludwig Franzisket';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28342423_1\" (\n \"parent_unit\" text,\n \"geschwader_base\" text,\n \"unit_gruppe_staffel\" text,\n \"aircraft_type\" text,\n \"commanding_officer\" text\n);\n\nQuestion: Name the aircraft type for jagdgeschwader 6" }, { "role": "assistant", "content": "SELECT \"aircraft_type\" FROM \"table1_28342423_1\" WHERE \"parent_unit\"='Jagdgeschwader 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28342423_1\" (\n \"parent_unit\" text,\n \"geschwader_base\" text,\n \"unit_gruppe_staffel\" text,\n \"aircraft_type\" text,\n \"commanding_officer\" text\n);\n\nQuestion: Name the aircraft type for jagdgeschwader 26" }, { "role": "assistant", "content": "SELECT \"aircraft_type\" FROM \"table1_28342423_1\" WHERE \"parent_unit\"='Jagdgeschwader 26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28342423_1\" (\n \"parent_unit\" text,\n \"geschwader_base\" text,\n \"unit_gruppe_staffel\" text,\n \"aircraft_type\" text,\n \"commanding_officer\" text\n);\n\nQuestion: Name the parent unit for josef priller" }, { "role": "assistant", "content": "SELECT \"parent_unit\" FROM \"table1_28342423_1\" WHERE \"commanding_officer\"='Josef Priller';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28348757_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name who directed the episode \"bro-lo el cu\u00f1ado\"" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_28348757_3\" WHERE \"title\"='\\\"Bro-Lo El Cu\u00f1ado\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28348757_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the production code for number 8" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_28348757_3\" WHERE \"num\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28348757_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the least number for xle02007" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"table1_28348757_3\" WHERE \"production_code\"='XLE02007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28348757_6\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the episode with the code xle05012?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_28348757_6\" WHERE \"production_code\"='XLE05012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28348757_6\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: what are the numbers of episodes that had 0.79 million US views?" }, { "role": "assistant", "content": "SELECT \"num\" FROM \"table1_28348757_6\" WHERE \"u_s_viewers_million\"='0.79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_team_event\" (\n \"team\" text,\n \"female_p_e\" text,\n \"male_p_e\" text,\n \"female_foil\" text,\n \"male_foil\" text,\n \"female_saber\" text,\n \"male_saber\" text,\n \"average_fencers_rank\" text,\n \"initial_team_rank\" real\n);\n\nQuestion: What female fenced with a saber on the team that had an average fencer rank of 3.5?" }, { "role": "assistant", "content": "SELECT \"female_saber\" FROM \"mixed_team_event\" WHERE \"average_fencers_rank\"='3.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_team_event\" (\n \"team\" text,\n \"female_p_e\" text,\n \"male_p_e\" text,\n \"female_foil\" text,\n \"male_foil\" text,\n \"female_saber\" text,\n \"male_saber\" text,\n \"average_fencers_rank\" text,\n \"initial_team_rank\" real\n);\n\nQuestion: What team had an average fencer rank of 1.33?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"mixed_team_event\" WHERE \"average_fencers_rank\"='1.33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"corporate_name\" text,\n \"regional_district\" text,\n \"incorporation_date_city\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is the name of the corporation that incorporated on october 15, 1955?" }, { "role": "assistant", "content": "SELECT \"corporate_name\" FROM \"list\" WHERE \"incorporation_date_city\"='October 15, 1955';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"corporate_name\" text,\n \"regional_district\" text,\n \"incorporation_date_city\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is the area of the corporation named the powell river, the corporation of the city of?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"list\" WHERE \"corporate_name\"='Powell River, The Corporation of the City of';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"corporate_name\" text,\n \"regional_district\" text,\n \"incorporation_date_city\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: How many Area's are there for Armstrong?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km\") FROM \"list\" WHERE \"name\"='Armstrong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"corporate_name\" text,\n \"regional_district\" text,\n \"incorporation_date_city\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is the name of the city which incorporated on july 16, 1860?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list\" WHERE \"incorporation_date_city\"='July 16, 1860';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"corporate_name\" text,\n \"regional_district\" text,\n \"incorporation_date_city\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: What is the name of the corporation with an area of 15.63 km?" }, { "role": "assistant", "content": "SELECT \"corporate_name\" FROM \"list\" WHERE \"area_km\"='15.63';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"name\" text,\n \"corporate_name\" text,\n \"regional_district\" text,\n \"incorporation_date_city\" text,\n \"population_2011\" real,\n \"population_2006\" real,\n \"change_pct\" text,\n \"area_km\" text,\n \"population_density\" text\n);\n\nQuestion: How many areas are there for the corporation named fort st. john, city of?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km\") FROM \"list\" WHERE \"corporate_name\"='Fort St. John, City of';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28352386_1\" (\n \"week\" real,\n \"portraying\" text,\n \"song\" text,\n \"julian_clary\" text,\n \"emma_bunton\" text,\n \"guest_judge\" text,\n \"bonus_points\" text,\n \"total\" text,\n \"result\" text\n);\n\nQuestion: What was Emma Bunton's score for the performance with a total score of 22?" }, { "role": "assistant", "content": "SELECT \"emma_bunton\" FROM \"table1_28352386_1\" WHERE \"total\"='22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28352386_1\" (\n \"week\" real,\n \"portraying\" text,\n \"song\" text,\n \"julian_clary\" text,\n \"emma_bunton\" text,\n \"guest_judge\" text,\n \"bonus_points\" text,\n \"total\" text,\n \"result\" text\n);\n\nQuestion: What was the total score when the guest judge gave a score of 10?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"table1_28352386_1\" WHERE \"guest_judge\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28358487_3\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: how many millions of north american viewers had the episode called \"smother\"? " }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_28358487_3\" WHERE \"title\"='\\\"Smother\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28358487_3\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: what is the number of the episode in the season whose production code is 101? " }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"table1_28358487_3\" WHERE \"production_code\"=101;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_winners_and_tournaments\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: During what conference is North Carolina listed as the tournament winner?" }, { "role": "assistant", "content": "SELECT \"conference\" FROM \"conference_winners_and_tournaments\" WHERE \"tournament_winner\"='North Carolina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_winners_and_tournaments\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: During the Big Seven Conference which team was the regular season winner?" }, { "role": "assistant", "content": "SELECT \"regular_season_winner\" FROM \"conference_winners_and_tournaments\" WHERE \"conference\"='Big Seven Conference';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_winners_and_tournaments\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: What tournament venue is listed during the Missouri Valley Conference?" }, { "role": "assistant", "content": "SELECT \"tournament_venue_city\" FROM \"conference_winners_and_tournaments\" WHERE \"conference\"='Missouri Valley Conference';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_winners_and_tournaments\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: During the Mid-American Conference who is listed as the tournament winner?" }, { "role": "assistant", "content": "SELECT \"tournament_winner\" FROM \"conference_winners_and_tournaments\" WHERE \"conference\"='Mid-American Conference';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_winners_and_tournaments\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: When Yale is listed as the regular season winner, what tournament venue is given?" }, { "role": "assistant", "content": "SELECT \"tournament_venue_city\" FROM \"conference_winners_and_tournaments\" WHERE \"regular_season_winner\"='Yale';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_winners_and_tournaments\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: How many entries for conference tournament are listed when Texas Western is the regular season winner?" }, { "role": "assistant", "content": "SELECT COUNT(\"conference_tournament\") FROM \"conference_winners_and_tournaments\" WHERE \"regular_season_winner\"='Texas Western';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which team drafted the player from the HC Lada Togliatti (Russia)?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_five\" WHERE \"college_junior_club_team\"='HC Lada Togliatti (Russia)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: who is the person that plays left wing and is from canada that plays on the st. louis blues" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_three\" WHERE \"position\"='Left Wing' AND \"nationality\"='Canada' AND \"nhl_team\"='St. Louis Blues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what is the overall number of chosen ideas where the person is scott parker" }, { "role": "assistant", "content": "SELECT COUNT(\"pick\") FROM \"round_three\" WHERE \"player\"='Scott Parker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: what is the number of the chosen club where the hc dukla tren\u010d\u00edn (slovakia) is from" }, { "role": "assistant", "content": "SELECT COUNT(\"pick\") FROM \"round_three\" WHERE \"college_junior_club_team\"='HC Dukla Tren\u010d\u00edn (Slovakia)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many players were drafted by the Edmonton Oilers?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"round_two\" WHERE \"nhl_team\"='Edmonton Oilers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Who was drafted by the Washington Capitals?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_two\" WHERE \"nhl_team\"='Washington Capitals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which team drafted Travis Brigley?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_two\" WHERE \"player\"='Travis Brigley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the minimum pick of a centre from the Czech Republic?" }, { "role": "assistant", "content": "SELECT MIN(\"pick\") FROM \"round_two\" WHERE \"position\"='Centre' AND \"nationality\"='Czech Republic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28461589_2\" (\n \"nr\" real,\n \"player\" text,\n \"games_played\" real,\n \"starting\" real,\n \"sub\" real,\n \"subbed\" real,\n \"mins_played\" real,\n \"goals\" real,\n \"pens_against\" real,\n \"pens_for\" real,\n \"fouls_suff\" real,\n \"fouls_comm\" real,\n \"yellow_c\" real,\n \"red_c\" real,\n \"assists\" real,\n \"passes\" real,\n \"good_passes\" real\n);\n\nQuestion: Which player made exactly 223 passes?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"table1_28461589_2\" WHERE \"passes\"=223;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28461589_2\" (\n \"nr\" real,\n \"player\" text,\n \"games_played\" real,\n \"starting\" real,\n \"sub\" real,\n \"subbed\" real,\n \"mins_played\" real,\n \"goals\" real,\n \"pens_against\" real,\n \"pens_for\" real,\n \"fouls_suff\" real,\n \"fouls_comm\" real,\n \"yellow_c\" real,\n \"red_c\" real,\n \"assists\" real,\n \"passes\" real,\n \"good_passes\" real\n);\n\nQuestion: What is the fewest minutes played for the player with exactly 638 good passes?" }, { "role": "assistant", "content": "SELECT MIN(\"mins_played\") FROM \"table1_28461589_2\" WHERE \"good_passes\"=638;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28461589_2\" (\n \"nr\" real,\n \"player\" text,\n \"games_played\" real,\n \"starting\" real,\n \"sub\" real,\n \"subbed\" real,\n \"mins_played\" real,\n \"goals\" real,\n \"pens_against\" real,\n \"pens_for\" real,\n \"fouls_suff\" real,\n \"fouls_comm\" real,\n \"yellow_c\" real,\n \"red_c\" real,\n \"assists\" real,\n \"passes\" real,\n \"good_passes\" real\n);\n\nQuestion: What is the most number of assists for players with exactly 25 games played?" }, { "role": "assistant", "content": "SELECT MAX(\"assists\") FROM \"table1_28461589_2\" WHERE \"games_played\"=25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28461589_2\" (\n \"nr\" real,\n \"player\" text,\n \"games_played\" real,\n \"starting\" real,\n \"sub\" real,\n \"subbed\" real,\n \"mins_played\" real,\n \"goals\" real,\n \"pens_against\" real,\n \"pens_for\" real,\n \"fouls_suff\" real,\n \"fouls_comm\" real,\n \"yellow_c\" real,\n \"red_c\" real,\n \"assists\" real,\n \"passes\" real,\n \"good_passes\" real\n);\n\nQuestion: What is the largest number of passes for players starting exactly 34 games?" }, { "role": "assistant", "content": "SELECT MAX(\"passes\") FROM \"table1_28461589_2\" WHERE \"starting\"=34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_panhellenic_conference_npc\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text,\n \"canadian_chapters\" text\n);\n\nQuestion: When \u03ba\u03b1\u03b8 are the letters what is the nickname?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"national_panhellenic_conference_npc\" WHERE \"letters\"='\u039a\u0391\u0398';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_panhellenic_conference_npc\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text,\n \"canadian_chapters\" text\n);\n\nQuestion: When 1873-12-25 is the founding date how many organizations are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"organization\") FROM \"national_panhellenic_conference_npc\" WHERE \"founding_date\"='1873-12-25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_panhellenic_conference_npc\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text,\n \"canadian_chapters\" text\n);\n\nQuestion: When 1872-10-10 is the founding date what are the canadian chapters?" }, { "role": "assistant", "content": "SELECT \"canadian_chapters\" FROM \"national_panhellenic_conference_npc\" WHERE \"founding_date\"='1872-10-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_panhellenic_conference_npc\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text,\n \"canadian_chapters\" text\n);\n\nQuestion: When 1 active, 1 inactive is the canadian chapters how many founding dates are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"founding_date\") FROM \"national_panhellenic_conference_npc\" WHERE \"canadian_chapters\"='1 Active, 1 Inactive';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primary_auburn_football_rivalries_all_ti\" (\n \"name_of_rivalry\" text,\n \"rival\" text,\n \"games_played\" real,\n \"first_meeting\" real,\n \"last_meeting\" real,\n \"au_won\" real,\n \"au_lost\" real,\n \"ties\" real,\n \"streak\" text,\n \"latest_win\" text\n);\n\nQuestion: when was the ending time where the enemy met in the iron bowl" }, { "role": "assistant", "content": "SELECT \"last_meeting\" FROM \"primary_auburn_football_rivalries_all_ti\" WHERE \"name_of_rivalry\"='Iron Bowl';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primary_auburn_football_rivalries_all_ti\" (\n \"name_of_rivalry\" text,\n \"rival\" text,\n \"games_played\" real,\n \"first_meeting\" real,\n \"last_meeting\" real,\n \"au_won\" real,\n \"au_lost\" real,\n \"ties\" real,\n \"streak\" text,\n \"latest_win\" text\n);\n\nQuestion: what was the lowest number that auburn triumphed where the activities took part was 92" }, { "role": "assistant", "content": "SELECT MIN(\"au_won\") FROM \"primary_auburn_football_rivalries_all_ti\" WHERE \"games_played\"=92;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primary_auburn_football_rivalries_all_ti\" (\n \"name_of_rivalry\" text,\n \"rival\" text,\n \"games_played\" real,\n \"first_meeting\" real,\n \"last_meeting\" real,\n \"au_won\" real,\n \"au_lost\" real,\n \"ties\" real,\n \"streak\" text,\n \"latest_win\" text\n);\n\nQuestion: what are all the adversary where the beginning is 1899" }, { "role": "assistant", "content": "SELECT \"rival\" FROM \"primary_auburn_football_rivalries_all_ti\" WHERE \"first_meeting\"=1899;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"primary_auburn_football_rivalries_all_ti\" (\n \"name_of_rivalry\" text,\n \"rival\" text,\n \"games_played\" real,\n \"first_meeting\" real,\n \"last_meeting\" real,\n \"au_won\" real,\n \"au_lost\" real,\n \"ties\" real,\n \"streak\" text,\n \"latest_win\" text\n);\n\nQuestion: what is the length where the time is 2009" }, { "role": "assistant", "content": "SELECT \"streak\" FROM \"primary_auburn_football_rivalries_all_ti\" WHERE \"last_meeting\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28490105_1\" (\n \"rnd\" real,\n \"date\" text,\n \"circuit\" text,\n \"supporting\" text,\n \"distance\" text,\n \"gt_winning_car\" text,\n \"tc_winning_car\" text\n);\n\nQuestion: What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"table1_28490105_1\" WHERE \"supporting\"='Champ Car World Series ( Grand Prix of Cleveland )' AND \"tc_winning_car\"='Pierre Kleinubing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28490105_1\" (\n \"rnd\" real,\n \"date\" text,\n \"circuit\" text,\n \"supporting\" text,\n \"distance\" text,\n \"gt_winning_car\" text,\n \"tc_winning_car\" text\n);\n\nQuestion: What is the earliest round where the gt winning car is max angelelli?" }, { "role": "assistant", "content": "SELECT MIN(\"rnd\") FROM \"table1_28490105_1\" WHERE \"gt_winning_car\"='Max Angelelli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28490105_1\" (\n \"rnd\" real,\n \"date\" text,\n \"circuit\" text,\n \"supporting\" text,\n \"distance\" text,\n \"gt_winning_car\" text,\n \"tc_winning_car\" text\n);\n\nQuestion: Who was supporting in round 1 where the gt winning car was dodge viper?" }, { "role": "assistant", "content": "SELECT \"supporting\" FROM \"table1_28490105_1\" WHERE \"gt_winning_car\"='Dodge Viper' AND \"rnd\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28490105_1\" (\n \"rnd\" real,\n \"date\" text,\n \"circuit\" text,\n \"supporting\" text,\n \"distance\" text,\n \"gt_winning_car\" text,\n \"tc_winning_car\" text\n);\n\nQuestion: Who was supporting in the round when the gt winning car was dino crescentini?" }, { "role": "assistant", "content": "SELECT \"supporting\" FROM \"table1_28490105_1\" WHERE \"gt_winning_car\"='Dino Crescentini';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28466323_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many writers wrote the episode \"Woke Up Dead\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_28466323_2\" WHERE \"title\"='\\\"Woke Up Dead\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28466323_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the episode with production code 2j5568?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_28466323_2\" WHERE \"production_code\"='2J5568';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_28466323_2\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode watched by 2.01 million US viewers?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_28466323_2\" WHERE \"u_s_viewers_million\"='2.01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"boys\" (\n \"season\" text,\n \"sport\" text,\n \"tournament_structure\" text,\n \"num_of_divisions\" real,\n \"1st_tournament\" real,\n \"2012_2013_state_tournament_location\" text\n);\n\nQuestion: How many divisions in bowling ? " }, { "role": "assistant", "content": "SELECT \"num_of_divisions\" FROM \"boys\" WHERE \"sport\"='Bowling';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"viewing_figures\" (\n \"episode\" real,\n \"1st_season\" text,\n \"2nd_season\" text,\n \"3rd_season\" text,\n \"4th_season\" text,\n \"5th_season\" text,\n \"6th_season\" text,\n \"7th_season\" text\n);\n\nQuestion: How many 7th season episodes had 2nd season viewerships of 6 594 469?" }, { "role": "assistant", "content": "SELECT COUNT(\"7th_season\") FROM \"viewing_figures\" WHERE \"2nd_season\"='6 594 469';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"girls\" (\n \"season\" text,\n \"sport\" text,\n \"tournament_structure\" text,\n \"num_of_divisions\" real,\n \"1st_tournament\" real,\n \"2011_2012_state_tournament_location\" text\n);\n\nQuestion: How many first tournaments were winter sports with exactly 1 division?" }, { "role": "assistant", "content": "SELECT COUNT(\"1st_tournament\") FROM \"girls\" WHERE \"season\"='Winter' AND \"num_of_divisions\"=1;" } ]