chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10818465_1\" (\n \"model\" text,\n \"ru\" real,\n \"max_processors\" text,\n \"processor_frequency\" text,\n \"max_memory\" text,\n \"max_disk_capacity\" text,\n \"ga_date\" text\n);\n\nQuestion: What is the lowest ru?" }, { "role": "assistant", "content": "SELECT MIN(\"ru\") FROM \"table1_10818465_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10818465_1\" (\n \"model\" text,\n \"ru\" real,\n \"max_processors\" text,\n \"processor_frequency\" text,\n \"max_memory\" text,\n \"max_disk_capacity\" text,\n \"ga_date\" text\n);\n\nQuestion: What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?" }, { "role": "assistant", "content": "SELECT \"ga_date\" FROM \"table1_10818465_1\" WHERE \"processor_frequency\"='1.0, 1.2, 1.4GHz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10818465_1\" (\n \"model\" text,\n \"ru\" real,\n \"max_processors\" text,\n \"processor_frequency\" text,\n \"max_memory\" text,\n \"max_disk_capacity\" text,\n \"ga_date\" text\n);\n\nQuestion: What is the ga date of the t5120 model?" }, { "role": "assistant", "content": "SELECT \"ga_date\" FROM \"table1_10818465_1\" WHERE \"model\"='T5120';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_in_total_attendance\" (\n \"league\" text,\n \"sport\" text,\n \"country\" text,\n \"season\" text,\n \"games\" real,\n \"average_attendance\" real,\n \"total_attendance\" real\n);\n\nQuestion: What is the sport of the La Liga league?" }, { "role": "assistant", "content": "SELECT \"sport\" FROM \"top_10_in_total_attendance\" WHERE \"league\"='La Liga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_in_total_attendance\" (\n \"league\" text,\n \"sport\" text,\n \"country\" text,\n \"season\" text,\n \"games\" real,\n \"average_attendance\" real,\n \"total_attendance\" real\n);\n\nQuestion: What's the minimum total attendance of the Premier League association football?" }, { "role": "assistant", "content": "SELECT MIN(\"total_attendance\") FROM \"top_10_in_total_attendance\" WHERE \"sport\"='Association football' AND \"league\"='Premier League';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_in_total_attendance\" (\n \"league\" text,\n \"sport\" text,\n \"country\" text,\n \"season\" text,\n \"games\" real,\n \"average_attendance\" real,\n \"total_attendance\" real\n);\n\nQuestion: What's the average attendance of the leagues in the season of 2013?" }, { "role": "assistant", "content": "SELECT MIN(\"average_attendance\") FROM \"top_10_in_total_attendance\" WHERE \"season\"='2013';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_in_total_attendance\" (\n \"league\" text,\n \"sport\" text,\n \"country\" text,\n \"season\" text,\n \"games\" real,\n \"average_attendance\" real,\n \"total_attendance\" real\n);\n\nQuestion: What's the total attendance of the leagues in season of 2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"total_attendance\") FROM \"top_10_in_total_attendance\" WHERE \"season\"='2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10874596_1\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who were the directors of the film submitted with the title Young T\u00f6rless?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_10874596_1\" WHERE \"film_title_used_in_nomination\"='Young T\u00f6rless';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10874596_1\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What was the original title of the film submitted with the title A Woman in Flames?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"table1_10874596_1\" WHERE \"film_title_used_in_nomination\"='A Woman in Flames';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10874596_1\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: In what years was a film submitted with the title The Enigma of Kaspar Hauser?" }, { "role": "assistant", "content": "SELECT \"year_e_ceremony\" FROM \"table1_10874596_1\" WHERE \"film_title_used_in_nomination\"='The Enigma of Kaspar Hauser';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10874596_1\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who were the directors of the film with the original title o.k.?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_10874596_1\" WHERE \"original_title\"='o.k.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kansas_city_comets\" (\n \"year\" text,\n \"division\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"avg_attendance\" real\n);\n\nQuestion: What is the division for the division semifinals playoffs?" }, { "role": "assistant", "content": "SELECT \"division\" FROM \"kansas_city_comets\" WHERE \"playoffs\"='Division Semifinals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10908676_7\" (\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);\n\nQuestion: What is the number in series of \"say uncle\"?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_10908676_7\" WHERE \"title\"='\\\"Say Uncle\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10908676_7\" (\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);\n\nQuestion: What is the title written by David Mamet?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10908676_7\" WHERE \"written_by\"='David Mamet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2006\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: What was the finale for \u6f6e\u7206\u5927\u72c0" }, { "role": "assistant", "content": "SELECT \"finale\" FROM \"highest_rating_drama_series_of_2006\" WHERE \"chinese_title\"='\u6f6e\u7206\u5927\u72c0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2006\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: What was the finale for \u6f6e\u7206\u5927\u72c0" }, { "role": "assistant", "content": "SELECT \"finale\" FROM \"highest_rating_drama_series_of_2006\" WHERE \"chinese_title\"='\u6f6e\u7206\u5927\u72c0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2006\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: How many viewers were there for the premier with 34" }, { "role": "assistant", "content": "SELECT \"hk_viewers\" FROM \"highest_rating_drama_series_of_2006\" WHERE \"premiere\"=34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2006\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: How many are listed under \u6f6e\u7206\u5927\u72c0" }, { "role": "assistant", "content": "SELECT COUNT(\"peak\") FROM \"highest_rating_drama_series_of_2006\" WHERE \"chinese_title\"='\u6f6e\u7206\u5927\u72c0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1993_1994\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who was the director of the episode with a production code of 2393059?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"season_2_1993_1994\" WHERE \"production_code\"='2393059';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1993_1994\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many people wrote \"Michael's Game\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"writer_s\") FROM \"season_2_1993_1994\" WHERE \"title\"='\\\"Michael''s Game\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2_1993_1994\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: When did the episode title \"Duet For One\" air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"season_2_1993_1994\" WHERE \"title\"='\\\"Duet for One\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10935548_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: Which episode had 16.38 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10935548_1\" WHERE \"u_s_viewers_millions\"='16.38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10935548_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 production code of the episode written by Jos\u00e9 Molina that aired on October 12, 2004?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_10935548_1\" WHERE \"written_by\"='Jos\u00e9 Molina' AND \"original_air_date\"='October 12, 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10935548_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 was the original air date of the episode \"Quarry\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10935548_1\" WHERE \"title\"='\\\"Quarry\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10935548_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: Which episode was directed by Jean de Segonzac?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10935548_1\" WHERE \"directed_by\"='Jean de Segonzac';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10953197_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: what are the original air dates with a production code of 2394087" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10953197_3\" WHERE \"production_code\"='2394087';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10953197_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who are the writers for the title \"boxing sydney\"" }, { "role": "assistant", "content": "SELECT \"writer_s\" FROM \"table1_10953197_3\" WHERE \"title\"='\\\"Boxing Sydney\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10953197_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What are the production codes for the title \"all about brooke\"" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_10953197_3\" WHERE \"title\"='\\\"All About Brooke\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10953197_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who are the writer(s) for the production code 2394084" }, { "role": "assistant", "content": "SELECT \"writer_s\" FROM \"table1_10953197_3\" WHERE \"production_code\"='2394084';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_4_1995_1996\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What's the total number of episodes with the production code 2395113A?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"season_4_1995_1996\" WHERE \"production_code\"='2395113A';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_4_1995_1996\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What's the number of the episode called \"Melrose Unglued\"?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_series\") FROM \"season_4_1995_1996\" WHERE \"title\"='\\\"Melrose Unglued\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_4_1995_1996\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who's the writer for the episode with a production code 2395114?" }, { "role": "assistant", "content": "SELECT \"writer_s\" FROM \"season_4_1995_1996\" WHERE \"production_code\"='2395114';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_4_1995_1996\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed the episode titled \"Full Metal Betsy\"?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"season_4_1995_1996\" WHERE \"title\"='\\\"Full Metal Betsy\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_4_1995_1996\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What's the number of the episode with production code 2395118?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"season_4_1995_1996\" WHERE \"production_code\"='2395118';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_4_1995_1996\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who was the writer for the episode with production code 2395096?" }, { "role": "assistant", "content": "SELECT \"writer_s\" FROM \"season_4_1995_1996\" WHERE \"production_code\"='2395096';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planets\" (\n \"planet\" text,\n \"planet_type\" text,\n \"semimajor_axis_au\" text,\n \"orbital_period\" text,\n \"radial_velocity_m_s\" text,\n \"detectable_by\" text\n);\n\nQuestion: What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?" }, { "role": "assistant", "content": "SELECT \"detectable_by\" FROM \"planets\" WHERE \"radial_velocity_m_s\"='0.089';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planets\" (\n \"planet\" text,\n \"planet_type\" text,\n \"semimajor_axis_au\" text,\n \"orbital_period\" text,\n \"radial_velocity_m_s\" text,\n \"detectable_by\" text\n);\n\nQuestion: How long is the orbital period for the planet that has a semimajor axis of 5.20 au?" }, { "role": "assistant", "content": "SELECT \"orbital_period\" FROM \"planets\" WHERE \"semimajor_axis_au\"='5.20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planets\" (\n \"planet\" text,\n \"planet_type\" text,\n \"semimajor_axis_au\" text,\n \"orbital_period\" text,\n \"radial_velocity_m_s\" text,\n \"detectable_by\" text\n);\n\nQuestion: What generation of spectrograph is Jupiter detected by?" }, { "role": "assistant", "content": "SELECT \"detectable_by\" FROM \"planets\" WHERE \"planet\"='Jupiter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planets\" (\n \"planet\" text,\n \"planet_type\" text,\n \"semimajor_axis_au\" text,\n \"orbital_period\" text,\n \"radial_velocity_m_s\" text,\n \"detectable_by\" text\n);\n\nQuestion: Which planet has an orbital period of 11.86 years?" }, { "role": "assistant", "content": "SELECT \"planet\" FROM \"planets\" WHERE \"orbital_period\"='11.86 years';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_7_1998_1999\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: who directed the production code 2398204" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"season_7_1998_1999\" WHERE \"production_code\"='2398204';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_7_1998_1999\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: when did \"unpleasantville\" air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"season_7_1998_1999\" WHERE \"title\"='\\\"Unpleasantville\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10960039_1\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is player Alexis Bwenge's pick number?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"table1_10960039_1\" WHERE \"player\"='Alexis Bwenge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10960039_1\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player is pick #2?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"table1_10960039_1\" WHERE \"pick_num\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10960039_1\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player's college is Saskatchewan?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"table1_10960039_1\" WHERE \"college\"='Saskatchewan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10960039_1\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is McMaster College's pick number?" }, { "role": "assistant", "content": "SELECT MIN(\"pick_num\") FROM \"table1_10960039_1\" WHERE \"college\"='McMaster';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_6_1997_1998\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: give the least number of times an episode was shown from 1997-1998" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"season_6_1997_1998\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_6_1997_1998\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: when was the episode named \"the doctor is in... deep\" first broadcast " }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"season_6_1997_1998\" WHERE \"title\"='\\\"The Doctor Is In... Deep\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_6_1997_1998\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: how many times does the episode called \"coop de grace\" appear " }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"season_6_1997_1998\" WHERE \"title\"='\\\"Coop de Grace\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_6_1997_1998\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode " }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"season_6_1997_1998\" WHERE \"director\"='Chip Chalmers' AND \"production_code\"='2397162';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10966926_2\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Which player went to Michigan State?" }, { "role": "assistant", "content": "SELECT \"player_name\" FROM \"table1_10966926_2\" WHERE \"college\"='Michigan State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10966926_2\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Which player went to college in Oklahoma?" }, { "role": "assistant", "content": "SELECT \"player_name\" FROM \"table1_10966926_2\" WHERE \"college\"='Oklahoma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10966926_2\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: Which position does Colt Brennan play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"table1_10966926_2\" WHERE \"player_name\"='Colt Brennan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10966926_2\" (\n \"round\" real,\n \"choice\" real,\n \"player_name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"college\" text\n);\n\nQuestion: What is the height of the person that weighs 320 pounds?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"table1_10966926_2\" WHERE \"weight\"=320;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many colleges have a DB position?" }, { "role": "assistant", "content": "SELECT COUNT(\"college\") FROM \"round_four\" WHERE \"position\"='DB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the maximum number of picks for the CFL team Calgary Stampeders?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_four\" WHERE \"cfl_team\"='Calgary Stampeders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many CFL teams are from York college?" }, { "role": "assistant", "content": "SELECT COUNT(\"cfl_team\") FROM \"round_four\" WHERE \"college\"='York';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What CFL teams are part of Simon Fraser college?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_four\" WHERE \"college\"='Simon Fraser';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which players have a pick number of 27?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_four\" WHERE \"pick_num\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many times were players named brett ralph were selected?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_six\" WHERE \"player\"='Brett Ralph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What schools did lenard semajuste play for?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_six\" WHERE \"player\"='Lenard Semajuste';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the highest selection number for the saskatchewan roughriders team?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_six\" WHERE \"cfl_team\"='Saskatchewan Roughriders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many fb players were drafted?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_six\" WHERE \"position\"='FB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many players played for adams state school?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"round_six\" WHERE \"college\"='Adams State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What teams drafted players that played for northwood school?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_six\" WHERE \"college\"='Northwood';" } ]
[ { "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_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did Craig Zimmer go to?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_five\" WHERE \"player\"='Craig Zimmer';" } ]
[ { "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_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the pick number of regina?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_five\" WHERE \"college\"='Regina';" } ]
[ { "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_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the player who is lb and cfl team is saskatchewan roughriders?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"position\"='LB' AND \"cfl_team\"='Saskatchewan Roughriders';" } ]
[ { "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_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the cfl team that has a position of ol?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"position\"='OL';" } ]
[ { "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_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the number of position where the pick number is 43?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"round_five\" WHERE \"pick_num\"=43;" } ]
[ { "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_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the cfl team with ryan folk?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"player\"='Ryan Folk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: What release date is when kids-270 is a reference? " }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"singles\" WHERE \"reference\"='KIDS-270';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: what is the title where romaji is titles da.i.su.ki" }, { "role": "assistant", "content": "SELECT \"japanese_title\" FROM \"singles\" WHERE \"romaji_title\"='Da.i.su.ki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: what are the title in japanese where the reference is kids-430?" }, { "role": "assistant", "content": "SELECT \"japanese_title\" FROM \"singles\" WHERE \"reference\"='KIDS-430';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: who is the reference when romaji title is heartbreak sniper?" }, { "role": "assistant", "content": "SELECT \"reference\" FROM \"singles\" WHERE \"romaji_title\"='Heartbreak Sniper';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albums\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: What rank is \u611b\u306e\u30d0\u30ab on the Japanese singles chart?" }, { "role": "assistant", "content": "SELECT COUNT(\"oricon\") FROM \"albums\" WHERE \"japanese_title\"='\u611b\u306e\u30d0\u30ab';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albums\" (\n \"romaji_title\" text,\n \"japanese_title\" text,\n \"release_date\" text,\n \"reference\" text,\n \"oricon\" real\n);\n\nQuestion: How many songs have mi-chemin as their Japanese name and romanji name?" }, { "role": "assistant", "content": "SELECT COUNT(\"romaji_title\") FROM \"albums\" WHERE \"japanese_title\"='Mi-Chemin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura" }, { "role": "assistant", "content": "SELECT \"partial_thromboplastin_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Factor X deficiency as seen in amyloid purpura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: How many conditions have an unaffected prothrombin time and a prolonged bleeding time" }, { "role": "assistant", "content": "SELECT COUNT(\"condition\") FROM \"laboratory_findings_in_various_platelet_\" WHERE \"prothrombin_time\"='Unaffected' AND \"bleeding_time\"='Prolonged';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What was the bleeding time for the factor x deficiency as seen in amyloid purpura" }, { "role": "assistant", "content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Factor X deficiency as seen in amyloid purpura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What conditions had both prolonged bleeding times and prolonged partial thromboplastin times" }, { "role": "assistant", "content": "SELECT \"condition\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='Prolonged' AND \"bleeding_time\"='Prolonged';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What was the bleeding time for factor xii deficiency" }, { "role": "assistant", "content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"condition\"='Factor XII deficiency';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"laboratory_findings_in_various_platelet_\" (\n \"condition\" text,\n \"prothrombin_time\" text,\n \"partial_thromboplastin_time\" text,\n \"bleeding_time\" text,\n \"platelet_count\" text\n);\n\nQuestion: What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected" }, { "role": "assistant", "content": "SELECT \"bleeding_time\" FROM \"laboratory_findings_in_various_platelet_\" WHERE \"partial_thromboplastin_time\"='Unaffected' AND \"platelet_count\"='Unaffected';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locations\" (\n \"location\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: what's the\u00a0tuesday\u00a0time with\u00a0location\u00a0being millhopper" }, { "role": "assistant", "content": "SELECT \"tuesday\" FROM \"locations\" WHERE \"location\"='Millhopper';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locations\" (\n \"location\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: what's the\u00a0wednesday time\u00a0with\u00a0monday\u00a0being 10:00-8:00" }, { "role": "assistant", "content": "SELECT \"wednesday\" FROM \"locations\" WHERE \"monday\"='10:00-8:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locations\" (\n \"location\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: what's the\u00a0thursday\u00a0time with\u00a0location\u00a0being hawthorne" }, { "role": "assistant", "content": "SELECT \"thursday\" FROM \"locations\" WHERE \"location\"='Hawthorne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locations\" (\n \"location\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: what's the\u00a0saturday\u00a0time with\u00a0wednesday\u00a0being 10:00-5:00" }, { "role": "assistant", "content": "SELECT \"saturday\" FROM \"locations\" WHERE \"wednesday\"='10:00-5:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locations\" (\n \"location\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: what's the\u00a0thursday\u00a0time with\u00a0sunday\u00a0being 1:00-5:00 and\u00a0tuesday\u00a0being 1:00-7:00" }, { "role": "assistant", "content": "SELECT \"thursday\" FROM \"locations\" WHERE \"sunday\"='1:00-5:00' AND \"tuesday\"='1:00-7:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locations\" (\n \"location\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: what's the\u00a0monday\u00a0time with\u00a0tuesday\u00a0being 9:00-6:00" }, { "role": "assistant", "content": "SELECT \"monday\" FROM \"locations\" WHERE \"tuesday\"='9:00-6:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rnd\" real,\n \"race_name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: What are all the reports where Paul Tracy had the fastest lap?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"race_results\" WHERE \"fastest_lap\"='Paul Tracy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rnd\" real,\n \"race_name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"race_name\"='Tenneco Automotive Grand Prix of Detroit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rnd\" real,\n \"race_name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Who had the fastest lap in the races won by Max Papis?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"winning_driver\"='Max Papis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rnd\" real,\n \"race_name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: In Round 6, how many winning drivers were there?" }, { "role": "assistant", "content": "SELECT COUNT(\"winning_driver\") FROM \"race_results\" WHERE \"rnd\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"districts_of_bogor_city\" (\n \"english_name\" text,\n \"original_name\" text,\n \"area_in_km\" text,\n \"population_at_2010_census\" real,\n \"number_of_settlements_and_villages\" real\n);\n\nQuestion: What are the original names of the districts where the population in the 2010 census was 210450?" }, { "role": "assistant", "content": "SELECT \"original_name\" FROM \"districts_of_bogor_city\" WHERE \"population_at_2010_census\"=210450;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"districts_of_bogor_city\" (\n \"english_name\" text,\n \"original_name\" text,\n \"area_in_km\" text,\n \"population_at_2010_census\" real,\n \"number_of_settlements_and_villages\" real\n);\n\nQuestion: What is the original name of the district with the current English name of South Bogor?" }, { "role": "assistant", "content": "SELECT \"original_name\" FROM \"districts_of_bogor_city\" WHERE \"english_name\"='South Bogor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"districts_of_bogor_city\" (\n \"english_name\" text,\n \"original_name\" text,\n \"area_in_km\" text,\n \"population_at_2010_census\" real,\n \"number_of_settlements_and_villages\" real\n);\n\nQuestion: What is the listed population from the 2010 census of West Bogor?" }, { "role": "assistant", "content": "SELECT MIN(\"population_at_2010_census\") FROM \"districts_of_bogor_city\" WHERE \"english_name\"='West Bogor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"districts_of_bogor_city\" (\n \"english_name\" text,\n \"original_name\" text,\n \"area_in_km\" text,\n \"population_at_2010_census\" real,\n \"number_of_settlements_and_villages\" real\n);\n\nQuestion: How many districts have an area of 17.72 KM2?" }, { "role": "assistant", "content": "SELECT COUNT(\"english_name\") FROM \"districts_of_bogor_city\" WHERE \"area_in_km\"='17.72';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"districts_of_bogor_city\" (\n \"english_name\" text,\n \"original_name\" text,\n \"area_in_km\" text,\n \"population_at_2010_census\" real,\n \"number_of_settlements_and_villages\" real\n);\n\nQuestion: What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?" }, { "role": "assistant", "content": "SELECT \"area_in_km\" FROM \"districts_of_bogor_city\" WHERE \"original_name\"='Kecamatan Bogor Timur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production_overview\" (\n \"pilot_car_no\" real,\n \"colour\" text,\n \"serial_no\" text,\n \"engine_no\" real,\n \"registration_no\" text\n);\n\nQuestion: What is the number of colour with the regisration number of mg-509?" }, { "role": "assistant", "content": "SELECT COUNT(\"colour\") FROM \"production_overview\" WHERE \"registration_no\"='MG-509';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11058032_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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode directed by Mark Tinker?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_11058032_1\" WHERE \"directed_by\"='Mark Tinker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11058032_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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode in the season was directed by Jeff Melman?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_11058032_1\" WHERE \"directed_by\"='Jeff Melman';" } ]