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 \"official_callanetics_dv_ds_by_callan_pin\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"studio\" text,\n \"release_date\" text,\n \"copyright_information\" text,\n \"catalog_number\" text\n);\n\nQuestion: How many times was the catalog number cal04 / 0091037553546?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"official_callanetics_dv_ds_by_callan_pin\" WHERE \"catalog_number\"='CAL04 / 0091037553546';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_callanetics_dv_ds_by_callan_pin\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"studio\" text,\n \"release_date\" text,\n \"copyright_information\" text,\n \"catalog_number\" text\n);\n\nQuestion: how many times was the catalog number cal04 / 0091037553546?" }, { "role": "assistant", "content": "SELECT COUNT(\"copyright_information\") FROM \"official_callanetics_dv_ds_by_callan_pin\" WHERE \"catalog_number\"='CAL04 / 0091037553546';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_callanetics_dv_ds_by_callan_pin\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"studio\" text,\n \"release_date\" text,\n \"copyright_information\" text,\n \"catalog_number\" text\n);\n\nQuestion: how many times was the catalog number cal01 / 0091037137319?" }, { "role": "assistant", "content": "SELECT COUNT(\"copyright_information\") FROM \"official_callanetics_dv_ds_by_callan_pin\" WHERE \"catalog_number\"='CAL01 / 0091037137319';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_callanetics_dv_ds_by_callan_pin\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"studio\" text,\n \"release_date\" text,\n \"copyright_information\" text,\n \"catalog_number\" text\n);\n\nQuestion: how many times was the catalog number cal05 / 0091037137357?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"official_callanetics_dv_ds_by_callan_pin\" WHERE \"catalog_number\"='CAL05 / 0091037137357';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27332038_1\" (\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\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: who directed the episode that elaine ko wrote?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_27332038_1\" WHERE \"written_by\"='Elaine Ko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27332038_1\" (\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\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: when was the episode with production code \"2arg01\" originally aired?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_27332038_1\" WHERE \"production_code\"='2ARG01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27332038_1\" (\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\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what is the title of the episode with production code \"2arg09\"?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27332038_1\" WHERE \"production_code\"='2ARG09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27332038_1\" (\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\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: when was the episode with production code \"2arg24\" originally aired?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_27332038_1\" WHERE \"production_code\"='2ARG24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7_2013\" (\n \"episode\" text,\n \"date\" text,\n \"official_itv_rating_millions\" text,\n \"weekly_rank\" real,\n \"share_pct\" text,\n \"official_itv_hd_rating_millions\" text,\n \"total_itv_viewers_millions\" text\n);\n\nQuestion: What episode had a share percentage of 41.5%?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"series_7_2013\" WHERE \"share_pct\"='41.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7_2013\" (\n \"episode\" text,\n \"date\" text,\n \"official_itv_rating_millions\" text,\n \"weekly_rank\" real,\n \"share_pct\" text,\n \"official_itv_hd_rating_millions\" text,\n \"total_itv_viewers_millions\" text\n);\n\nQuestion: What date was the show's weekly ranking 12?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"series_7_2013\" WHERE \"weekly_rank\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7_2013\" (\n \"episode\" text,\n \"date\" text,\n \"official_itv_rating_millions\" text,\n \"weekly_rank\" real,\n \"share_pct\" text,\n \"official_itv_hd_rating_millions\" text,\n \"total_itv_viewers_millions\" text\n);\n\nQuestion: How many total itv viewers were there for the episode with official itv ratings of 10.24 million?" }, { "role": "assistant", "content": "SELECT \"total_itv_viewers_millions\" FROM \"series_7_2013\" WHERE \"official_itv_rating_millions\"='10.24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7_2013\" (\n \"episode\" text,\n \"date\" text,\n \"official_itv_rating_millions\" text,\n \"weekly_rank\" real,\n \"share_pct\" text,\n \"official_itv_hd_rating_millions\" text,\n \"total_itv_viewers_millions\" text\n);\n\nQuestion: How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?" }, { "role": "assistant", "content": "SELECT \"total_itv_viewers_millions\" FROM \"series_7_2013\" WHERE \"official_itv_hd_rating_millions\"='1.12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7_2013\" (\n \"episode\" text,\n \"date\" text,\n \"official_itv_rating_millions\" text,\n \"weekly_rank\" real,\n \"share_pct\" text,\n \"official_itv_hd_rating_millions\" text,\n \"total_itv_viewers_millions\" text\n);\n\nQuestion: What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers" }, { "role": "assistant", "content": "SELECT \"official_itv_rating_millions\" FROM \"series_7_2013\" WHERE \"total_itv_viewers_millions\"='8.53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7_2013\" (\n \"episode\" text,\n \"date\" text,\n \"official_itv_rating_millions\" text,\n \"weekly_rank\" real,\n \"share_pct\" text,\n \"official_itv_hd_rating_millions\" text,\n \"total_itv_viewers_millions\" text\n);\n\nQuestion: What were the official itv ratings in millions for semi-final 5?" }, { "role": "assistant", "content": "SELECT \"official_itv_rating_millions\" FROM \"series_7_2013\" WHERE \"episode\"='Semi-final 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"club\" text,\n \"chairman\" text,\n \"current_manager\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: What is the club when the chairman is roger lambrecht?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"personnel_and_sponsoring\" WHERE \"chairman\"='Roger Lambrecht';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"club\" text,\n \"chairman\" text,\n \"current_manager\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: What is the team captain when the shirt sponser is quick?" }, { "role": "assistant", "content": "SELECT \"team_captain\" FROM \"personnel_and_sponsoring\" WHERE \"shirt_sponsor\"='Quick';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"club\" text,\n \"chairman\" text,\n \"current_manager\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the chairman when the current manager is bob peeters?" }, { "role": "assistant", "content": "SELECT \"chairman\" FROM \"personnel_and_sponsoring\" WHERE \"current_manager\"='Bob Peeters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"club\" text,\n \"chairman\" text,\n \"current_manager\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: What is the club when the shirt sponsor is e-lotto.be?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"personnel_and_sponsoring\" WHERE \"shirt_sponsor\"='e-lotto.be';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"club\" text,\n \"chairman\" text,\n \"current_manager\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the team captain when the club is k.f.c. germinal beerschot?" }, { "role": "assistant", "content": "SELECT \"team_captain\" FROM \"personnel_and_sponsoring\" WHERE \"club\"='K.F.C. Germinal Beerschot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r_seau_du_sport_tudiant_du_qu_bec\" (\n \"university\" text,\n \"varsity_name\" text,\n \"city\" text,\n \"province\" text,\n \"founded\" real,\n \"soccer_stadium\" text,\n \"stadium_capacity\" real\n);\n\nQuestion: What is the varsity name of the university of mcgill university?" }, { "role": "assistant", "content": "SELECT \"varsity_name\" FROM \"r_seau_du_sport_tudiant_du_qu_bec\" WHERE \"university\"='McGill University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r_seau_du_sport_tudiant_du_qu_bec\" (\n \"university\" text,\n \"varsity_name\" text,\n \"city\" text,\n \"province\" text,\n \"founded\" real,\n \"soccer_stadium\" text,\n \"stadium_capacity\" real\n);\n\nQuestion: What is the soccer stadium with the varsity name is citadins?" }, { "role": "assistant", "content": "SELECT \"soccer_stadium\" FROM \"r_seau_du_sport_tudiant_du_qu_bec\" WHERE \"varsity_name\"='Citadins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r_seau_du_sport_tudiant_du_qu_bec\" (\n \"university\" text,\n \"varsity_name\" text,\n \"city\" text,\n \"province\" text,\n \"founded\" real,\n \"soccer_stadium\" text,\n \"stadium_capacity\" real\n);\n\nQuestion: What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"r_seau_du_sport_tudiant_du_qu_bec\" WHERE \"soccer_stadium\"='terrain #2 of Complexe sportif Claude-Robillard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r_seau_du_sport_tudiant_du_qu_bec\" (\n \"university\" text,\n \"varsity_name\" text,\n \"city\" text,\n \"province\" text,\n \"founded\" real,\n \"soccer_stadium\" text,\n \"stadium_capacity\" real\n);\n\nQuestion: What is the province for with the stadium capacity of 5100?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"r_seau_du_sport_tudiant_du_qu_bec\" WHERE \"stadium_capacity\"=5100;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"r_seau_du_sport_tudiant_du_qu_bec\" (\n \"university\" text,\n \"varsity_name\" text,\n \"city\" text,\n \"province\" text,\n \"founded\" real,\n \"soccer_stadium\" text,\n \"stadium_capacity\" real\n);\n\nQuestion: What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?" }, { "role": "assistant", "content": "SELECT \"university\" FROM \"r_seau_du_sport_tudiant_du_qu_bec\" WHERE \"soccer_stadium\"='terrain #2 of Complexe sportif Claude-Robillard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_regular_season\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: When was the date of appointment by Hugo Broos?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"during_regular_season\" WHERE \"replaced_by\"='Hugo Broos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_regular_season\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: How many times did outgoing manager Bart de Roover vacated a position?" }, { "role": "assistant", "content": "SELECT COUNT(\"date_of_vacancy\") FROM \"during_regular_season\" WHERE \"outgoing_manager\"='Bart De Roover';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_regular_season\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who was the outgoing manager of the team in 15th position that was sacked?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"during_regular_season\" WHERE \"manner_of_departure\"='Sacked' AND \"position_in_table\"='15th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_regular_season\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What was the team's position in table when Danny OST was the outgoing manager?" }, { "role": "assistant", "content": "SELECT \"position_in_table\" FROM \"during_regular_season\" WHERE \"outgoing_manager\"='Danny Ost';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" text,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"weekly_rank_num\" text\n);\n\nQuestion: how many maximum # when viewers (m) is 8.01" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"ratings\" WHERE \"viewers_m\"='8.01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" text,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"weekly_rank_num\" text\n);\n\nQuestion: how many number 18-49 (rating/share) when viewers (m) is 7.35" }, { "role": "assistant", "content": "SELECT \"18_49_rating_share\" FROM \"ratings\" WHERE \"viewers_m\"='7.35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" text,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"weekly_rank_num\" text\n);\n\nQuestion: what is episode \"take two\" air date" }, { "role": "assistant", "content": "SELECT \"air_date\" FROM \"ratings\" WHERE \"episode\"='\\\"Take Two\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"rating\" text,\n \"share\" text,\n \"18_49_rating_share\" text,\n \"viewers_m\" text,\n \"weekly_rank_num\" text\n);\n\nQuestion: when air date is october 14, 2010 what are all 18-49 (rating/share date." }, { "role": "assistant", "content": "SELECT \"18_49_rating_share\" FROM \"ratings\" WHERE \"air_date\"='October 14, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_summer_break\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How many outgoing managers were replaced by Bob Peeters?" }, { "role": "assistant", "content": "SELECT COUNT(\"outgoing_manager\") FROM \"during_summer_break\" WHERE \"replaced_by\"='Bob Peeters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_summer_break\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who replaced Michel Preud'homme?" }, { "role": "assistant", "content": "SELECT \"replaced_by\" FROM \"during_summer_break\" WHERE \"outgoing_manager\"='Michel Preud''homme';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_summer_break\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the manner of departure for the manager of Cercle Brugge?" }, { "role": "assistant", "content": "SELECT \"manner_of_departure\" FROM \"during_summer_break\" WHERE \"team\"='Cercle Brugge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"during_summer_break\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the outgoing manager of Charleroi?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"during_summer_break\" WHERE \"team\"='Charleroi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text,\n \"past_season\" text\n);\n\nQuestion: What sponsor has the head coach Samad Marfavi?" }, { "role": "assistant", "content": "SELECT \"shirt_sponsor\" FROM \"personnel_and_sponsoring\" WHERE \"head_coach\"='Samad Marfavi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text,\n \"past_season\" text\n);\n\nQuestion: What sponsor has merooj kit maker and captain Pejman Nouri?" }, { "role": "assistant", "content": "SELECT \"shirt_sponsor\" FROM \"personnel_and_sponsoring\" WHERE \"kit_maker\"='Merooj' AND \"team_captain\"='Pejman Nouri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text,\n \"past_season\" text\n);\n\nQuestion: Which team has Ali Daei as head coach?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"personnel_and_sponsoring\" WHERE \"head_coach\"='Ali Daei';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text,\n \"past_season\" text\n);\n\nQuestion: What is the kit maker for team foolad?" }, { "role": "assistant", "content": "SELECT \"kit_maker\" FROM \"personnel_and_sponsoring\" WHERE \"team\"='Foolad';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kit_maker\" text,\n \"shirt_sponsor\" text,\n \"past_season\" text\n);\n\nQuestion: How many head coaches named Darius Mikaeili?" }, { "role": "assistant", "content": "SELECT COUNT(\"head_coach\") FROM \"personnel_and_sponsoring\" WHERE \"team_captain\"='Darius Mikaeili';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in_season\" (\n \"team\" text,\n \"outgoing_head_coach\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" real,\n \"incoming_head_coach\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who is the outgoing head coach when the incoming head coach is abdollah veysi?" }, { "role": "assistant", "content": "SELECT \"outgoing_head_coach\" FROM \"in_season\" WHERE \"incoming_head_coach\"='Abdollah Veysi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in_season\" (\n \"team\" text,\n \"outgoing_head_coach\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" real,\n \"incoming_head_coach\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: When is the date of appointment when the position in table is 16?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"in_season\" WHERE \"position_in_table\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in_season\" (\n \"team\" text,\n \"outgoing_head_coach\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" real,\n \"incoming_head_coach\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How many times is the incoming head coach abdollah veysi?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"in_season\" WHERE \"incoming_head_coach\"='Abdollah Veysi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in_season\" (\n \"team\" text,\n \"outgoing_head_coach\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" real,\n \"incoming_head_coach\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What is the team with the date of vacancy 8 dec 2010?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"in_season\" WHERE \"date_of_vacancy\"='8 Dec 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"in_season\" (\n \"team\" text,\n \"outgoing_head_coach\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" real,\n \"incoming_head_coach\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What is the manner of departure when the incoming head coach is mohammad khakpour?" }, { "role": "assistant", "content": "SELECT \"manner_of_departure\" FROM \"in_season\" WHERE \"incoming_head_coach\"='Mohammad Khakpour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27389024_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of U.S viewers watched the episode titled \"Mended Hearts\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_27389024_2\" WHERE \"title\"='\\\"Mended Hearts\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27389024_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of U.S. viewers watched the episode titled \"Lost Boys\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_27389024_2\" WHERE \"title\"='\\\"Lost Boys\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27389024_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the original air date of the episode that was written by Rama Stagner? " }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_27389024_2\" WHERE \"written_by\"='Rama Stagner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"pos\" real,\n \"grid\" real,\n \"car\" real,\n \"driver\" text,\n \"constructor\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"laps_led\" real,\n \"points\" real\n);\n\nQuestion: For the #19 car, what was their finish position?" }, { "role": "assistant", "content": "SELECT MAX(\"pos\") FROM \"race_results\" WHERE \"car\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"pos\" real,\n \"grid\" real,\n \"car\" real,\n \"driver\" text,\n \"constructor\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"laps_led\" real,\n \"points\" real\n);\n\nQuestion: How many constructors had a grid of 13?" }, { "role": "assistant", "content": "SELECT COUNT(\"constructor\") FROM \"race_results\" WHERE \"grid\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"pos\" real,\n \"grid\" real,\n \"car\" real,\n \"driver\" text,\n \"constructor\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"laps_led\" real,\n \"points\" real\n);\n\nQuestion: What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin?" }, { "role": "assistant", "content": "SELECT MAX(\"pos\") FROM \"race_results\" WHERE \"constructor\"='Joe Gibbs Racing' AND \"driver\"='Denny Hamlin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27397948_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: List all titles with a 57 series number." }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_27397948_2\" WHERE \"no_in_series\"=57;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27397948_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the highest season number with a series number of 47?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_27397948_2\" WHERE \"no_in_series\"=47;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27397948_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: Who was the writer for season episode 7?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_27397948_2\" WHERE \"no_in_season\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27397948_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of US viewers were there for the episode \"No Safe Place\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_27397948_2\" WHERE \"title\"='\\\"No Safe Place\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27401228_1\" (\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: Name who directed when the viewers is 5.86" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_27401228_1\" WHERE \"u_s_viewers_million\"='5.86';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_naiste_meistriliiga\" (\n \"club\" text,\n \"location\" text,\n \"ground\" text,\n \"manager\" text,\n \"titles\" real,\n \"last_title\" text\n);\n\nQuestion: Where is lootos p\u00f5lva from?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"2013_naiste_meistriliiga\" WHERE \"club\"='Lootos P\u00f5lva';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_naiste_meistriliiga\" (\n \"club\" text,\n \"location\" text,\n \"ground\" text,\n \"manager\" text,\n \"titles\" real,\n \"last_title\" text\n);\n\nQuestion: Who is the manager for lootos p\u00f5lva?" }, { "role": "assistant", "content": "SELECT \"manager\" FROM \"2013_naiste_meistriliiga\" WHERE \"club\"='Lootos P\u00f5lva';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_naiste_meistriliiga\" (\n \"club\" text,\n \"location\" text,\n \"ground\" text,\n \"manager\" text,\n \"titles\" real,\n \"last_title\" text\n);\n\nQuestion: Where is lootospark from?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"2013_naiste_meistriliiga\" WHERE \"ground\"='Lootospark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_naiste_meistriliiga\" (\n \"club\" text,\n \"location\" text,\n \"ground\" text,\n \"manager\" text,\n \"titles\" real,\n \"last_title\" text\n);\n\nQuestion: Who is the p\u00e4rnu manager?" }, { "role": "assistant", "content": "SELECT \"manager\" FROM \"2013_naiste_meistriliiga\" WHERE \"club\"='P\u00e4rnu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_naiste_meistriliiga\" (\n \"club\" text,\n \"location\" text,\n \"ground\" text,\n \"manager\" text,\n \"titles\" real,\n \"last_title\" text\n);\n\nQuestion: Where is the team that is managed by richard barnwell from?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"2013_naiste_meistriliiga\" WHERE \"manager\"='Richard Barnwell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_naiste_meistriliiga\" (\n \"club\" text,\n \"location\" text,\n \"ground\" text,\n \"manager\" text,\n \"titles\" real,\n \"last_title\" text\n);\n\nQuestion: What is the home location for team flora tallinn?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"2013_naiste_meistriliiga\" WHERE \"club\"='Flora Tallinn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27403436_1\" (\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 viewers watched the episode written by shana goldberg-meehan & greg malins? " }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_27403436_1\" WHERE \"written_by\"='Shana Goldberg-Meehan & Greg Malins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27403436_1\" (\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: which number lists the production code as 2j5809" }, { "role": "assistant", "content": "SELECT \"no\" FROM \"table1_27403436_1\" WHERE \"production_code\"='2J5809';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_274117_5\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"seasons_by_team\" text,\n \"year_of_induction_into_pro_football_hall_of_fame\" text\n);\n\nQuestion: What position was Bob Lilly?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"table1_274117_5\" WHERE \"player\"='Bob Lilly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_274117_5\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"seasons_by_team\" text,\n \"year_of_induction_into_pro_football_hall_of_fame\" text\n);\n\nQuestion: What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances? " }, { "role": "assistant", "content": "SELECT \"seasons_by_team\" FROM \"table1_274117_5\" WHERE \"position\"='OL' AND \"number\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_274117_5\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"seasons_by_team\" text,\n \"year_of_induction_into_pro_football_hall_of_fame\" text\n);\n\nQuestion: What position was the player who was inducted into the Pro Football Hall of Fame in 1980? " }, { "role": "assistant", "content": "SELECT \"position\" FROM \"table1_274117_5\" WHERE \"year_of_induction_into_pro_football_hall_of_fame\"='1980';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_274117_5\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"seasons_by_team\" text,\n \"year_of_induction_into_pro_football_hall_of_fame\" text\n);\n\nQuestion: When was Will Shields inducted into the Pro Football Hall of Fame?" }, { "role": "assistant", "content": "SELECT \"year_of_induction_into_pro_football_hall_of_fame\" FROM \"table1_274117_5\" WHERE \"player\"='Will Shields';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_274117_5\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"seasons_by_team\" text,\n \"year_of_induction_into_pro_football_hall_of_fame\" text\n);\n\nQuestion: What is the fewest amount of Pro Bowl appearances any of the players had? " }, { "role": "assistant", "content": "SELECT MIN(\"number\") FROM \"table1_274117_5\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27412213_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\" text\n);\n\nQuestion: Who directed the episode titled \"Not Without My Jacket\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_27412213_3\" WHERE \"title\"='\\\"Not Without My Jacket\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27412213_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\" text\n);\n\nQuestion: How many U.S. viewers in millions watched the episode titled \"The Truth About Dads and Moms\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"u_s_viewers_million\") FROM \"table1_27412213_3\" WHERE \"title\"='\\\"The Truth About Dads and Moms\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27434_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What is the life expectancy of men with an IMR of 64?" }, { "role": "assistant", "content": "SELECT \"life_expectancy_males\" FROM \"table1_27434_2\" WHERE \"imr\"=64;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27434_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: How many live births per year do people with a life expectancy of 65.1 have?" }, { "role": "assistant", "content": "SELECT \"live_births_per_year\" FROM \"table1_27434_2\" WHERE \"life_expectancy_total\"='65.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27434_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What period was there a 22.7 NC?" }, { "role": "assistant", "content": "SELECT \"period\" FROM \"table1_27434_2\" WHERE \"nc\"='22.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27434_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What is the natural change per year for the 7.2 CDR group?" }, { "role": "assistant", "content": "SELECT \"natural_change_per_year\" FROM \"table1_27434_2\" WHERE \"cdr\"='7.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27434_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What is the natural change per year for the 34 IMR group?" }, { "role": "assistant", "content": "SELECT \"natural_change_per_year\" FROM \"table1_27434_2\" WHERE \"imr\"=34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27434_2\" (\n \"period\" text,\n \"live_births_per_year\" text,\n \"deaths_per_year\" text,\n \"natural_change_per_year\" text,\n \"cbr\" text,\n \"cdr\" text,\n \"nc\" text,\n \"tfr\" text,\n \"imr\" real,\n \"life_expectancy_total\" text,\n \"life_expectancy_males\" text,\n \"life_expectancy_females\" text\n);\n\nQuestion: What period was the life expectancy at 62.4?" }, { "role": "assistant", "content": "SELECT \"period\" FROM \"table1_27434_2\" WHERE \"life_expectancy_total\"='62.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"m\" (\n \"artist\" text,\n \"country\" text,\n \"number_one_single_s\" text,\n \"year\" real,\n \"weeks_at_num1\" real,\n \"straight_to_num1\" text\n);\n\nQuestion: Who is the artiest when the number one single is \"elle\"?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"m\" WHERE \"number_one_single_s\"='\\\"Elle\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27435931_1\" (\n \"year\" text,\n \"summits\" text,\n \"country\" text,\n \"continent\" text,\n \"elevation_ft\" real,\n \"elevation_m\" real\n);\n\nQuestion: In what year is australia/oceania listed? " }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"table1_27435931_1\" WHERE \"continent\"='Australia/Oceania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27435931_1\" (\n \"year\" text,\n \"summits\" text,\n \"country\" text,\n \"continent\" text,\n \"elevation_ft\" real,\n \"elevation_m\" real\n);\n\nQuestion: what was the elevation in september 2009?" }, { "role": "assistant", "content": "SELECT \"elevation_m\" FROM \"table1_27435931_1\" WHERE \"year\"='September 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27435931_1\" (\n \"year\" text,\n \"summits\" text,\n \"country\" text,\n \"continent\" text,\n \"elevation_ft\" real,\n \"elevation_m\" real\n);\n\nQuestion: what is the continent in which the country russia is listed?" }, { "role": "assistant", "content": "SELECT \"continent\" FROM \"table1_27435931_1\" WHERE \"country\"='Russia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27435931_1\" (\n \"year\" text,\n \"summits\" text,\n \"country\" text,\n \"continent\" text,\n \"elevation_ft\" real,\n \"elevation_m\" real\n);\n\nQuestion: what was the lowest elevation in april 2006?" }, { "role": "assistant", "content": "SELECT MIN(\"elevation_ft\") FROM \"table1_27435931_1\" WHERE \"year\"='April 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27435931_1\" (\n \"year\" text,\n \"summits\" text,\n \"country\" text,\n \"continent\" text,\n \"elevation_ft\" real,\n \"elevation_m\" real\n);\n\nQuestion: what is elevation of tanzania?" }, { "role": "assistant", "content": "SELECT COUNT(\"elevation_ft\") FROM \"table1_27435931_1\" WHERE \"country\"='Tanzania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27435931_1\" (\n \"year\" text,\n \"summits\" text,\n \"country\" text,\n \"continent\" text,\n \"elevation_ft\" real,\n \"elevation_m\" real\n);\n\nQuestion: what is the elevation of south america? " }, { "role": "assistant", "content": "SELECT \"elevation_ft\" FROM \"table1_27435931_1\" WHERE \"continent\"='South America';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27437601_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: List the season above 241.0 that was handled by brad tanenbaum." }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_27437601_2\" WHERE \"directed_by\"='Brad Tanenbaum' AND \"no_in_series\">241.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27437601_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: List the series number with the espide called \"shock waves\"." }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_27437601_2\" WHERE \"title\"='\\\"Shock Waves\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27437601_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: List the 1st air date for season 12." }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_27437601_2\" WHERE \"no_in_season\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27437601_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: List the series number for season 12." }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_27437601_2\" WHERE \"no_in_season\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"artist\" text,\n \"country\" text,\n \"number_one_single_s\" text,\n \"year\" real,\n \"weeks_at_num1\" real,\n \"straight_to_num1\" text\n);\n\nQuestion: How many years was the country Belgium?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"l\" WHERE \"country\"='Belgium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"p\" (\n \"artist\" text,\n \"country\" text,\n \"number_one_single_s\" text,\n \"year\" real,\n \"weeks_at_num1\" real,\n \"straight_to_num1\" text\n);\n\nQuestion: What number-one single is performed by artist Pep's?" }, { "role": "assistant", "content": "SELECT \"number_one_single_s\" FROM \"p\" WHERE \"artist\"='Pep''s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_auditions\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"first_audition_date\" text,\n \"audition_venue\" text,\n \"callback_audition_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" text\n);\n\nQuestion: Where were the auditions held in the episode that aired on january 27, 2011?" }, { "role": "assistant", "content": "SELECT \"audition_city\" FROM \"regional_auditions\" WHERE \"episode_air_date\"='January 27, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_auditions\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"first_audition_date\" text,\n \"audition_venue\" text,\n \"callback_audition_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" text\n);\n\nQuestion: In how many different audition cities were the Bridgestone arena auditions held?" }, { "role": "assistant", "content": "SELECT COUNT(\"audition_city\") FROM \"regional_auditions\" WHERE \"audition_venue\"='Bridgestone Arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_auditions\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"first_audition_date\" text,\n \"audition_venue\" text,\n \"callback_audition_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" text\n);\n\nQuestion: When was the callback audition date for the audition city from the episode aired on February 2, 2011?" }, { "role": "assistant", "content": "SELECT \"callback_audition_date\" FROM \"regional_auditions\" WHERE \"episode_air_date\"='February 2, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_auditions\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"first_audition_date\" text,\n \"audition_venue\" text,\n \"callback_audition_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" text\n);\n\nQuestion: When were the callback auditions at Hilton Riverside Hotel held?" }, { "role": "assistant", "content": "SELECT \"callback_audition_date\" FROM \"regional_auditions\" WHERE \"callback_venue\"='Hilton Riverside Hotel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_auditions\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"first_audition_date\" text,\n \"audition_venue\" text,\n \"callback_audition_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" text\n);\n\nQuestion: What was the callback venue for the audition city in the episode aired on January 20, 2011?" }, { "role": "assistant", "content": "SELECT \"callback_venue\" FROM \"regional_auditions\" WHERE \"episode_air_date\"='January 20, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_auditions\" (\n \"episode_air_date\" text,\n \"audition_city\" text,\n \"first_audition_date\" text,\n \"audition_venue\" text,\n \"callback_audition_date\" text,\n \"callback_venue\" text,\n \"golden_tickets\" text\n);\n\nQuestion: When were the callback auditions for the audition city in the episode aired on February 9, 2011?" }, { "role": "assistant", "content": "SELECT \"callback_audition_date\" FROM \"regional_auditions\" WHERE \"episode_air_date\"='February 9, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27462177_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: How many episodes did Eve Weston write?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_27462177_1\" WHERE \"written_by\"='Eve Weston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27462177_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: How many millions of US viewers watched the episode written by Jack Sanderson?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_27462177_1\" WHERE \"written_by\"='Jack Sanderson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_27462199_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_u_s_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: What is the series episode number of \"Taxi Dance\"?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_series\") FROM \"table1_27462199_1\" WHERE \"title\"='\\\"Taxi Dance\\\"';" } ]