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 \"series_7\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: What episode did Pamela Anderson guest host." }, { "role": "assistant", "content": "SELECT COUNT(\"episode_number\") FROM \"series_7\" WHERE \"guest_host\"='Pamela Anderson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: What song was performed when Barbara Windsor was the guest host?" }, { "role": "assistant", "content": "SELECT \"musical_guest_song_performed\" FROM \"series_7\" WHERE \"guest_host\"='Barbara Windsor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: Who was the coat of cash celeb when Scott Mills and Sally Lindsay appeared?" }, { "role": "assistant", "content": "SELECT \"coat_of_cash_wearing_celebrity\" FROM \"series_7\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Scott Mills and Sally Lindsay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_7\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: Who was on the Who knows about the host panel on 8 June 2008?" }, { "role": "assistant", "content": "SELECT \"who_knows_the_most_about_the_guest_host_panelists\" FROM \"series_7\" WHERE \"air_date\"='8 June 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: Name the musical guest for panelists jermaine jackson and nora sands" }, { "role": "assistant", "content": "SELECT \"musical_guest_song_performed\" FROM \"series_4\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Jermaine Jackson and Nora Sands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: Name the total number of panelists for 19 january 2007" }, { "role": "assistant", "content": "SELECT COUNT(\"who_knows_the_most_about_the_guest_host_panelists\") FROM \"series_4\" WHERE \"air_date\"='19 January 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text,\n \"coat_of_cash_wearing_celebrity\" text\n);\n\nQuestion: Name the panelists for david tennant" }, { "role": "assistant", "content": "SELECT \"who_knows_the_most_about_the_guest_host_panelists\" FROM \"series_4\" WHERE \"guest_host\"='David Tennant';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_08_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"time\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What is the entry for weight in kilograms of jockey D. Nikolic?" }, { "role": "assistant", "content": "SELECT \"weight_kg\" FROM \"2007_08_season_as_a_three_year_old\" WHERE \"jockey\"='D. Nikolic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_08_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"time\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: Which group had the time 1:11.65?" }, { "role": "assistant", "content": "SELECT \"group\" FROM \"2007_08_season_as_a_three_year_old\" WHERE \"time\"='1:11.65';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_08_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"time\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: Which horse won with a time of 1:35.98 and what was their position?" }, { "role": "assistant", "content": "SELECT \"winner_2nd\" FROM \"2007_08_season_as_a_three_year_old\" WHERE \"time\"='1:35.98';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specific_fuel_consumption_sfc_specific_i\" (\n \"engine_type\" text,\n \"scenario\" text,\n \"sfc_in_lb_lbf_h\" text,\n \"sfc_in_g_k_n_s\" text,\n \"specific_impulse_s\" real,\n \"effective_exhaust_velocity_m_s\" real\n);\n\nQuestion: What engine type is used in a Space Shuttle Vacuum scenario?" }, { "role": "assistant", "content": "SELECT \"engine_type\" FROM \"specific_fuel_consumption_sfc_specific_i\" WHERE \"scenario\"='Space shuttle vacuum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specific_fuel_consumption_sfc_specific_i\" (\n \"engine_type\" text,\n \"scenario\" text,\n \"sfc_in_lb_lbf_h\" text,\n \"sfc_in_g_k_n_s\" text,\n \"specific_impulse_s\" real,\n \"effective_exhaust_velocity_m_s\" real\n);\n\nQuestion: What is the effective exhaust velocity in a Space Shuttle Vacuum?" }, { "role": "assistant", "content": "SELECT COUNT(\"effective_exhaust_velocity_m_s\") FROM \"specific_fuel_consumption_sfc_specific_i\" WHERE \"scenario\"='Space shuttle vacuum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specific_fuel_consumption_sfc_specific_i\" (\n \"engine_type\" text,\n \"scenario\" text,\n \"sfc_in_lb_lbf_h\" text,\n \"sfc_in_g_k_n_s\" text,\n \"specific_impulse_s\" real,\n \"effective_exhaust_velocity_m_s\" real\n);\n\nQuestion: What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?" }, { "role": "assistant", "content": "SELECT MAX(\"specific_impulse_s\") FROM \"specific_fuel_consumption_sfc_specific_i\" WHERE \"effective_exhaust_velocity_m_s\"=4423;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specific_fuel_consumption_sfc_specific_i\" (\n \"engine_type\" text,\n \"scenario\" text,\n \"sfc_in_lb_lbf_h\" text,\n \"sfc_in_g_k_n_s\" text,\n \"specific_impulse_s\" real,\n \"effective_exhaust_velocity_m_s\" real\n);\n\nQuestion: What is the SFC when the specific impulse is 453?" }, { "role": "assistant", "content": "SELECT \"sfc_in_g_k_n_s\" FROM \"specific_fuel_consumption_sfc_specific_i\" WHERE \"specific_impulse_s\"=453;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_159359_2\" (\n \"no\" text,\n \"season\" text,\n \"start_date_1st_night\" text,\n \"end_date_last_night\" text,\n \"location\" text,\n \"no_of_proms\" text\n);\n\nQuestion: When are start dates (1st night) for the season of 1966?" }, { "role": "assistant", "content": "SELECT \"start_date_1st_night\" FROM \"table1_159359_2\" WHERE \"season\"='1966';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_159359_2\" (\n \"no\" text,\n \"season\" text,\n \"start_date_1st_night\" text,\n \"end_date_last_night\" text,\n \"location\" text,\n \"no_of_proms\" text\n);\n\nQuestion: When are end dates (last night) for the season of 1918?" }, { "role": "assistant", "content": "SELECT \"end_date_last_night\" FROM \"table1_159359_2\" WHERE \"season\"='1918';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_poll_summary\" (\n \"party\" text,\n \"marplan\" text,\n \"gallup\" text,\n \"national_opinion_polls_nop\" text,\n \"opinion_research_centre_opc\" text,\n \"harris\" text\n);\n\nQuestion: What is the percentage of the Labour Party on the Harris Poll" }, { "role": "assistant", "content": "SELECT \"harris\" FROM \"opinion_poll_summary\" WHERE \"party\"='Labour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_poll_summary\" (\n \"party\" text,\n \"marplan\" text,\n \"gallup\" text,\n \"national_opinion_polls_nop\" text,\n \"opinion_research_centre_opc\" text,\n \"harris\" text\n);\n\nQuestion: On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage? " }, { "role": "assistant", "content": "SELECT \"opinion_research_centre_opc\" FROM \"opinion_poll_summary\" WHERE \"national_opinion_polls_nop\"='1.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_schools_in_kyrene_sd\" (\n \"information\" text,\n \"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river\" text,\n \"altade_a\" text,\n \"aprende\" text,\n \"centennial\" text,\n \"kyrene_ms\" text,\n \"del_pueblo\" text\n);\n\nQuestion: Name the del pueblo for centennial 1988" }, { "role": "assistant", "content": "SELECT \"del_pueblo\" FROM \"middle_schools_in_kyrene_sd\" WHERE \"centennial\"='1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_schools_in_kyrene_sd\" (\n \"information\" text,\n \"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river\" text,\n \"altade_a\" text,\n \"aprende\" text,\n \"centennial\" text,\n \"kyrene_ms\" text,\n \"del_pueblo\" text\n);\n\nQuestion: Name the centennial for 1992 akimel" }, { "role": "assistant", "content": "SELECT \"centennial\" FROM \"middle_schools_in_kyrene_sd\" WHERE \"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river\"='1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_schools_in_kyrene_sd\" (\n \"information\" text,\n \"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river\" text,\n \"altade_a\" text,\n \"aprende\" text,\n \"centennial\" text,\n \"kyrene_ms\" text,\n \"del_pueblo\" text\n);\n\nQuestion: Name the del pueblo for red/black" }, { "role": "assistant", "content": "SELECT \"del_pueblo\" FROM \"middle_schools_in_kyrene_sd\" WHERE \"centennial\"='Red/black';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"middle_schools_in_kyrene_sd\" (\n \"information\" text,\n \"akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river\" text,\n \"altade_a\" text,\n \"aprende\" text,\n \"centennial\" text,\n \"kyrene_ms\" text,\n \"del_pueblo\" text\n);\n\nQuestion: Name the centennial for location" }, { "role": "assistant", "content": "SELECT \"centennial\" FROM \"middle_schools_in_kyrene_sd\" WHERE \"information\"='Location';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1597866_3\" (\n \"country\" text,\n \"name\" text,\n \"host\" text,\n \"channel\" text,\n \"first_premiere\" text,\n \"regular_judge\" text,\n \"seasons\" real\n);\n\nQuestion: Name the host when first premiere is august 3, 2007" }, { "role": "assistant", "content": "SELECT \"host\" FROM \"table1_1597866_3\" WHERE \"first_premiere\"='August 3, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1597866_3\" (\n \"country\" text,\n \"name\" text,\n \"host\" text,\n \"channel\" text,\n \"first_premiere\" text,\n \"regular_judge\" text,\n \"seasons\" real\n);\n\nQuestion: Name the regular judge when host is anja rubik" }, { "role": "assistant", "content": "SELECT \"regular_judge\" FROM \"table1_1597866_3\" WHERE \"host\"='Anja Rubik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1597866_3\" (\n \"country\" text,\n \"name\" text,\n \"host\" text,\n \"channel\" text,\n \"first_premiere\" text,\n \"regular_judge\" text,\n \"seasons\" real\n);\n\nQuestion: Name the number of regular judge when host is bernie chan" }, { "role": "assistant", "content": "SELECT COUNT(\"regular_judge\") FROM \"table1_1597866_3\" WHERE \"host\"='Bernie Chan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"one_day_international\" (\n \"s_no\" real,\n \"team_a\" text,\n \"team_b\" text,\n \"winner\" text,\n \"margin\" text,\n \"match_date\" text\n);\n\nQuestion: Name the most number for 74 runs margins" }, { "role": "assistant", "content": "SELECT MAX(\"s_no\") FROM \"one_day_international\" WHERE \"margin\"='74 runs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"one_day_international\" (\n \"s_no\" real,\n \"team_a\" text,\n \"team_b\" text,\n \"winner\" text,\n \"margin\" text,\n \"match_date\" text\n);\n\nQuestion: Name the number of team for 35 runs margin and india winner" }, { "role": "assistant", "content": "SELECT COUNT(\"team_b\") FROM \"one_day_international\" WHERE \"margin\"='35 runs' AND \"winner\"='India';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"one_day_international\" (\n \"s_no\" real,\n \"team_a\" text,\n \"team_b\" text,\n \"winner\" text,\n \"margin\" text,\n \"match_date\" text\n);\n\nQuestion: Namethe team for feb 27, 1996" }, { "role": "assistant", "content": "SELECT \"team_a\" FROM \"one_day_international\" WHERE \"match_date\"='Feb 27, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"one_day_international\" (\n \"s_no\" real,\n \"team_a\" text,\n \"team_b\" text,\n \"winner\" text,\n \"margin\" text,\n \"match_date\" text\n);\n\nQuestion: Name the numbers for date of feb 27, 1996" }, { "role": "assistant", "content": "SELECT \"s_no\" FROM \"one_day_international\" WHERE \"match_date\"='Feb 27, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"one_day_international\" (\n \"s_no\" real,\n \"team_a\" text,\n \"team_b\" text,\n \"winner\" text,\n \"margin\" text,\n \"match_date\" text\n);\n\nQuestion: Name the team for oct 30, 1989" }, { "role": "assistant", "content": "SELECT \"team_b\" FROM \"one_day_international\" WHERE \"match_date\"='Oct 30, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"one_day_international\" (\n \"s_no\" real,\n \"team_a\" text,\n \"team_b\" text,\n \"winner\" text,\n \"margin\" text,\n \"match_date\" text\n);\n\nQuestion: Name the winner for date of nov 5, 1987" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"one_day_international\" WHERE \"match_date\"='Nov 5, 1987';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"oilers_points\" real,\n \"opponents\" real,\n \"oilers_first_downs\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: On Sept. 17, how many first downs did the oilers have?" }, { "role": "assistant", "content": "SELECT COUNT(\"oilers_first_downs\") FROM \"schedule\" WHERE \"date\"='Sept. 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"oilers_points\" real,\n \"opponents\" real,\n \"oilers_first_downs\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many games were against the los angeles rams?" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"schedule\" WHERE \"opponent\"='Los Angeles Rams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"economic_growth\" (\n \"member_state_sorted_by_gdp\" text,\n \"gdp_in_s_billion_of_usd_2012\" text,\n \"gdp_pct_of_eu_2012\" text,\n \"annual_change_pct_of_gdp_2012\" text,\n \"gdp_per_capita_in_ppp_us_2012\" real,\n \"public_debt_pct_of_gdp_2013_q1\" text,\n \"deficit_surplus_pct_of_gdp_2012\" text,\n \"inflation_pct_annual_2012\" text,\n \"unemp_pct_2013_m7\" text\n);\n\nQuestion: What is the annual change of GDP with a 20.5% GDP of EU in 2012?" }, { "role": "assistant", "content": "SELECT \"annual_change_pct_of_gdp_2012\" FROM \"economic_growth\" WHERE \"gdp_pct_of_eu_2012\"='20.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"economic_growth\" (\n \"member_state_sorted_by_gdp\" text,\n \"gdp_in_s_billion_of_usd_2012\" text,\n \"gdp_pct_of_eu_2012\" text,\n \"annual_change_pct_of_gdp_2012\" text,\n \"gdp_per_capita_in_ppp_us_2012\" real,\n \"public_debt_pct_of_gdp_2013_q1\" text,\n \"deficit_surplus_pct_of_gdp_2012\" text,\n \"inflation_pct_annual_2012\" text,\n \"unemp_pct_2013_m7\" text\n);\n\nQuestion: What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?" }, { "role": "assistant", "content": "SELECT \"public_debt_pct_of_gdp_2013_q1\" FROM \"economic_growth\" WHERE \"gdp_pct_of_eu_2012\"='4.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"economic_growth\" (\n \"member_state_sorted_by_gdp\" text,\n \"gdp_in_s_billion_of_usd_2012\" text,\n \"gdp_pct_of_eu_2012\" text,\n \"annual_change_pct_of_gdp_2012\" text,\n \"gdp_per_capita_in_ppp_us_2012\" real,\n \"public_debt_pct_of_gdp_2013_q1\" text,\n \"deficit_surplus_pct_of_gdp_2012\" text,\n \"inflation_pct_annual_2012\" text,\n \"unemp_pct_2013_m7\" text\n);\n\nQuestion: What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?" }, { "role": "assistant", "content": "SELECT \"inflation_pct_annual_2012\" FROM \"economic_growth\" WHERE \"gdp_per_capita_in_ppp_us_2012\"=24505;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_scores_of_all_couples\" (\n \"rank_by_average\" real,\n \"place\" text,\n \"couple\" text,\n \"perfect_40s\" real,\n \"total\" real,\n \"number_of_dances\" real,\n \"season\" real,\n \"average\" text\n);\n\nQuestion: What are all the places where the number of perfect 40s is 0 and the average is 27.25?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"average_scores_of_all_couples\" WHERE \"perfect_40s\"=0 AND \"average\"='27.25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_scores_of_all_couples\" (\n \"rank_by_average\" real,\n \"place\" text,\n \"couple\" text,\n \"perfect_40s\" real,\n \"total\" real,\n \"number_of_dances\" real,\n \"season\" real,\n \"average\" text\n);\n\nQuestion: What is the maximum total in which the average is 28.5?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"average_scores_of_all_couples\" WHERE \"average\"='28.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_scores_of_all_couples\" (\n \"rank_by_average\" real,\n \"place\" text,\n \"couple\" text,\n \"perfect_40s\" real,\n \"total\" real,\n \"number_of_dances\" real,\n \"season\" real,\n \"average\" text\n);\n\nQuestion: What is the minimum number of perfect 40s?" }, { "role": "assistant", "content": "SELECT MIN(\"perfect_40s\") FROM \"average_scores_of_all_couples\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"375_dakota_vs_other_375_caliber_9_5_mm_c\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"source\" text\n);\n\nQuestion: When using a .375 Remington Ultra Magnum, what is the muzzle velocity?" }, { "role": "assistant", "content": "SELECT \"muzzle_velocity\" FROM \"375_dakota_vs_other_375_caliber_9_5_mm_c\" WHERE \"cartridge\"='.375 Remington Ultra Magnum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"375_dakota_vs_other_375_caliber_9_5_mm_c\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"source\" text\n);\n\nQuestion: What type of cartridge is used by a Weatherby?" }, { "role": "assistant", "content": "SELECT \"cartridge\" FROM \"375_dakota_vs_other_375_caliber_9_5_mm_c\" WHERE \"source\"='Weatherby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"375_dakota_vs_other_375_caliber_9_5_mm_c\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"source\" text\n);\n\nQuestion: What type of cartridge is used by a Winchester?" }, { "role": "assistant", "content": "SELECT \"cartridge\" FROM \"375_dakota_vs_other_375_caliber_9_5_mm_c\" WHERE \"source\"='Winchester';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"375_dakota_vs_other_375_caliber_9_5_mm_c\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"source\" text\n);\n\nQuestion: What is the weight of the bullet used in a Weatherby?" }, { "role": "assistant", "content": "SELECT \"bullet_weight\" FROM \"375_dakota_vs_other_375_caliber_9_5_mm_c\" WHERE \"source\"='Weatherby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"375_dakota_vs_other_375_caliber_9_5_mm_c\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"source\" text\n);\n\nQuestion: What is the weight of the bullet used in a Remington?" }, { "role": "assistant", "content": "SELECT \"bullet_weight\" FROM \"375_dakota_vs_other_375_caliber_9_5_mm_c\" WHERE \"source\"='Remington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"375_dakota_vs_other_375_caliber_9_5_mm_c\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"source\" text\n);\n\nQuestion: When using a .375 Winchester, what is the muzzle energy?" }, { "role": "assistant", "content": "SELECT \"muzzle_energy\" FROM \"375_dakota_vs_other_375_caliber_9_5_mm_c\" WHERE \"cartridge\"='.375 Winchester';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_line_of_headphones\" (\n \"headphone_model\" text,\n \"headphone_class\" text,\n \"driver_matched_d_b\" text,\n \"construction\" text,\n \"earpads\" text,\n \"termination\" text,\n \"us_msrp\" text\n);\n\nQuestion: Which headphone models correspond to the US MSRP of $150?" }, { "role": "assistant", "content": "SELECT \"headphone_model\" FROM \"current_line_of_headphones\" WHERE \"us_msrp\"='$150';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_line_of_headphones\" (\n \"headphone_model\" text,\n \"headphone_class\" text,\n \"driver_matched_d_b\" text,\n \"construction\" text,\n \"earpads\" text,\n \"termination\" text,\n \"us_msrp\" text\n);\n\nQuestion: Which terminations correspond to a US MSRP of $49?" }, { "role": "assistant", "content": "SELECT \"termination\" FROM \"current_line_of_headphones\" WHERE \"us_msrp\"='$49';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_line_of_headphones\" (\n \"headphone_model\" text,\n \"headphone_class\" text,\n \"driver_matched_d_b\" text,\n \"construction\" text,\n \"earpads\" text,\n \"termination\" text,\n \"us_msrp\" text\n);\n\nQuestion: How many headphone classes have a US MSRP of $150?" }, { "role": "assistant", "content": "SELECT COUNT(\"headphone_class\") FROM \"current_line_of_headphones\" WHERE \"us_msrp\"='$150';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_line_of_headphones\" (\n \"headphone_model\" text,\n \"headphone_class\" text,\n \"driver_matched_d_b\" text,\n \"construction\" text,\n \"earpads\" text,\n \"termination\" text,\n \"us_msrp\" text\n);\n\nQuestion: How many values for earpads correspond to the headphone class Prestige and a US MSRP of $79?" }, { "role": "assistant", "content": "SELECT COUNT(\"earpads\") FROM \"current_line_of_headphones\" WHERE \"headphone_class\"='Prestige' AND \"us_msrp\"='$79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_line_of_headphones\" (\n \"headphone_model\" text,\n \"headphone_class\" text,\n \"driver_matched_d_b\" text,\n \"construction\" text,\n \"earpads\" text,\n \"termination\" text,\n \"us_msrp\" text\n);\n\nQuestion: Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?" }, { "role": "assistant", "content": "SELECT \"headphone_model\" FROM \"current_line_of_headphones\" WHERE \"driver_matched_d_b\"='0.1' AND \"us_msrp\"='$49';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_line_of_headphones\" (\n \"headphone_model\" text,\n \"headphone_class\" text,\n \"driver_matched_d_b\" text,\n \"construction\" text,\n \"earpads\" text,\n \"termination\" text,\n \"us_msrp\" text\n);\n\nQuestion: Which terminations correspond with headphone model SR80I?" }, { "role": "assistant", "content": "SELECT \"termination\" FROM \"current_line_of_headphones\" WHERE \"headphone_model\"='SR80i';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1602620_1\" (\n \"office\" text,\n \"type\" text,\n \"location\" text,\n \"elected\" real,\n \"term_began\" text,\n \"term_ended\" text\n);\n\nQuestion: What type are State Assemblyman" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_1602620_1\" WHERE \"office\"='State Assemblyman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1602620_1\" (\n \"office\" text,\n \"type\" text,\n \"location\" text,\n \"elected\" real,\n \"term_began\" text,\n \"term_ended\" text\n);\n\nQuestion: What type had a beginning term of December 8, 1980" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_1602620_1\" WHERE \"term_began\"='December 8, 1980';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1602620_1\" (\n \"office\" text,\n \"type\" text,\n \"location\" text,\n \"elected\" real,\n \"term_began\" text,\n \"term_ended\" text\n);\n\nQuestion: What type had an election day in 1980" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_1602620_1\" WHERE \"elected\"=1980;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1602620_1\" (\n \"office\" text,\n \"type\" text,\n \"location\" text,\n \"elected\" real,\n \"term_began\" text,\n \"term_ended\" text\n);\n\nQuestion: What year did the term end for those elected in 1990" }, { "role": "assistant", "content": "SELECT \"term_ended\" FROM \"table1_1602620_1\" WHERE \"elected\"=1990;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1602620_1\" (\n \"office\" text,\n \"type\" text,\n \"location\" text,\n \"elected\" real,\n \"term_began\" text,\n \"term_ended\" text\n);\n\nQuestion: What is the location for the office whose term ended December 2, 1976" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_1602620_1\" WHERE \"term_ended\"='December 2, 1976';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1602620_1\" (\n \"office\" text,\n \"type\" text,\n \"location\" text,\n \"elected\" real,\n \"term_began\" text,\n \"term_ended\" text\n);\n\nQuestion: What year did the term end for the office elected in 1984" }, { "role": "assistant", "content": "SELECT \"term_ended\" FROM \"table1_1602620_1\" WHERE \"elected\"=1984;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record on October 8, 1989?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"date\"='October 8, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: Where was the game site on October 29, 1989?" }, { "role": "assistant", "content": "SELECT \"game_site\" FROM \"schedule\" WHERE \"date\"='October 29, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the minimum attendance against the New Orleans Saints?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"schedule\" WHERE \"opponent\"='New Orleans Saints';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of week 2?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What date did the team play the New York Jets?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='New York Jets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the minimum crowd on January 24, 1987?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"game_log\" WHERE \"date\"='January 24, 1987';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1601935_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: How many millions of viewers were there for the episode with a run time of 18:00?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"table1_1601935_1\" WHERE \"run_time\"='18:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1601935_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What was the archive for episode with 6.6 million viewers?" }, { "role": "assistant", "content": "SELECT \"archive\" FROM \"table1_1601935_1\" WHERE \"viewers_in_millions\"='6.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bills_points\" real,\n \"opponents\" real,\n \"bills_first_downs\" real,\n \"record\" text\n);\n\nQuestion: When is the latest game the bills had 21 first downs" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"schedule\" WHERE \"bills_first_downs\"=21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bills_points\" real,\n \"opponents\" real,\n \"bills_first_downs\" real,\n \"record\" text\n);\n\nQuestion: How many first downs did the bills have when their opponent had 6" }, { "role": "assistant", "content": "SELECT MIN(\"bills_first_downs\") FROM \"schedule\" WHERE \"opponents\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bills_points\" real,\n \"opponents\" real,\n \"bills_first_downs\" real,\n \"record\" text\n);\n\nQuestion: How many points did the bills score when their opponent had 14" }, { "role": "assistant", "content": "SELECT \"bills_points\" FROM \"schedule\" WHERE \"opponents\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bills_points\" real,\n \"opponents\" real,\n \"bills_first_downs\" real,\n \"record\" text\n);\n\nQuestion: What is the minimum number of points given up to the Baltimore Colts" }, { "role": "assistant", "content": "SELECT MIN(\"opponents\") FROM \"schedule\" WHERE \"opponent\"='Baltimore Colts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\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);\n\nQuestion: Who was the runner-up in the Memorial Tournament?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"pga_tour_wins_8\" WHERE \"tournament\"='Memorial Tournament';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\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);\n\nQuestion: What was the winning score for the tournament with runner-up Rory Sabbatini?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"pga_tour_wins_8\" WHERE \"runner_s_up\"='Rory Sabbatini';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\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);\n\nQuestion: What was the margin of victory with the winning score \"63-68-68-68=267\"?" }, { "role": "assistant", "content": "SELECT \"margin_of_victory\" FROM \"pga_tour_wins_8\" WHERE \"winning_score\"='63-68-68-68=267';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_lyga_zone_north\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the least position" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"2_lyga_zone_north\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_lyga_zone_north\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: Name the most goals scored for position 4" }, { "role": "assistant", "content": "SELECT MAX(\"goals_scored\") FROM \"2_lyga_zone_north\" WHERE \"position\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"city\" text,\n \"television\" text,\n \"conference_matchups\" text,\n \"payout_us\" text\n);\n\nQuestion: What is the name of the bowl game that was played in Tempe, Arizona?" }, { "role": "assistant", "content": "SELECT \"bowl_game\" FROM \"bowl_games\" WHERE \"city\"='Tempe, Arizona';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"city\" text,\n \"television\" text,\n \"conference_matchups\" text,\n \"payout_us\" text\n);\n\nQuestion: What city in the Citrus Bowl aired on ABC?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"bowl_games\" WHERE \"stadium\"='Citrus Bowl' AND \"television\"='ABC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"city\" text,\n \"television\" text,\n \"conference_matchups\" text,\n \"payout_us\" text\n);\n\nQuestion: What teams played in the Capital One bowl game on January 1, 2009?" }, { "role": "assistant", "content": "SELECT \"conference_matchups\" FROM \"bowl_games\" WHERE \"date\"='January 1, 2009' AND \"bowl_game\"='Capital One';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"city\" text,\n \"television\" text,\n \"conference_matchups\" text,\n \"payout_us\" text\n);\n\nQuestion: Which stadium has a payout of $3 million?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"bowl_games\" WHERE \"payout_us\"='$3 Million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16048129_5\" (\n \"region_of_ussr\" text,\n \"number_of_families\" real,\n \"number_of_people\" real,\n \"average_family_size\" text,\n \"pct_of_total_deportees\" text\n);\n\nQuestion: What is the largest population in regions where the average family size is 2.8 people?" }, { "role": "assistant", "content": "SELECT MAX(\"number_of_people\") FROM \"table1_16048129_5\" WHERE \"average_family_size\"='2.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16048129_5\" (\n \"region_of_ussr\" text,\n \"number_of_families\" real,\n \"number_of_people\" real,\n \"average_family_size\" text,\n \"pct_of_total_deportees\" text\n);\n\nQuestion: What is the total number of regions where the average family size is 2.8?" }, { "role": "assistant", "content": "SELECT COUNT(\"pct_of_total_deportees\") FROM \"table1_16048129_5\" WHERE \"average_family_size\"='2.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16048129_5\" (\n \"region_of_ussr\" text,\n \"number_of_families\" real,\n \"number_of_people\" real,\n \"average_family_size\" text,\n \"pct_of_total_deportees\" text\n);\n\nQuestion: What regions of the USSR have a percentage of deportees of 10.6?" }, { "role": "assistant", "content": "SELECT \"region_of_ussr\" FROM \"table1_16048129_5\" WHERE \"pct_of_total_deportees\"='10.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16048129_5\" (\n \"region_of_ussr\" text,\n \"number_of_families\" real,\n \"number_of_people\" real,\n \"average_family_size\" text,\n \"pct_of_total_deportees\" text\n);\n\nQuestion: What is the most number of families in regions where average family size is 2.7?" }, { "role": "assistant", "content": "SELECT MAX(\"number_of_families\") FROM \"table1_16048129_5\" WHERE \"average_family_size\"='2.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16048129_5\" (\n \"region_of_ussr\" text,\n \"number_of_families\" real,\n \"number_of_people\" real,\n \"average_family_size\" text,\n \"pct_of_total_deportees\" text\n);\n\nQuestion: How many total families are there in regions with 5.8 percent of the population being made up of deportees?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_of_families\") FROM \"table1_16048129_5\" WHERE \"pct_of_total_deportees\"='5.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16048129_5\" (\n \"region_of_ussr\" text,\n \"number_of_families\" real,\n \"number_of_people\" real,\n \"average_family_size\" text,\n \"pct_of_total_deportees\" text\n);\n\nQuestion: What is the most number of families among regions where the population is made up of 5.8% deportees?" }, { "role": "assistant", "content": "SELECT MAX(\"number_of_families\") FROM \"table1_16048129_5\" WHERE \"pct_of_total_deportees\"='5.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1603807_2\" (\n \"line\" text,\n \"terminals\" text,\n \"status\" text,\n \"length\" text,\n \"total_number_of_stations\" real,\n \"operator\" text\n);\n\nQuestion: Which operator runs the Mamariga shuttle line?" }, { "role": "assistant", "content": "SELECT \"operator\" FROM \"table1_1603807_2\" WHERE \"line\"='Mamariga Shuttle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1603807_2\" (\n \"line\" text,\n \"terminals\" text,\n \"status\" text,\n \"length\" text,\n \"total_number_of_stations\" real,\n \"operator\" text\n);\n\nQuestion: How many lengths of line 3 are given?" }, { "role": "assistant", "content": "SELECT COUNT(\"length\") FROM \"table1_1603807_2\" WHERE \"line\"='Line 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1603807_2\" (\n \"line\" text,\n \"terminals\" text,\n \"status\" text,\n \"length\" text,\n \"total_number_of_stations\" real,\n \"operator\" text\n);\n\nQuestion: What are the terminals for line 2?" }, { "role": "assistant", "content": "SELECT \"terminals\" FROM \"table1_1603807_2\" WHERE \"line\"='Line 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1603807_2\" (\n \"line\" text,\n \"terminals\" text,\n \"status\" text,\n \"length\" text,\n \"total_number_of_stations\" real,\n \"operator\" text\n);\n\nQuestion: What is the status of the airport line?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"table1_1603807_2\" WHERE \"line\"='Airport Line';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_since_the_division_of_korea\" (\n \"rr_romaja\" text,\n \"m_r_romaja\" text,\n \"hangul_chosongul\" text,\n \"hanja\" text,\n \"iso\" text,\n \"area\" text,\n \"capital\" text,\n \"region\" text,\n \"country\" text\n);\n\nQuestion: Name the total number of hangul chosongul for 8,352" }, { "role": "assistant", "content": "SELECT COUNT(\"hangul_chosongul\") FROM \"provinces_since_the_division_of_korea\" WHERE \"area\"='8,352';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_since_the_division_of_korea\" (\n \"rr_romaja\" text,\n \"m_r_romaja\" text,\n \"hangul_chosongul\" text,\n \"hanja\" text,\n \"iso\" text,\n \"area\" text,\n \"capital\" text,\n \"region\" text,\n \"country\" text\n);\n\nQuestion: Name the iso for chungcheongnam" }, { "role": "assistant", "content": "SELECT \"iso\" FROM \"provinces_since_the_division_of_korea\" WHERE \"rr_romaja\"='Chungcheongnam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_since_the_division_of_korea\" (\n \"rr_romaja\" text,\n \"m_r_romaja\" text,\n \"hangul_chosongul\" text,\n \"hanja\" text,\n \"iso\" text,\n \"area\" text,\n \"capital\" text,\n \"region\" text,\n \"country\" text\n);\n\nQuestion: Name the country for 11,891 area" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"provinces_since_the_division_of_korea\" WHERE \"area\"='11,891';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_since_the_division_of_korea\" (\n \"rr_romaja\" text,\n \"m_r_romaja\" text,\n \"hangul_chosongul\" text,\n \"hanja\" text,\n \"iso\" text,\n \"area\" text,\n \"capital\" text,\n \"region\" text,\n \"country\" text\n);\n\nQuestion: Name the number of region for \uacbd\uc0c1\ub0a8\ub3c4" }, { "role": "assistant", "content": "SELECT COUNT(\"region\") FROM \"provinces_since_the_division_of_korea\" WHERE \"hangul_chosongul\"='\uacbd\uc0c1\ub0a8\ub3c4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_since_the_division_of_korea\" (\n \"rr_romaja\" text,\n \"m_r_romaja\" text,\n \"hangul_chosongul\" text,\n \"hanja\" text,\n \"iso\" text,\n \"area\" text,\n \"capital\" text,\n \"region\" text,\n \"country\" text\n);\n\nQuestion: Name the m r romaja for kwanbuk" }, { "role": "assistant", "content": "SELECT \"m_r_romaja\" FROM \"provinces_since_the_division_of_korea\" WHERE \"region\"='Kwanbuk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"area_and_population\" (\n \"member_state\" text,\n \"population_in_millions\" text,\n \"population_pct_of_eu\" text,\n \"area_km_2\" real,\n \"area_pct_of_eu\" text,\n \"pop_density_people_km_2\" text\n);\n\nQuestion: Name the population density where population % is 1.1% for slovakia" }, { "role": "assistant", "content": "SELECT \"pop_density_people_km_2\" FROM \"area_and_population\" WHERE \"population_pct_of_eu\"='1.1%' AND \"member_state\"='Slovakia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"area_and_population\" (\n \"member_state\" text,\n \"population_in_millions\" text,\n \"population_pct_of_eu\" text,\n \"area_km_2\" real,\n \"area_pct_of_eu\" text,\n \"pop_density_people_km_2\" text\n);\n\nQuestion: Name the population density people where population % eu for 1.7%" }, { "role": "assistant", "content": "SELECT COUNT(\"pop_density_people_km_2\") FROM \"area_and_population\" WHERE \"population_pct_of_eu\"='1.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"area_and_population\" (\n \"member_state\" text,\n \"population_in_millions\" text,\n \"population_pct_of_eu\" text,\n \"area_km_2\" real,\n \"area_pct_of_eu\" text,\n \"pop_density_people_km_2\" text\n);\n\nQuestion: Name the number of area km 2 for population density is 87" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km_2\") FROM \"area_and_population\" WHERE \"pop_density_people_km_2\"='87';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"area_and_population\" (\n \"member_state\" text,\n \"population_in_millions\" text,\n \"population_pct_of_eu\" text,\n \"area_km_2\" real,\n \"area_pct_of_eu\" text,\n \"pop_density_people_km_2\" text\n);\n\nQuestion: Name the population % of eu for greece" }, { "role": "assistant", "content": "SELECT \"population_pct_of_eu\" FROM \"area_and_population\" WHERE \"member_state\"='Greece';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_160728_4\" (\n \"channel\" real,\n \"band\" text,\n \"video_frequency\" text,\n \"audio_frequency\" text,\n \"station\" text,\n \"network\" text,\n \"transmission\" text,\n \"format\" text,\n \"status\" text\n);\n\nQuestion: How many networks are there that have a channel number 7?" }, { "role": "assistant", "content": "SELECT COUNT(\"network\") FROM \"table1_160728_4\" WHERE \"channel\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_160728_4\" (\n \"channel\" real,\n \"band\" text,\n \"video_frequency\" text,\n \"audio_frequency\" text,\n \"station\" text,\n \"network\" text,\n \"transmission\" text,\n \"format\" text,\n \"status\" text\n);\n\nQuestion: What station on the network is tv3?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"table1_160728_4\" WHERE \"station\"='TV3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: What year was the team named the Raiders established?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"division_ii\" WHERE \"team_nickname\"='Raiders';" } ]