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_18054886_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"viewers_millions\" text\n);\n\nQuestion: Which title, directed by David Kendall, had 3.7 million viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_18054886_1\" WHERE \"viewers_millions\"='3.7' AND \"directed_by\"='David Kendall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18054886_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"viewers_millions\" text\n);\n\nQuestion: Who directed \"People who use people\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_18054886_1\" WHERE \"title\"='\\\"People Who Use People\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text,\n \"candidates\" text\n);\n\nQuestion: How many people were first elected with an incument of diane watson?" }, { "role": "assistant", "content": "SELECT COUNT(\"first_elected\") FROM \"california\" WHERE \"incumbent\"='Diane Watson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text,\n \"candidates\" text\n);\n\nQuestion: What party did hilda solis represent?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"california\" WHERE \"incumbent\"='Hilda Solis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text,\n \"candidates\" text\n);\n\nQuestion: What were the result(s) of the election featuring grace napolitano as the incumbent?" }, { "role": "assistant", "content": "SELECT \"results\" FROM \"california\" WHERE \"incumbent\"='Grace Napolitano';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nine_pieces\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: Which place in the order is the Pinyin transcription She Jiang?" }, { "role": "assistant", "content": "SELECT MIN(\"standard_order\") FROM \"nine_pieces\" WHERE \"transcription_based_on_pinyin\"='She Jiang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nine_pieces\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: What is the place of \"A Lament for Ying\"?" }, { "role": "assistant", "content": "SELECT MAX(\"standard_order\") FROM \"nine_pieces\" WHERE \"english_translation\"='A Lament for Ying';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nine_pieces\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: How many traditional Chinese for the translation of \"Crossing the River\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"traditional_chinese\") FROM \"nine_pieces\" WHERE \"english_translation\"='Crossing the River';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nine_pieces\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: What is the place of the Pinyin transcription Xi Wangri?" }, { "role": "assistant", "content": "SELECT MAX(\"standard_order\") FROM \"nine_pieces\" WHERE \"transcription_based_on_pinyin\"='Xi Wangri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nine_pieces\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: What is the English translation of \u54c0\u90e2?" }, { "role": "assistant", "content": "SELECT \"english_translation\" FROM \"nine_pieces\" WHERE \"traditional_chinese\"='\u54c0\u90e2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nine_pieces\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: What is the Pinyin transcription for \"Alas for the Days Gone By\"?" }, { "role": "assistant", "content": "SELECT \"transcription_based_on_pinyin\" FROM \"nine_pieces\" WHERE \"english_translation\"='Alas for the Days Gone By';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"months\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"abbr\" text,\n \"transcription\" text,\n \"sanskrit_word\" text,\n \"zodiac_sign\" text\n);\n\nQuestion: What's the English name for the month with \u0e1e.\u0e22. abbreviation? " }, { "role": "assistant", "content": "SELECT \"english_name\" FROM \"months\" WHERE \"abbr\"='\u0e1e.\u0e22.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"months\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"abbr\" text,\n \"transcription\" text,\n \"sanskrit_word\" text,\n \"zodiac_sign\" text\n);\n\nQuestion: What's the zodiac sing for the month abbreviated as \u0e21\u0e35.\u0e04.?" }, { "role": "assistant", "content": "SELECT \"zodiac_sign\" FROM \"months\" WHERE \"abbr\"='\u0e21\u0e35.\u0e04.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"months\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"abbr\" text,\n \"transcription\" text,\n \"sanskrit_word\" text,\n \"zodiac_sign\" text\n);\n\nQuestion: What's the transcription of the thai name of the month \u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21?" }, { "role": "assistant", "content": "SELECT \"transcription\" FROM \"months\" WHERE \"thai_name\"='\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"months\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"abbr\" text,\n \"transcription\" text,\n \"sanskrit_word\" text,\n \"zodiac_sign\" text\n);\n\nQuestion: How many zodiac signs does the month by the Thai name of \u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19 belong to?" }, { "role": "assistant", "content": "SELECT COUNT(\"zodiac_sign\") FROM \"months\" WHERE \"thai_name\"='\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"months\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"abbr\" text,\n \"transcription\" text,\n \"sanskrit_word\" text,\n \"zodiac_sign\" text\n);\n\nQuestion: What's the English name of the month abbreviated as \u0e21\u0e34.\u0e22.?" }, { "role": "assistant", "content": "SELECT \"english_name\" FROM \"months\" WHERE \"abbr\"='\u0e21\u0e34.\u0e22.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"months\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"abbr\" text,\n \"transcription\" text,\n \"sanskrit_word\" text,\n \"zodiac_sign\" text\n);\n\nQuestion: What's the abbreviation of the month in the zodiac sign scorpio?" }, { "role": "assistant", "content": "SELECT \"abbr\" FROM \"months\" WHERE \"zodiac_sign\"='Scorpio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"main_language_s\" text,\n \"result\" text\n);\n\nQuestion: which year was the original title \u10d2\u10d0\u10e6\u10db\u10d0 \u10dc\u10d0\u10de\u10d8\u10e0\u10d8" }, { "role": "assistant", "content": "SELECT \"year_e_ceremony\" FROM \"submissions\" WHERE \"original_title\"='\u10d2\u10d0\u10e6\u10db\u10d0 \u10dc\u10d0\u10de\u10d8\u10e0\u10d8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"main_language_s\" text,\n \"result\" text\n);\n\nQuestion: how many times was 27 missing kisses used in nomination" }, { "role": "assistant", "content": "SELECT COUNT(\"year_e_ceremony\") FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='27 Missing Kisses';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_e_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"main_language_s\" text,\n \"result\" text\n);\n\nQuestion: when was otar iosseliani's film selected" }, { "role": "assistant", "content": "SELECT \"year_e_ceremony\" FROM \"submissions\" WHERE \"director\"='Otar Iosseliani';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weekdays\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"transcription\" text,\n \"color\" text,\n \"sanskrit_word\" text,\n \"planet\" text\n);\n\nQuestion: What is the thai name of the transcription wan chan?" }, { "role": "assistant", "content": "SELECT \"thai_name\" FROM \"weekdays\" WHERE \"transcription\"='wan chan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weekdays\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"transcription\" text,\n \"color\" text,\n \"sanskrit_word\" text,\n \"planet\" text\n);\n\nQuestion: What is the sanskrit word for the color red?" }, { "role": "assistant", "content": "SELECT \"sanskrit_word\" FROM \"weekdays\" WHERE \"color\"='red';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weekdays\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"transcription\" text,\n \"color\" text,\n \"sanskrit_word\" text,\n \"planet\" text\n);\n\nQuestion: What is the transcription of the sanskrit word chandra?" }, { "role": "assistant", "content": "SELECT \"transcription\" FROM \"weekdays\" WHERE \"sanskrit_word\"='Chandra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weekdays\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"transcription\" text,\n \"color\" text,\n \"sanskrit_word\" text,\n \"planet\" text\n);\n\nQuestion: What is the sanskrit word if the transcription is wan athit?" }, { "role": "assistant", "content": "SELECT \"sanskrit_word\" FROM \"weekdays\" WHERE \"transcription\"='wan athit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weekdays\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"transcription\" text,\n \"color\" text,\n \"sanskrit_word\" text,\n \"planet\" text\n);\n\nQuestion: What is the color of the planet venus?" }, { "role": "assistant", "content": "SELECT \"color\" FROM \"weekdays\" WHERE \"planet\"='Venus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"weekdays\" (\n \"english_name\" text,\n \"thai_name\" text,\n \"transcription\" text,\n \"color\" text,\n \"sanskrit_word\" text,\n \"planet\" text\n);\n\nQuestion: Which planet has the transcription of wan suk?" }, { "role": "assistant", "content": "SELECT \"planet\" FROM \"weekdays\" WHERE \"transcription\"='wan suk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" text,\n \"ebit_us_m\" text,\n \"net_profit_us_m\" text,\n \"earnings_per_share\" text\n);\n\nQuestion: What is the year to april when the revenue is 434.8 million dollars?" }, { "role": "assistant", "content": "SELECT \"year_to_april\" FROM \"micro_focus_international_plc_financial_\" WHERE \"revenue_us_million\"='434.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" text,\n \"ebit_us_m\" text,\n \"net_profit_us_m\" text,\n \"earnings_per_share\" text\n);\n\nQuestion: What is the dollar amount of ebit when the net profit is 120.6?" }, { "role": "assistant", "content": "SELECT \"ebit_us_m\" FROM \"micro_focus_international_plc_financial_\" WHERE \"net_profit_us_m\"='120.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" text,\n \"ebit_us_m\" text,\n \"net_profit_us_m\" text,\n \"earnings_per_share\" text\n);\n\nQuestion: How many dollars is the revenue when the net profit is 55.4 million dollars?" }, { "role": "assistant", "content": "SELECT \"revenue_us_million\" FROM \"micro_focus_international_plc_financial_\" WHERE \"net_profit_us_m\"='55.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" text,\n \"ebit_us_m\" text,\n \"net_profit_us_m\" text,\n \"earnings_per_share\" text\n);\n\nQuestion: When the earning per share is listed as 22.0 what is the year to april?" }, { "role": "assistant", "content": "SELECT COUNT(\"year_to_april\") FROM \"micro_focus_international_plc_financial_\" WHERE \"earnings_per_share\"='22.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" text,\n \"ebit_us_m\" text,\n \"net_profit_us_m\" text,\n \"earnings_per_share\" text\n);\n\nQuestion: What is the earnings per share when the net profit is 16.2 million dollars?" }, { "role": "assistant", "content": "SELECT \"earnings_per_share\" FROM \"micro_focus_international_plc_financial_\" WHERE \"net_profit_us_m\"='16.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" text,\n \"ebit_us_m\" text,\n \"net_profit_us_m\" text,\n \"earnings_per_share\" text\n);\n\nQuestion: How much is the net profit when the revenue is 150.6 million dollars?" }, { "role": "assistant", "content": "SELECT \"net_profit_us_m\" FROM \"micro_focus_international_plc_financial_\" WHERE \"revenue_us_million\"='150.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the year for not nominated for alberto aruelo" }, { "role": "assistant", "content": "SELECT \"year_ceremony\" FROM \"submissions\" WHERE \"result\"='Not Nominated' AND \"director\"='Alberto Aruelo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the total number of director for oro diablo" }, { "role": "assistant", "content": "SELECT COUNT(\"director\") FROM \"submissions\" WHERE \"original_title\"='Oro Diablo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the number of result for maroa" }, { "role": "assistant", "content": "SELECT COUNT(\"result\") FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='Maroa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the number of director for huelepega: ley de la calle" }, { "role": "assistant", "content": "SELECT COUNT(\"director\") FROM \"submissions\" WHERE \"original_title\"='Huelepega: Ley de la Calle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"team\" text,\n \"b10_conference\" text,\n \"b10_pct\" text,\n \"b10_home\" text,\n \"b10_road\" text,\n \"all_games\" text,\n \"all_games_pct\" text,\n \"all_home\" text,\n \"all_road\" text,\n \"all_neutral\" text\n);\n\nQuestion: What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?" }, { "role": "assistant", "content": "SELECT \"all_neutral\" FROM \"final_standings\" WHERE \"b10_pct\"='.833';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zune_hd_applications\" (\n \"title\" text,\n \"developer\" text,\n \"category\" text,\n \"function\" text,\n \"release_date\" text,\n \"version\" text\n);\n\nQuestion: What is the category when the version is 1.0 and the title is Chord finder? " }, { "role": "assistant", "content": "SELECT \"category\" FROM \"zune_hd_applications\" WHERE \"version\"='1.0' AND \"title\"='Chord Finder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zune_hd_applications\" (\n \"title\" text,\n \"developer\" text,\n \"category\" text,\n \"function\" text,\n \"release_date\" text,\n \"version\" text\n);\n\nQuestion: What was the release date for metronome? " }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"zune_hd_applications\" WHERE \"title\"='Metronome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zune_hd_applications\" (\n \"title\" text,\n \"developer\" text,\n \"category\" text,\n \"function\" text,\n \"release_date\" text,\n \"version\" text\n);\n\nQuestion: Who is the developer for Windows live messenger? " }, { "role": "assistant", "content": "SELECT \"developer\" FROM \"zune_hd_applications\" WHERE \"title\"='Windows Live Messenger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zune_hd_applications\" (\n \"title\" text,\n \"developer\" text,\n \"category\" text,\n \"function\" text,\n \"release_date\" text,\n \"version\" text\n);\n\nQuestion: What is the function of 1.4 version of Windows live messenger? " }, { "role": "assistant", "content": "SELECT \"function\" FROM \"zune_hd_applications\" WHERE \"version\"='1.4' AND \"title\"='Windows Live Messenger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zune_hd_applications\" (\n \"title\" text,\n \"developer\" text,\n \"category\" text,\n \"function\" text,\n \"release_date\" text,\n \"version\" text\n);\n\nQuestion: What functions were released on 2011-06-23? " }, { "role": "assistant", "content": "SELECT \"function\" FROM \"zune_hd_applications\" WHERE \"release_date\"='2011-06-23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18161217_2\" (\n \"satellite\" text,\n \"cospar_id\" text,\n \"satcat_no\" real,\n \"product_number\" real,\n \"launch_date\" text,\n \"estimated_end_date_clarification_needed\" text,\n \"estimated_operational_life\" text\n);\n\nQuestion: What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?" }, { "role": "assistant", "content": "SELECT \"cospar_id\" FROM \"table1_18161217_2\" WHERE \"estimated_operational_life\"='2 months' AND \"satellite\"='Kosmos 2397';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18161217_2\" (\n \"satellite\" text,\n \"cospar_id\" text,\n \"satcat_no\" real,\n \"product_number\" real,\n \"launch_date\" text,\n \"estimated_end_date_clarification_needed\" text,\n \"estimated_operational_life\" text\n);\n\nQuestion: What was the launch date the satellite with cospar ID is 2008-033A?" }, { "role": "assistant", "content": "SELECT \"launch_date\" FROM \"table1_18161217_2\" WHERE \"cospar_id\"='2008-033A';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18161217_2\" (\n \"satellite\" text,\n \"cospar_id\" text,\n \"satcat_no\" real,\n \"product_number\" real,\n \"launch_date\" text,\n \"estimated_end_date_clarification_needed\" text,\n \"estimated_operational_life\" text\n);\n\nQuestion: What it the international designation for the kosmos 2379 satellite?" }, { "role": "assistant", "content": "SELECT \"cospar_id\" FROM \"table1_18161217_2\" WHERE \"satellite\"='Kosmos 2379';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18161217_2\" (\n \"satellite\" text,\n \"cospar_id\" text,\n \"satcat_no\" real,\n \"product_number\" real,\n \"launch_date\" text,\n \"estimated_end_date_clarification_needed\" text,\n \"estimated_operational_life\" text\n);\n\nQuestion: What is the estimated end date for the 2001-037a international designated satellite?" }, { "role": "assistant", "content": "SELECT \"estimated_end_date_clarification_needed\" FROM \"table1_18161217_2\" WHERE \"cospar_id\"='2001-037A';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: in which city was charter date december 4, 2011" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"charter_date\"='December 4, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: how mnay greek designation in tampa" }, { "role": "assistant", "content": "SELECT COUNT(\"greek_designation\") FROM \"undergraduate_chapters_associate_chapter\" WHERE \"city\"='Tampa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: what is the status in vestal" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"city\"='Vestal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"undergraduate_chapters_associate_chapter\" (\n \"greek_designation\" text,\n \"collegiate_institution\" text,\n \"charter_date\" text,\n \"status\" text,\n \"city\" text,\n \"u_s_state_district\" text\n);\n\nQuestion: what is the collegiate institution in queens" }, { "role": "assistant", "content": "SELECT \"collegiate_institution\" FROM \"undergraduate_chapters_associate_chapter\" WHERE \"city\"='Queens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18162883_1\" (\n \"year_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 Run for Money?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"table1_18162883_1\" WHERE \"film_title_used_in_nomination\"='Run for Money';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18173916_6\" (\n \"episodes\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text\n);\n\nQuestion: What was the Tuesday episode if theThursday episode was 196 Buried?" }, { "role": "assistant", "content": "SELECT \"tuesday\" FROM \"table1_18173916_6\" WHERE \"thursday\"='196 Buried';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18173916_6\" (\n \"episodes\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text\n);\n\nQuestion: How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?" }, { "role": "assistant", "content": "SELECT COUNT(\"friday\") FROM \"table1_18173916_6\" WHERE \"wednesday\"='210 Kirby''s Epic Yarn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18173916_6\" (\n \"episodes\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text\n);\n\nQuestion: How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?" }, { "role": "assistant", "content": "SELECT COUNT(\"friday\") FROM \"table1_18173916_6\" WHERE \"wednesday\"='190 Boardwalk Empire';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18173916_6\" (\n \"episodes\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text\n);\n\nQuestion: What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?" }, { "role": "assistant", "content": "SELECT \"episodes\" FROM \"table1_18173916_6\" WHERE \"tuesday\"='224 Assassin''s Creed: Brotherhood Circus Training';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"attendances\" (\n \"season\" real,\n \"average_attendance_home\" text,\n \"highest_attendance_home\" text,\n \"average_attendance_away\" text,\n \"highest_attendance_away\" text,\n \"division_section\" text,\n \"level\" text,\n \"average_attendance_league\" text\n);\n\nQuestion: When the average away attendance is 1.889 in the Superettan, what's the average home attendance?" }, { "role": "assistant", "content": "SELECT \"average_attendance_home\" FROM \"attendances\" WHERE \"division_section\"='Superettan' AND \"average_attendance_away\"='1.889';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"attendances\" (\n \"season\" real,\n \"average_attendance_home\" text,\n \"highest_attendance_home\" text,\n \"average_attendance_away\" text,\n \"highest_attendance_away\" text,\n \"division_section\" text,\n \"level\" text,\n \"average_attendance_league\" text\n);\n\nQuestion: In which season was the average league attendance 2.572?" }, { "role": "assistant", "content": "SELECT MAX(\"season\") FROM \"attendances\" WHERE \"average_attendance_league\"='2.572';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"attendances\" (\n \"season\" real,\n \"average_attendance_home\" text,\n \"highest_attendance_home\" text,\n \"average_attendance_away\" text,\n \"highest_attendance_away\" text,\n \"division_section\" text,\n \"level\" text,\n \"average_attendance_league\" text\n);\n\nQuestion: In which division did they compete in 2012?" }, { "role": "assistant", "content": "SELECT \"division_section\" FROM \"attendances\" WHERE \"season\"=2012;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"attendances\" (\n \"season\" real,\n \"average_attendance_home\" text,\n \"highest_attendance_home\" text,\n \"average_attendance_away\" text,\n \"highest_attendance_away\" text,\n \"division_section\" text,\n \"level\" text,\n \"average_attendance_league\" text\n);\n\nQuestion: When the home attendance is 3.123, what's the highest away attendance?" }, { "role": "assistant", "content": "SELECT \"highest_attendance_away\" FROM \"attendances\" WHERE \"average_attendance_home\"='3.123';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"attendances\" (\n \"season\" real,\n \"average_attendance_home\" text,\n \"highest_attendance_home\" text,\n \"average_attendance_away\" text,\n \"highest_attendance_away\" text,\n \"division_section\" text,\n \"level\" text,\n \"average_attendance_league\" text\n);\n\nQuestion: Which division has an average home attendance of 2.459?" }, { "role": "assistant", "content": "SELECT \"division_section\" FROM \"attendances\" WHERE \"average_attendance_home\"='2.459';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"car_number\" real,\n \"start\" real,\n \"qual_speed\" text,\n \"speed_rank\" real,\n \"finish\" real,\n \"laps_completed\" real,\n \"laps_led\" real,\n \"race_status\" text,\n \"chassis\" text\n);\n\nQuestion: How many years was he car number 92?" }, { "role": "assistant", "content": "SELECT COUNT(\"speed_rank\") FROM \"indy_500_results\" WHERE \"car_number\"=92;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"car_number\" real,\n \"start\" real,\n \"qual_speed\" text,\n \"speed_rank\" real,\n \"finish\" real,\n \"laps_completed\" real,\n \"laps_led\" real,\n \"race_status\" text,\n \"chassis\" text\n);\n\nQuestion: How many years was the chassis a lotus-ford 38/7?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"indy_500_results\" WHERE \"chassis\"='Lotus-Ford 38/7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"car_number\" real,\n \"start\" real,\n \"qual_speed\" text,\n \"speed_rank\" real,\n \"finish\" real,\n \"laps_completed\" real,\n \"laps_led\" real,\n \"race_status\" text,\n \"chassis\" text\n);\n\nQuestion: What was the race status(es) with the lotus-ford 38/1 chassis?" }, { "role": "assistant", "content": "SELECT \"race_status\" FROM \"indy_500_results\" WHERE \"chassis\"='Lotus-Ford 38/1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"car_number\" real,\n \"start\" real,\n \"qual_speed\" text,\n \"speed_rank\" real,\n \"finish\" real,\n \"laps_completed\" real,\n \"laps_led\" real,\n \"race_status\" text,\n \"chassis\" text\n);\n\nQuestion: What year(s) was the race status piston?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"indy_500_results\" WHERE \"race_status\"='Piston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" real,\n \"car_number\" real,\n \"start\" real,\n \"qual_speed\" text,\n \"speed_rank\" real,\n \"finish\" real,\n \"laps_completed\" real,\n \"laps_led\" real,\n \"race_status\" text,\n \"chassis\" text\n);\n\nQuestion: What is the largest laps led with the lotus-ford 34/3 chassis?" }, { "role": "assistant", "content": "SELECT MAX(\"laps_led\") FROM \"indy_500_results\" WHERE \"chassis\"='Lotus-Ford 34/3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" text,\n \"forcible_rape\" text,\n \"robbery\" text,\n \"aggravated_assault\" text,\n \"property_crime\" text,\n \"burglary\" text,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" text\n);\n\nQuestion: What was the population of Minneapolis in 2012?" }, { "role": "assistant", "content": "SELECT MAX(\"population\") FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"city\"='Minneapolis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" text,\n \"forcible_rape\" text,\n \"robbery\" text,\n \"aggravated_assault\" text,\n \"property_crime\" text,\n \"burglary\" text,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" text\n);\n\nQuestion: How many burglaries occurred in the city where the violent crime rate was 974.7?" }, { "role": "assistant", "content": "SELECT \"burglary\" FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"violent_crime\"='974.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" text,\n \"forcible_rape\" text,\n \"robbery\" text,\n \"aggravated_assault\" text,\n \"property_crime\" text,\n \"burglary\" text,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" text\n);\n\nQuestion: What was the violent crime rate in the city where the robbery rate was 201.4?" }, { "role": "assistant", "content": "SELECT \"violent_crime\" FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"robbery\"='201.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" text,\n \"forcible_rape\" text,\n \"robbery\" text,\n \"aggravated_assault\" text,\n \"property_crime\" text,\n \"burglary\" text,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" text\n);\n\nQuestion: How many cities were there in 2012 where the rate of burglary was 224.8?" }, { "role": "assistant", "content": "SELECT COUNT(\"property_crime\") FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"burglary\"='224.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1818471_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"afinsa\" real,\n \"scott\" text,\n \"mitchell\" real,\n \"yvert\" text,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: What are all values for Mitchell when the author species is Temminck & Schlegel, 1849?" }, { "role": "assistant", "content": "SELECT \"mitchell\" FROM \"table1_1818471_1\" WHERE \"author_species\"='Temminck & Schlegel, 1849';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1818471_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"afinsa\" real,\n \"scott\" text,\n \"mitchell\" real,\n \"yvert\" text,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: What is every value when Mitchell is 676?" }, { "role": "assistant", "content": "SELECT \"value\" FROM \"table1_1818471_1\" WHERE \"mitchell\"=676;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1818471_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"afinsa\" real,\n \"scott\" text,\n \"mitchell\" real,\n \"yvert\" text,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: How many different numbers for Afinsa when value is 5p?" }, { "role": "assistant", "content": "SELECT COUNT(\"afinsa\") FROM \"table1_1818471_1\" WHERE \"value\"='5P';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1818471_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"afinsa\" real,\n \"scott\" text,\n \"mitchell\" real,\n \"yvert\" text,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: What is every entry for Scott when the date is (15.12)?" }, { "role": "assistant", "content": "SELECT \"scott\" FROM \"table1_1818471_1\" WHERE \"date\"='(15.12)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1818471_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"afinsa\" real,\n \"scott\" text,\n \"mitchell\" real,\n \"yvert\" text,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: What is every species when Afinsa is 639?" }, { "role": "assistant", "content": "SELECT \"species\" FROM \"table1_1818471_1\" WHERE \"afinsa\"=639;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1818471_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"afinsa\" real,\n \"scott\" text,\n \"mitchell\" real,\n \"yvert\" text,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: How many orders when the species is Pavo Cristatus?" }, { "role": "assistant", "content": "SELECT COUNT(\"order\") FROM \"table1_1818471_1\" WHERE \"species\"='Pavo cristatus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" text,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: If the distance is 55.7, what is the name of the constellation?" }, { "role": "assistant", "content": "SELECT \"constellation\" FROM \"targets\" WHERE \"distance_ly\"='55.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" text,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: If the spectral type is g1v, what is the total distance amount?" }, { "role": "assistant", "content": "SELECT COUNT(\"distance_ly\") FROM \"targets\" WHERE \"spectral_type\"='G1V';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" text,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: What is the hd designation for arrival date of February 2070?" }, { "role": "assistant", "content": "SELECT COUNT(\"hd_designation\") FROM \"targets\" WHERE \"arrival_date\"='February 2070';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" text,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: If the constellation is Gemini, what is the spectral type?" }, { "role": "assistant", "content": "SELECT \"spectral_type\" FROM \"targets\" WHERE \"constellation\"='Gemini';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" text,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: If the arrival date is January 2059, what is the total amount of signal power?" }, { "role": "assistant", "content": "SELECT COUNT(\"signal_power_k_w\") FROM \"targets\" WHERE \"arrival_date\"='January 2059';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"targets\" (\n \"hd_designation\" text,\n \"constellation\" text,\n \"distance_ly\" text,\n \"spectral_type\" text,\n \"signal_power_k_w\" real,\n \"date_sent\" text,\n \"arrival_date\" text\n);\n\nQuestion: If the spectral type is g1v, what is the constellation?" }, { "role": "assistant", "content": "SELECT \"constellation\" FROM \"targets\" WHERE \"spectral_type\"='G1V';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_songs_released_in_2009\" (\n \"song_title\" text,\n \"artist\" text,\n \"decade\" text,\n \"genre\" text,\n \"single_pack_name\" text,\n \"release_date\" text,\n \"family_friendly\" text,\n \"additional_rock_band_3_features\" text\n);\n\nQuestion: What is the artist of the song \"sugarbaby\"?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"list_of_songs_released_in_2009\" WHERE \"song_title\"='\\\"Sugarbaby\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_songs_released_in_2009\" (\n \"song_title\" text,\n \"artist\" text,\n \"decade\" text,\n \"genre\" text,\n \"single_pack_name\" text,\n \"release_date\" text,\n \"family_friendly\" text,\n \"additional_rock_band_3_features\" text\n);\n\nQuestion: What is the release date for the song \"had a dad\"?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"list_of_songs_released_in_2009\" WHERE \"song_title\"='\\\"Had a Dad\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_wins_9\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text,\n \"winners_share\" real\n);\n\nQuestion: List the total numbers of Evian Masters tournaments. " }, { "role": "assistant", "content": "SELECT MAX(\"no\") FROM \"lpga_tour_wins_9\" WHERE \"tournament\"='Evian Masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18217753_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the original air date of season 9?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_18217753_1\" WHERE \"season_num\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18217753_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who were the writers when there were 27.11 million viewers?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_18217753_1\" WHERE \"u_s_viewers_millions\"='27.11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18217753_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many series had viewers totaling 23.93 million?" }, { "role": "assistant", "content": "SELECT COUNT(\"series_num\") FROM \"table1_18217753_1\" WHERE \"u_s_viewers_millions\"='23.93';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18217753_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many original air dates totaled 26.06 million viewers?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_18217753_1\" WHERE \"u_s_viewers_millions\"='26.06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_18217741_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title when 18.58 u.s. viewers (millions) watched?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_18217741_1\" WHERE \"u_s_viewers_millions\"='18.58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"availability_of_channels_from_various_pr\" (\n \"position\" real,\n \"channel\" text,\n \"analogue_terrestrial_channel\" text,\n \"digital_terrestrial_channel\" text,\n \"internet\" text\n);\n\nQuestion: How many digital terrestrial channels are there for channel 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"digital_terrestrial_channel\") FROM \"availability_of_channels_from_various_pr\" WHERE \"channel\"='Channel 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"availability_of_channels_from_various_pr\" (\n \"position\" real,\n \"channel\" text,\n \"analogue_terrestrial_channel\" text,\n \"digital_terrestrial_channel\" text,\n \"internet\" text\n);\n\nQuestion: What is the channel that is on digital terrestrial channel 10?" }, { "role": "assistant", "content": "SELECT \"channel\" FROM \"availability_of_channels_from_various_pr\" WHERE \"digital_terrestrial_channel\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"availability_of_channels_from_various_pr\" (\n \"position\" real,\n \"channel\" text,\n \"analogue_terrestrial_channel\" text,\n \"digital_terrestrial_channel\" text,\n \"internet\" text\n);\n\nQuestion: What is the digital terrestria channel number for itv3?" }, { "role": "assistant", "content": "SELECT \"digital_terrestrial_channel\" FROM \"availability_of_channels_from_various_pr\" WHERE \"channel\"='ITV3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"availability_of_channels_from_various_pr\" (\n \"position\" real,\n \"channel\" text,\n \"analogue_terrestrial_channel\" text,\n \"digital_terrestrial_channel\" text,\n \"internet\" text\n);\n\nQuestion: What is the position of digital channel 5 44 (+1)?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"availability_of_channels_from_various_pr\" WHERE \"digital_terrestrial_channel\"='5 44 (+1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appointed_delegates_to_various_internati\" (\n \"year\" real,\n \"delegate\" text,\n \"hometown\" text,\n \"pageant\" text,\n \"result\" text,\n \"other_awards\" text\n);\n\nQuestion: where pageant is elite model look and year is bigger than 1993.0, who is the delegate?" }, { "role": "assistant", "content": "SELECT \"delegate\" FROM \"appointed_delegates_to_various_internati\" WHERE \"pageant\"='Elite Model Look' AND \"year\">1993.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appointed_delegates_to_various_internati\" (\n \"year\" real,\n \"delegate\" text,\n \"hometown\" text,\n \"pageant\" text,\n \"result\" text,\n \"other_awards\" text\n);\n\nQuestion: How many years was the pageant miss globe international and delegate was karen loren medrano agustin?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"appointed_delegates_to_various_internati\" WHERE \"pageant\"='Miss Globe International' AND \"delegate\"='Karen Loren Medrano Agustin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appointed_delegates_to_various_internati\" (\n \"year\" real,\n \"delegate\" text,\n \"hometown\" text,\n \"pageant\" text,\n \"result\" text,\n \"other_awards\" text\n);\n\nQuestion: How many pageants were in san fernando, pampanga?" }, { "role": "assistant", "content": "SELECT COUNT(\"pageant\") FROM \"appointed_delegates_to_various_internati\" WHERE \"hometown\"='San Fernando, Pampanga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appointed_delegates_to_various_internati\" (\n \"year\" real,\n \"delegate\" text,\n \"hometown\" text,\n \"pageant\" text,\n \"result\" text,\n \"other_awards\" text\n);\n\nQuestion: How many pageants were margaret ann awitan bayot the delegate of?" }, { "role": "assistant", "content": "SELECT COUNT(\"pageant\") FROM \"appointed_delegates_to_various_internati\" WHERE \"delegate\"='Margaret Ann Awitan Bayot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appointed_delegates_to_various_internati\" (\n \"year\" real,\n \"delegate\" text,\n \"hometown\" text,\n \"pageant\" text,\n \"result\" text,\n \"other_awards\" text\n);\n\nQuestion: How many awards did milagros gutierrez win?" }, { "role": "assistant", "content": "SELECT \"other_awards\" FROM \"appointed_delegates_to_various_internati\" WHERE \"delegate\"='Milagros Gutierrez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appointed_delegates_to_various_internati\" (\n \"year\" real,\n \"delegate\" text,\n \"hometown\" text,\n \"pageant\" text,\n \"result\" text,\n \"other_awards\" text\n);\n\nQuestion: Where is the miss global teen?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"appointed_delegates_to_various_internati\" WHERE \"pageant\"='Miss Global Teen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"biosynthesis\" (\n \"enzyme\" text,\n \"location\" text,\n \"substrate\" text,\n \"product\" text,\n \"chromosome\" text,\n \"ec\" text,\n \"omim\" real,\n \"porphyria\" text\n);\n\nQuestion: what is the subtrate for enzyme ala dehydratase" }, { "role": "assistant", "content": "SELECT \"substrate\" FROM \"biosynthesis\" WHERE \"enzyme\"='ALA dehydratase';" } ]