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 \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what amount of try bonus where the game was won by 11?" }, { "role": "assistant", "content": "SELECT COUNT(\"try_bonus\") FROM \"2009_2010_table\" WHERE \"won\"='11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_2010_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: what is the total amount of tries where the points were 325?" }, { "role": "assistant", "content": "SELECT COUNT(\"tries_against\") FROM \"2009_2010_table\" WHERE \"points_for\"='325';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the name of the column points against?" }, { "role": "assistant", "content": "SELECT \"points_against\" FROM \"2008_2009_table\" WHERE \"points\"='Points';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many points for when the points was 53?" }, { "role": "assistant", "content": "SELECT \"points_for\" FROM \"2008_2009_table\" WHERE \"points\"='53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: What is the played total when the points against was 321?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"2008_2009_table\" WHERE \"points_against\"='321';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many tries for when the points against was 547?" }, { "role": "assistant", "content": "SELECT \"tries_for\" FROM \"2008_2009_table\" WHERE \"points_against\"='547';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_2009_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"tries_for\" text,\n \"tries_against\" text,\n \"try_bonus\" text,\n \"losing_bonus\" text,\n \"points\" text\n);\n\nQuestion: How many total games drawn for club tylorstown rfc?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"2008_2009_table\" WHERE \"club\"='Tylorstown RFC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"renewable_electricity_in_spain_g_wh_2006\" (\n \"autonomous_community\" text,\n \"hydroelectric_power\" real,\n \"wind_power\" real,\n \"solar_power\" real,\n \"biomass_power\" real,\n \"solid_waste_power\" real,\n \"total_renewable_generation\" real,\n \"total_electricity_demand\" real,\n \"pct_renewable_of_total_electricity_demand\" text\n);\n\nQuestion: How many communities had a total renewable generation of 1375?" }, { "role": "assistant", "content": "SELECT COUNT(\"autonomous_community\") FROM \"renewable_electricity_in_spain_g_wh_2006\" WHERE \"total_renewable_generation\"=1375;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"renewable_electricity_in_spain_g_wh_2006\" (\n \"autonomous_community\" text,\n \"hydroelectric_power\" real,\n \"wind_power\" real,\n \"solar_power\" real,\n \"biomass_power\" real,\n \"solid_waste_power\" real,\n \"total_renewable_generation\" real,\n \"total_electricity_demand\" real,\n \"pct_renewable_of_total_electricity_demand\" text\n);\n\nQuestion: What is the total demand for electricity when the demand for renewable electricity demand is 2.2%?" }, { "role": "assistant", "content": "SELECT \"total_electricity_demand\" FROM \"renewable_electricity_in_spain_g_wh_2006\" WHERE \"pct_renewable_of_total_electricity_demand\"='2.2%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"renewable_electricity_in_spain_g_wh_2006\" (\n \"autonomous_community\" text,\n \"hydroelectric_power\" real,\n \"wind_power\" real,\n \"solar_power\" real,\n \"biomass_power\" real,\n \"solid_waste_power\" real,\n \"total_renewable_generation\" real,\n \"total_electricity_demand\" real,\n \"pct_renewable_of_total_electricity_demand\" text\n);\n\nQuestion: What is the lowest numbered hydroelectric power when the renewable electricity demand is 21.5%?" }, { "role": "assistant", "content": "SELECT MIN(\"hydroelectric_power\") FROM \"renewable_electricity_in_spain_g_wh_2006\" WHERE \"pct_renewable_of_total_electricity_demand\"='21.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"renewable_electricity_in_spain_g_wh_2006\" (\n \"autonomous_community\" text,\n \"hydroelectric_power\" real,\n \"wind_power\" real,\n \"solar_power\" real,\n \"biomass_power\" real,\n \"solid_waste_power\" real,\n \"total_renewable_generation\" real,\n \"total_electricity_demand\" real,\n \"pct_renewable_of_total_electricity_demand\" text\n);\n\nQuestion: What is the community with a wind power of 1042?" }, { "role": "assistant", "content": "SELECT \"autonomous_community\" FROM \"renewable_electricity_in_spain_g_wh_2006\" WHERE \"wind_power\"=1042;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_six_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" real,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: How many races were for a distance of 2020 m?" }, { "role": "assistant", "content": "SELECT COUNT(\"group\") FROM \"2002_03_season_as_a_six_year_old\" WHERE \"distance\"='2020 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_six_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" real,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: Who was the winner of the race at Belmont?" }, { "role": "assistant", "content": "SELECT \"winner_2nd\" FROM \"2002_03_season_as_a_six_year_old\" WHERE \"venue\"='Belmont';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_six_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" real,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: On what date did Northerly place 6th?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2002_03_season_as_a_six_year_old\" WHERE \"result\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_six_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" real,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What was the weight in kg on the day of the race at Ranvet Stakes?" }, { "role": "assistant", "content": "SELECT \"weight_kg\" FROM \"2002_03_season_as_a_six_year_old\" WHERE \"race\"='Ranvet Stakes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_six_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" real,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What was Northerly's result at the race on 19 Oct 2002?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"2002_03_season_as_a_six_year_old\" WHERE \"date\"='19 Oct 2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_six_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" real,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What was the distance of the race in which Northerly raced in group G3?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"2002_03_season_as_a_six_year_old\" WHERE \"group\"='G3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"security_features\" (\n \"distribution\" text,\n \"compile_time_buffer_checks\" text,\n \"mandatory_access_control\" text,\n \"software_executable_space_protection\" text,\n \"grsecurity\" text,\n \"rsbac\" text\n);\n\nQuestion: what's the\u00a0software executable space protection\u00a0with\u00a0dbeingtribution\u00a0being gentoo" }, { "role": "assistant", "content": "SELECT \"software_executable_space_protection\" FROM \"security_features\" WHERE \"distribution\"='Gentoo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"security_features\" (\n \"distribution\" text,\n \"compile_time_buffer_checks\" text,\n \"mandatory_access_control\" text,\n \"software_executable_space_protection\" text,\n \"grsecurity\" text,\n \"rsbac\" text\n);\n\nQuestion: what's the\u00a0dbeingtribution\u00a0with\u00a0grsecurity\u00a0being no" }, { "role": "assistant", "content": "SELECT \"distribution\" FROM \"security_features\" WHERE \"grsecurity\"='No';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"security_features\" (\n \"distribution\" text,\n \"compile_time_buffer_checks\" text,\n \"mandatory_access_control\" text,\n \"software_executable_space_protection\" text,\n \"grsecurity\" text,\n \"rsbac\" text\n);\n\nQuestion: what's the\u00a0grsecurity\u00a0with\u00a0dbeingtribution\u00a0being debian / ubuntu" }, { "role": "assistant", "content": "SELECT \"grsecurity\" FROM \"security_features\" WHERE \"distribution\"='Debian / Ubuntu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"security_features\" (\n \"distribution\" text,\n \"compile_time_buffer_checks\" text,\n \"mandatory_access_control\" text,\n \"software_executable_space_protection\" text,\n \"grsecurity\" text,\n \"rsbac\" text\n);\n\nQuestion: what's the\u00a0software executable space protection\u00a0with\u00a0dbeingtribution\u00a0being gentoo" }, { "role": "assistant", "content": "SELECT \"software_executable_space_protection\" FROM \"security_features\" WHERE \"distribution\"='Gentoo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"security_features\" (\n \"distribution\" text,\n \"compile_time_buffer_checks\" text,\n \"mandatory_access_control\" text,\n \"software_executable_space_protection\" text,\n \"grsecurity\" text,\n \"rsbac\" text\n);\n\nQuestion: what's the\u00a0dbeingtribution\u00a0with\u00a0grsecurity\u00a0being optional and\u00a0compile time buffer checks\u00a0being yes" }, { "role": "assistant", "content": "SELECT \"distribution\" FROM \"security_features\" WHERE \"grsecurity\"='Optional' AND \"compile_time_buffer_checks\"='Yes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"security_features\" (\n \"distribution\" text,\n \"compile_time_buffer_checks\" text,\n \"mandatory_access_control\" text,\n \"software_executable_space_protection\" text,\n \"grsecurity\" text,\n \"rsbac\" text\n);\n\nQuestion: what's the\u00a0dbeingtribution\u00a0with\u00a0rsbac\u00a0being unknown" }, { "role": "assistant", "content": "SELECT \"distribution\" FROM \"security_features\" WHERE \"rsbac\"='Unknown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"district\" text,\n \"2012_commission\" text,\n \"2010_commission\" text,\n \"2007_commission\" text,\n \"2002_commission\" text,\n \"1999_commission\" text\n);\n\nQuestion: Who is on the 2002 commission from district 3?" }, { "role": "assistant", "content": "SELECT \"2002_commission\" FROM \"government\" WHERE \"district\"='District 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"district\" text,\n \"2012_commission\" text,\n \"2010_commission\" text,\n \"2007_commission\" text,\n \"2002_commission\" text,\n \"1999_commission\" text\n);\n\nQuestion: What district for charlie oliver of the 2012 commission?" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"government\" WHERE \"2012_commission\"='Charlie Oliver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"district\" text,\n \"2012_commission\" text,\n \"2010_commission\" text,\n \"2007_commission\" text,\n \"2002_commission\" text,\n \"1999_commission\" text\n);\n\nQuestion: Who was on the 2012 commission and the 1999 commission with john wilborn?" }, { "role": "assistant", "content": "SELECT \"2012_commission\" FROM \"government\" WHERE \"1999_commission\"='John Wilborn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"district\" text,\n \"2012_commission\" text,\n \"2010_commission\" text,\n \"2007_commission\" text,\n \"2002_commission\" text,\n \"1999_commission\" text\n);\n\nQuestion: How many people named gloria moon were on the 2002 and 2012 commissions?" }, { "role": "assistant", "content": "SELECT COUNT(\"2002_commission\") FROM \"government\" WHERE \"2012_commission\"='Gloria Moon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_parish\" (\n \"parish\" text,\n \"bushnum\" real,\n \"bushpct\" text,\n \"kerrynum\" real,\n \"kerrypct\" text,\n \"othersnum\" real,\n \"otherspct\" text,\n \"totalnum\" real\n);\n\nQuestion: what's the\u00a0others%\u00a0with\u00a0parbeingh\u00a0being tangipahoa" }, { "role": "assistant", "content": "SELECT \"otherspct\" FROM \"by_parish\" WHERE \"parish\"='Tangipahoa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_parish\" (\n \"parish\" text,\n \"bushnum\" real,\n \"bushpct\" text,\n \"kerrynum\" real,\n \"kerrypct\" text,\n \"othersnum\" real,\n \"otherspct\" text,\n \"totalnum\" real\n);\n\nQuestion: what is the maximum\u00a0bush#\u00a0with\u00a0others%\u00a0being 1.57%" }, { "role": "assistant", "content": "SELECT MAX(\"bushnum\") FROM \"by_parish\" WHERE \"otherspct\"='1.57%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_parish\" (\n \"parish\" text,\n \"bushnum\" real,\n \"bushpct\" text,\n \"kerrynum\" real,\n \"kerrypct\" text,\n \"othersnum\" real,\n \"otherspct\" text,\n \"totalnum\" real\n);\n\nQuestion: how many\u00a0bush%\u00a0with\u00a0total#\u00a0being 191269" }, { "role": "assistant", "content": "SELECT COUNT(\"bushpct\") FROM \"by_parish\" WHERE \"totalnum\"=191269;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the highest game number?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"game_log\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_four_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: How many entries are there for weight when the winner is 1st - defier and venue is randwick?" }, { "role": "assistant", "content": "SELECT COUNT(\"weight_kg\") FROM \"2002_03_season_as_a_four_year_old\" WHERE \"winner_2nd\"='1st - Defier' AND \"venue\"='Randwick';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_four_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: Who was the jockey at Rosehill and the weight was 57.5 kg?" }, { "role": "assistant", "content": "SELECT \"jockey\" FROM \"2002_03_season_as_a_four_year_old\" WHERE \"venue\"='Rosehill' AND \"weight_kg\"='57.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002_03_season_as_a_four_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: When the time is 1:36.30 what shows as winner?" }, { "role": "assistant", "content": "SELECT \"winner_2nd\" FROM \"2002_03_season_as_a_four_year_old\" WHERE \"time\"='1:36.30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"district\" text,\n \"2010_population_000\" real,\n \"2008_gdp_usd_bn_a\" text,\n \"2008_gdp_per_capita_usd_a\" real,\n \"agri_culture_b\" text,\n \"mining_b\" text,\n \"manufac_turing_b\" text,\n \"services_cons_truction_b\" text,\n \"exports_usd_mn_2011\" real,\n \"median_mo_salary_usd_a_e\" real,\n \"vehicles_per_1000_d\" real,\n \"income_poverty_f\" text,\n \"structural_poverty_g\" text\n);\n\nQuestion: What was the depravitiy of earnings where international sales was 2470?" }, { "role": "assistant", "content": "SELECT \"income_poverty_f\" FROM \"notes\" WHERE \"exports_usd_mn_2011\"=2470;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"district\" text,\n \"2010_population_000\" real,\n \"2008_gdp_usd_bn_a\" text,\n \"2008_gdp_per_capita_usd_a\" real,\n \"agri_culture_b\" text,\n \"mining_b\" text,\n \"manufac_turing_b\" text,\n \"services_cons_truction_b\" text,\n \"exports_usd_mn_2011\" real,\n \"median_mo_salary_usd_a_e\" real,\n \"vehicles_per_1000_d\" real,\n \"income_poverty_f\" text,\n \"structural_poverty_g\" text\n);\n\nQuestion: What was head count in 2010 where the farm production is 6.9?" }, { "role": "assistant", "content": "SELECT MAX(\"2010_population_000\") FROM \"notes\" WHERE \"agri_culture_b\"='6.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"district\" text,\n \"2010_population_000\" real,\n \"2008_gdp_usd_bn_a\" text,\n \"2008_gdp_per_capita_usd_a\" real,\n \"agri_culture_b\" text,\n \"mining_b\" text,\n \"manufac_turing_b\" text,\n \"services_cons_truction_b\" text,\n \"exports_usd_mn_2011\" real,\n \"median_mo_salary_usd_a_e\" real,\n \"vehicles_per_1000_d\" real,\n \"income_poverty_f\" text,\n \"structural_poverty_g\" text\n);\n\nQuestion: How many districts had an depravity level of 27.7" }, { "role": "assistant", "content": "SELECT COUNT(\"district\") FROM \"notes\" WHERE \"income_poverty_f\"='27.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"district\" text,\n \"2010_population_000\" real,\n \"2008_gdp_usd_bn_a\" text,\n \"2008_gdp_per_capita_usd_a\" real,\n \"agri_culture_b\" text,\n \"mining_b\" text,\n \"manufac_turing_b\" text,\n \"services_cons_truction_b\" text,\n \"exports_usd_mn_2011\" real,\n \"median_mo_salary_usd_a_e\" real,\n \"vehicles_per_1000_d\" real,\n \"income_poverty_f\" text,\n \"structural_poverty_g\" text\n);\n\nQuestion: How low was the income where services is 72.5?" }, { "role": "assistant", "content": "SELECT \"income_poverty_f\" FROM \"notes\" WHERE \"services_cons_truction_b\"='72.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"district\" text,\n \"2010_population_000\" real,\n \"2008_gdp_usd_bn_a\" text,\n \"2008_gdp_per_capita_usd_a\" real,\n \"agri_culture_b\" text,\n \"mining_b\" text,\n \"manufac_turing_b\" text,\n \"services_cons_truction_b\" text,\n \"exports_usd_mn_2011\" real,\n \"median_mo_salary_usd_a_e\" real,\n \"vehicles_per_1000_d\" real,\n \"income_poverty_f\" text,\n \"structural_poverty_g\" text\n);\n\nQuestion: How low was the San Juan income?" }, { "role": "assistant", "content": "SELECT \"income_poverty_f\" FROM \"notes\" WHERE \"district\"='San Juan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: who is the player with high assists on january 22?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='January 22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: what is the total score for the date of january 3?" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"date\"='January 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which team was in a game with a record of 15-63?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='15-63';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which team played on April 1?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='April 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many players led Game #66 in scoring?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"game\"=66;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the most points in the game where the Raptors became 13-49?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"record\"='13-49';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the Raptors play against when their record was 13-48?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='13-48';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the high scorer in the game when the team was 1-4?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"record\"='1-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Where did they play and how many attended in the game against minnesota?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Minnesota';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high point total when dee brown (5) had the high assist total?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_assists\"='Dee Brown (5)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many records are there for the games that took place on January 14." }, { "role": "assistant", "content": "SELECT COUNT(\"record\") FROM \"game_log\" WHERE \"date\"='January 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which players scored the most points when the opposing team was Seattle and how many points did they score?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Seattle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the location and attendance of the game against Portland?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Portland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record when the score was w 108\u201393 (ot)?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='W 108\u201393 (OT)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_growth_pct\" (\n \"region_country\" text,\n \"1985_1990\" text,\n \"1990_1995\" text,\n \"1995_2000\" text,\n \"2000_2005\" text\n);\n\nQuestion: what's the\u00a01985-1990\u00a0with\u00a01995-2000\u00a0being 1.46" }, { "role": "assistant", "content": "SELECT \"1985_1990\" FROM \"urban_population_growth_pct\" WHERE \"1995_2000\"='1.46';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_growth_pct\" (\n \"region_country\" text,\n \"1985_1990\" text,\n \"1990_1995\" text,\n \"1995_2000\" text,\n \"2000_2005\" text\n);\n\nQuestion: what's the\u00a02000-2005\u00a0with\u00a01985-1990\u00a0being 3.78" }, { "role": "assistant", "content": "SELECT \"2000_2005\" FROM \"urban_population_growth_pct\" WHERE \"1985_1990\"='3.78';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_growth_pct\" (\n \"region_country\" text,\n \"1985_1990\" text,\n \"1990_1995\" text,\n \"1995_2000\" text,\n \"2000_2005\" text\n);\n\nQuestion: what's the\u00a01985-1990\u00a0with\u00a02000-2005\u00a0being 2.52" }, { "role": "assistant", "content": "SELECT \"1985_1990\" FROM \"urban_population_growth_pct\" WHERE \"2000_2005\"='2.52';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_growth_pct\" (\n \"region_country\" text,\n \"1985_1990\" text,\n \"1990_1995\" text,\n \"1995_2000\" text,\n \"2000_2005\" text\n);\n\nQuestion: what's the\u00a0region/country\u00a0with\u00a02000-2005\u00a0being 2.61" }, { "role": "assistant", "content": "SELECT \"region_country\" FROM \"urban_population_growth_pct\" WHERE \"2000_2005\"='2.61';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_growth_pct\" (\n \"region_country\" text,\n \"1985_1990\" text,\n \"1990_1995\" text,\n \"1995_2000\" text,\n \"2000_2005\" text\n);\n\nQuestion: what's the\u00a01995-2000\u00a0with\u00a01985-1990\u00a0being 1.24" }, { "role": "assistant", "content": "SELECT \"1995_2000\" FROM \"urban_population_growth_pct\" WHERE \"1985_1990\"='1.24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"urban_population_growth_pct\" (\n \"region_country\" text,\n \"1985_1990\" text,\n \"1990_1995\" text,\n \"1995_2000\" text,\n \"2000_2005\" text\n);\n\nQuestion: what's the\u00a01995-2000\u00a0with\u00a01990-1995\u00a0being 3.08" }, { "role": "assistant", "content": "SELECT \"1995_2000\" FROM \"urban_population_growth_pct\" WHERE \"1990_1995\"='3.08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"catholicism_in_africa\" (\n \"region\" text,\n \"total_population\" real,\n \"catholic\" real,\n \"pct_catholic\" text,\n \"pct_of_global_catholic_pop\" text\n);\n\nQuestion: what is the maximum\u00a0total population\u00a0with\u00a0% catholic\u00a0being 1.17%" }, { "role": "assistant", "content": "SELECT MAX(\"total_population\") FROM \"catholicism_in_africa\" WHERE \"pct_catholic\"='1.17%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"catholicism_in_africa\" (\n \"region\" text,\n \"total_population\" real,\n \"catholic\" real,\n \"pct_catholic\" text,\n \"pct_of_global_catholic_pop\" text\n);\n\nQuestion: how many\u00a0total population\u00a0with\u00a0catholic\u00a0being smaller than 31370649.1405057 and\u00a0region\u00a0being north africa" }, { "role": "assistant", "content": "SELECT COUNT(\"total_population\") FROM \"catholicism_in_africa\" WHERE \"catholic\"<31370649.1405057 AND \"region\"='North Africa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13663434_1\" (\n \"title_and_source\" text,\n \"developer_s_publisher_s\" text,\n \"jp_210\" text,\n \"na_350\" text,\n \"pal_295\" text,\n \"wii_points\" text\n);\n\nQuestion: what's the\u00a0wii points\u00a0with\u00a0title and source\u00a0being ts\u016bshin taikyoku: igo d\u014dj\u014d 2700-mon" }, { "role": "assistant", "content": "SELECT \"wii_points\" FROM \"table1_13663434_1\" WHERE \"title_and_source\"='Ts\u016bshin Taikyoku: Igo D\u014dj\u014d 2700-Mon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13663434_1\" (\n \"title_and_source\" text,\n \"developer_s_publisher_s\" text,\n \"jp_210\" text,\n \"na_350\" text,\n \"pal_295\" text,\n \"wii_points\" text\n);\n\nQuestion: what's the\u00a0na -350-\u00a0with\u00a0title and source\u00a0being paper wars: cannon fodder" }, { "role": "assistant", "content": "SELECT \"na_350\" FROM \"table1_13663434_1\" WHERE \"title_and_source\"='Paper Wars: Cannon Fodder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13663434_1\" (\n \"title_and_source\" text,\n \"developer_s_publisher_s\" text,\n \"jp_210\" text,\n \"na_350\" text,\n \"pal_295\" text,\n \"wii_points\" text\n);\n\nQuestion: how many\u00a0title and source\u00a0with\u00a0pal -295-\u00a0being yes and\u00a0jp -210-\u00a0being yes" }, { "role": "assistant", "content": "SELECT COUNT(\"title_and_source\") FROM \"table1_13663434_1\" WHERE \"pal_295\"='Yes' AND \"jp_210\"='Yes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13663434_1\" (\n \"title_and_source\" text,\n \"developer_s_publisher_s\" text,\n \"jp_210\" text,\n \"na_350\" text,\n \"pal_295\" text,\n \"wii_points\" text\n);\n\nQuestion: what's the\u00a0jp -210-\u00a0with\u00a0title and source\u00a0being fun! fun! minigolf" }, { "role": "assistant", "content": "SELECT \"jp_210\" FROM \"table1_13663434_1\" WHERE \"title_and_source\"='Fun! Fun! Minigolf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13663434_1\" (\n \"title_and_source\" text,\n \"developer_s_publisher_s\" text,\n \"jp_210\" text,\n \"na_350\" text,\n \"pal_295\" text,\n \"wii_points\" text\n);\n\nQuestion: how many\u00a0na -350-\u00a0with\u00a0title and source\u00a0being bokumo sekai wo sukuitai: battle tournament" }, { "role": "assistant", "content": "SELECT COUNT(\"na_350\") FROM \"table1_13663434_1\" WHERE \"title_and_source\"='Bokumo Sekai wo Sukuitai: Battle Tournament';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657883_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: What was the gtu winning team when the gto winning team was #48 greenwood racing?" }, { "role": "assistant", "content": "SELECT \"gtu_winning_team\" FROM \"table1_13657883_2\" WHERE \"gto_winning_team\"='#48 Greenwood Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657883_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: What was the to winnning team when the tu winning team was #16 2002?" }, { "role": "assistant", "content": "SELECT \"to_winning_team\" FROM \"table1_13657883_2\" WHERE \"tu_winning_team\"='#16 2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657883_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: What round was the gto winning team #48 greenwood racing?" }, { "role": "assistant", "content": "SELECT \"rnd\" FROM \"table1_13657883_2\" WHERE \"gto_winning_team\"='#48 Greenwood Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657883_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: What was the to winning team when the tu winning team was joe amato carson baird?" }, { "role": "assistant", "content": "SELECT \"to_winning_team\" FROM \"table1_13657883_2\" WHERE \"tu_winning_team\"='Joe Amato Carson Baird';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657749_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: Who is GTU Winning Team's #27 Don Lindley's TO Winning Team?" }, { "role": "assistant", "content": "SELECT \"to_winning_team\" FROM \"table1_13657749_2\" WHERE \"gtu_winning_team\"='#27 Don Lindley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657749_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: What is GTO Winning Team Mike Keyser's RND number?" }, { "role": "assistant", "content": "SELECT \"rnd\" FROM \"table1_13657749_2\" WHERE \"gto_winning_team\"='Mike Keyser';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657749_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: Who is Gene Felton's TO Winning Team?" }, { "role": "assistant", "content": "SELECT \"to_winning_team\" FROM \"table1_13657749_2\" WHERE \"gto_winning_team\"='Gene Felton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13657749_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"gto_winning_team\" text,\n \"gtu_winning_team\" text,\n \"to_winning_team\" text,\n \"tu_winning_team\" text,\n \"results\" text\n);\n\nQuestion: What is Peter Gregg Hurley Haywood's results?" }, { "role": "assistant", "content": "SELECT \"results\" FROM \"table1_13657749_2\" WHERE \"gto_winning_team\"='Peter Gregg Hurley Haywood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_to_head\" (\n \"tournament\" text,\n \"matches\" real,\n \"wins_olimpia\" real,\n \"empates\" real,\n \"wins_cerro\" real,\n \"goals_olimpia\" real,\n \"goals_cerro\" real\n);\n\nQuestion: What was the least amount for Goals Olimpia?" }, { "role": "assistant", "content": "SELECT MIN(\"goals_olimpia\") FROM \"head_to_head\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_to_head\" (\n \"tournament\" text,\n \"matches\" real,\n \"wins_olimpia\" real,\n \"empates\" real,\n \"wins_cerro\" real,\n \"goals_olimpia\" real,\n \"goals_cerro\" real\n);\n\nQuestion: How many goals Olimpia recorded for 32 matches?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals_olimpia\") FROM \"head_to_head\" WHERE \"matches\"=32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"head_to_head\" (\n \"tournament\" text,\n \"matches\" real,\n \"wins_olimpia\" real,\n \"empates\" real,\n \"wins_cerro\" real,\n \"goals_olimpia\" real,\n \"goals_cerro\" real\n);\n\nQuestion: What was the number of matches when the Goals Olimpia was 149?" }, { "role": "assistant", "content": "SELECT \"matches\" FROM \"head_to_head\" WHERE \"goals_olimpia\"=149;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13690575_4\" (\n \"cost\" text,\n \"2400_k_wh_k_wp_y\" text,\n \"2200_k_wh_k_wp_y\" text,\n \"2000_k_wh_k_wp_y\" text,\n \"1800_k_wh_k_wp_y\" text,\n \"1600_k_wh_k_wp_y\" text,\n \"1400_k_wh_k_wp_y\" text,\n \"1200_k_wh_k_wp_y\" text,\n \"1000_k_wh_k_wp_y\" text,\n \"800_k_wh_k_wp_y\" text\n);\n\nQuestion: At the rate where 1600kwh/kwp\u2022y is 26.3, what is the value of 2200 kwh/kwp\u2022y?" }, { "role": "assistant", "content": "SELECT \"2200_k_wh_k_wp_y\" FROM \"table1_13690575_4\" WHERE \"1600_k_wh_k_wp_y\"='26.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13690575_4\" (\n \"cost\" text,\n \"2400_k_wh_k_wp_y\" text,\n \"2200_k_wh_k_wp_y\" text,\n \"2000_k_wh_k_wp_y\" text,\n \"1800_k_wh_k_wp_y\" text,\n \"1600_k_wh_k_wp_y\" text,\n \"1400_k_wh_k_wp_y\" text,\n \"1200_k_wh_k_wp_y\" text,\n \"1000_k_wh_k_wp_y\" text,\n \"800_k_wh_k_wp_y\" text\n);\n\nQuestion: At the rate where 2200 kwh/kwp\u2022y is 11.8, what is the value of 2400 kwh/kwp\u2022y?" }, { "role": "assistant", "content": "SELECT \"2400_k_wh_k_wp_y\" FROM \"table1_13690575_4\" WHERE \"2200_k_wh_k_wp_y\"='11.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13690575_4\" (\n \"cost\" text,\n \"2400_k_wh_k_wp_y\" text,\n \"2200_k_wh_k_wp_y\" text,\n \"2000_k_wh_k_wp_y\" text,\n \"1800_k_wh_k_wp_y\" text,\n \"1600_k_wh_k_wp_y\" text,\n \"1400_k_wh_k_wp_y\" text,\n \"1200_k_wh_k_wp_y\" text,\n \"1000_k_wh_k_wp_y\" text,\n \"800_k_wh_k_wp_y\" text\n);\n\nQuestion: At the rate where 1000 kwh/kwp\u2022y is 26.0, what is the value of 1600 kwh/kwp\u2022y?" }, { "role": "assistant", "content": "SELECT \"1600_k_wh_k_wp_y\" FROM \"table1_13690575_4\" WHERE \"1000_k_wh_k_wp_y\"='26.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13690575_4\" (\n \"cost\" text,\n \"2400_k_wh_k_wp_y\" text,\n \"2200_k_wh_k_wp_y\" text,\n \"2000_k_wh_k_wp_y\" text,\n \"1800_k_wh_k_wp_y\" text,\n \"1600_k_wh_k_wp_y\" text,\n \"1400_k_wh_k_wp_y\" text,\n \"1200_k_wh_k_wp_y\" text,\n \"1000_k_wh_k_wp_y\" text,\n \"800_k_wh_k_wp_y\" text\n);\n\nQuestion: At the rate where 1800 kwh/kwp\u2022y is 1.1, what is the value of 2400 kwh/kwp\u2022y?" }, { "role": "assistant", "content": "SELECT \"2400_k_wh_k_wp_y\" FROM \"table1_13690575_4\" WHERE \"1800_k_wh_k_wp_y\"='1.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13690575_4\" (\n \"cost\" text,\n \"2400_k_wh_k_wp_y\" text,\n \"2200_k_wh_k_wp_y\" text,\n \"2000_k_wh_k_wp_y\" text,\n \"1800_k_wh_k_wp_y\" text,\n \"1600_k_wh_k_wp_y\" text,\n \"1400_k_wh_k_wp_y\" text,\n \"1200_k_wh_k_wp_y\" text,\n \"1000_k_wh_k_wp_y\" text,\n \"800_k_wh_k_wp_y\" text\n);\n\nQuestion: At the rate where 1800 kwh/kwp\u2022y is 16.7, what is the value of 2400 kwh/kwp\u2022y?" }, { "role": "assistant", "content": "SELECT \"2400_k_wh_k_wp_y\" FROM \"table1_13690575_4\" WHERE \"1800_k_wh_k_wp_y\"='16.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13681_2\" (\n \"country\" text,\n \"currency_name\" text,\n \"month_with_highest_inflation_rate\" text,\n \"highest_monthly_inflation_rate\" text,\n \"equivalent_daily_inflation_rate\" text,\n \"time_required_for_prices_to_double\" text\n);\n\nQuestion: what's the\u00a0time required for prices to double\u00a0with\u00a0highest monthly inflation rate\u00a0being 29,500%" }, { "role": "assistant", "content": "SELECT \"time_required_for_prices_to_double\" FROM \"table1_13681_2\" WHERE \"highest_monthly_inflation_rate\"='29,500%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13681_2\" (\n \"country\" text,\n \"currency_name\" text,\n \"month_with_highest_inflation_rate\" text,\n \"highest_monthly_inflation_rate\" text,\n \"equivalent_daily_inflation_rate\" text,\n \"time_required_for_prices_to_double\" text\n);\n\nQuestion: what's the\u00a0currency name\u00a0with\u00a0highest monthly inflation rate\u00a0being 29,500%" }, { "role": "assistant", "content": "SELECT \"currency_name\" FROM \"table1_13681_2\" WHERE \"highest_monthly_inflation_rate\"='29,500%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13681_2\" (\n \"country\" text,\n \"currency_name\" text,\n \"month_with_highest_inflation_rate\" text,\n \"highest_monthly_inflation_rate\" text,\n \"equivalent_daily_inflation_rate\" text,\n \"time_required_for_prices_to_double\" text\n);\n\nQuestion: how many\u00a0equivalent daily inflation rate\u00a0with\u00a0time required for prices to double\u00a0being 3.7 days" }, { "role": "assistant", "content": "SELECT COUNT(\"equivalent_daily_inflation_rate\") FROM \"table1_13681_2\" WHERE \"time_required_for_prices_to_double\"='3.7 days';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13681_2\" (\n \"country\" text,\n \"currency_name\" text,\n \"month_with_highest_inflation_rate\" text,\n \"highest_monthly_inflation_rate\" text,\n \"equivalent_daily_inflation_rate\" text,\n \"time_required_for_prices_to_double\" text\n);\n\nQuestion: how many\u00a0country\u00a0with\u00a0currency name\u00a0being republika srpska dinar" }, { "role": "assistant", "content": "SELECT COUNT(\"country\") FROM \"table1_13681_2\" WHERE \"currency_name\"='Republika Srpska dinar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13681_2\" (\n \"country\" text,\n \"currency_name\" text,\n \"month_with_highest_inflation_rate\" text,\n \"highest_monthly_inflation_rate\" text,\n \"equivalent_daily_inflation_rate\" text,\n \"time_required_for_prices_to_double\" text\n);\n\nQuestion: how many\u00a0equivalent daily inflation rate\u00a0with\u00a0currency name\u00a0being republika srpska dinar" }, { "role": "assistant", "content": "SELECT COUNT(\"equivalent_daily_inflation_rate\") FROM \"table1_13681_2\" WHERE \"currency_name\"='Republika Srpska dinar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_13681_2\" (\n \"country\" text,\n \"currency_name\" text,\n \"month_with_highest_inflation_rate\" text,\n \"highest_monthly_inflation_rate\" text,\n \"equivalent_daily_inflation_rate\" text,\n \"time_required_for_prices_to_double\" text\n);\n\nQuestion: what's the\u00a0country\u00a0with\u00a0highest monthly inflation rate\u00a0being 3.13 \u00d7 10 8 %" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"table1_13681_2\" WHERE \"highest_monthly_inflation_rate\"='3.13 \u00d7 10 8 %';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"grand_final_television_commentator\" text,\n \"grand_final_dual_television_commentator\" text,\n \"spokesperson\" text,\n \"semi_final_television_commentator\" text,\n \"semi_final_dual_television_commentator\" text\n);\n\nQuestion: How many grand final dual television commentators were there in 1961?" }, { "role": "assistant", "content": "SELECT COUNT(\"grand_final_dual_television_commentator\") FROM \"commentators_and_spokespersons\" WHERE \"year_s\"=1961;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"grand_final_television_commentator\" text,\n \"grand_final_dual_television_commentator\" text,\n \"spokesperson\" text,\n \"semi_final_television_commentator\" text,\n \"semi_final_dual_television_commentator\" text\n);\n\nQuestion: Who was the spokesperson for France in 1970?" }, { "role": "assistant", "content": "SELECT \"spokesperson\" FROM \"commentators_and_spokespersons\" WHERE \"year_s\"=1970;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"grand_final_television_commentator\" text,\n \"grand_final_dual_television_commentator\" text,\n \"spokesperson\" text,\n \"semi_final_television_commentator\" text,\n \"semi_final_dual_television_commentator\" text\n);\n\nQuestion: What year was Thierry Beccaro the spokesperson?" }, { "role": "assistant", "content": "SELECT MIN(\"year_s\") FROM \"commentators_and_spokespersons\" WHERE \"spokesperson\"='Thierry Beccaro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: How many games played on june 25?" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"lone_star_series\" WHERE \"date\"='June 25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Who won the game on may 21?" }, { "role": "assistant", "content": "SELECT \"winning_team\" FROM \"lone_star_series\" WHERE \"date\"='May 21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Who was the losing pitcher when 40583 attended?" }, { "role": "assistant", "content": "SELECT \"losing_pitcher\" FROM \"lone_star_series\" WHERE \"attendance\"=40583;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Who was the wenning witcher when ezequiel astacio was the losing pitcher?" }, { "role": "assistant", "content": "SELECT \"winning_pitcher\" FROM \"lone_star_series\" WHERE \"losing_pitcher\"='Ezequiel Astacio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lone_star_series\" (\n \"date\" text,\n \"winning_team\" text,\n \"score\" text,\n \"winning_pitcher\" text,\n \"losing_pitcher\" text,\n \"attendance\" real,\n \"location\" text\n);\n\nQuestion: Where was the game played on may 20?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"lone_star_series\" WHERE \"date\"='May 20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"position\" real,\n \"club_city_town\" text,\n \"games_played\" real,\n \"w_l_d\" text,\n \"goals_for_against\" text,\n \"points\" real\n);\n\nQuestion: On what position number is the club with a w-l-d of 5-7-4?" }, { "role": "assistant", "content": "SELECT COUNT(\"club_city_town\") FROM \"regular_season\" WHERE \"w_l_d\"='5-7-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"position\" real,\n \"club_city_town\" text,\n \"games_played\" real,\n \"w_l_d\" text,\n \"goals_for_against\" text,\n \"points\" real\n);\n\nQuestion: What's the position of the club with w-l-d of 6-2-8?" }, { "role": "assistant", "content": "SELECT MAX(\"position\") FROM \"regular_season\" WHERE \"w_l_d\"='6-2-8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"position\" real,\n \"club_city_town\" text,\n \"games_played\" real,\n \"w_l_d\" text,\n \"goals_for_against\" text,\n \"points\" real\n);\n\nQuestion: How many games has the club with 29-24 goals for/against score played? " }, { "role": "assistant", "content": "SELECT \"games_played\" FROM \"regular_season\" WHERE \"goals_for_against\"='29-24';" } ]
[ { "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 \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: How many films titled Gie have been nominated?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_title\") FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='Gie';" } ]