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 \"third_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's team #2 in the round where team $1 is Ilisiakos?" }, { "role": "assistant", "content": "SELECT \"team_num2\" FROM \"third_round\" WHERE \"team_num1\"='Ilisiakos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's the team #2 in the round where team #1 is Iraklis?" }, { "role": "assistant", "content": "SELECT \"team_num2\" FROM \"third_round\" WHERE \"team_num1\"='Iraklis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's the 1st leg result in the round where team #1 is Iraklis?" }, { "role": "assistant", "content": "SELECT \"1st_leg\" FROM \"third_round\" WHERE \"team_num1\"='Iraklis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's the 2nd leg result in the round where Panionios is team #2?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"third_round\" WHERE \"team_num2\"='Panionios';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What's the 2nd leg result in the round where team #1 is Iraklis?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"third_round\" WHERE \"team_num1\"='Iraklis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"dma\" real,\n \"market\" text,\n \"station\" text,\n \"frequency\" text,\n \"branding\" text,\n \"format\" text\n);\n\nQuestion: What is the dma when the format is rhythmic contemporary?" }, { "role": "assistant", "content": "SELECT MIN(\"dma\") FROM \"stations\" WHERE \"format\"='Rhythmic Contemporary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"dma\" real,\n \"market\" text,\n \"station\" text,\n \"frequency\" text,\n \"branding\" text,\n \"format\" text\n);\n\nQuestion: Which frequency is station wlfv-fm?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"stations\" WHERE \"station\"='WLFV-FM';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"dma\" real,\n \"market\" text,\n \"station\" text,\n \"frequency\" text,\n \"branding\" text,\n \"format\" text\n);\n\nQuestion: Which station has the frequency of 107.3?" }, { "role": "assistant", "content": "SELECT \"station\" FROM \"stations\" WHERE \"frequency\"='107.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"dma\" real,\n \"market\" text,\n \"station\" text,\n \"frequency\" text,\n \"branding\" text,\n \"format\" text\n);\n\nQuestion: What is dma?" }, { "role": "assistant", "content": "SELECT MIN(\"dma\") FROM \"stations\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"dma\" real,\n \"market\" text,\n \"station\" text,\n \"frequency\" text,\n \"branding\" text,\n \"format\" text\n);\n\nQuestion: What is the dma of branding is big oldies 107.3 with the station warv-fm?" }, { "role": "assistant", "content": "SELECT \"dma\" FROM \"stations\" WHERE \"branding\"='Big Oldies 107.3' AND \"station\"='WARV-FM';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"dma\" real,\n \"market\" text,\n \"station\" text,\n \"frequency\" text,\n \"branding\" text,\n \"format\" text\n);\n\nQuestion: Which branding has the format of southern country?" }, { "role": "assistant", "content": "SELECT \"branding\" FROM \"stations\" WHERE \"format\"='Southern Country';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fuxi_earlier_heaven\" (\n \"name\" text,\n \"nature\" text,\n \"season\" text,\n \"personality\" text,\n \"family\" text,\n \"direction\" text,\n \"meaning\" text\n);\n\nQuestion: What is the total number of gentle personalities?" }, { "role": "assistant", "content": "SELECT COUNT(\"direction\") FROM \"fuxi_earlier_heaven\" WHERE \"personality\"='Gentle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fuxi_earlier_heaven\" (\n \"name\" text,\n \"nature\" text,\n \"season\" text,\n \"personality\" text,\n \"family\" text,\n \"direction\" text,\n \"meaning\" text\n);\n\nQuestion: What is the meaning of a gentle personality?" }, { "role": "assistant", "content": "SELECT \"meaning\" FROM \"fuxi_earlier_heaven\" WHERE \"personality\"='Gentle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fuxi_earlier_heaven\" (\n \"name\" text,\n \"nature\" text,\n \"season\" text,\n \"personality\" text,\n \"family\" text,\n \"direction\" text,\n \"meaning\" text\n);\n\nQuestion: Who in the family has a gentle personality?" }, { "role": "assistant", "content": "SELECT \"family\" FROM \"fuxi_earlier_heaven\" WHERE \"personality\"='Gentle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"launches\" (\n \"mission_no\" text,\n \"cover_name\" text,\n \"launch_date\" text,\n \"nssdc_id_no\" text,\n \"alt_name\" text,\n \"camera\" text,\n \"notes\" text\n);\n\nQuestion: Which mission number has alternate name 1962-f01" }, { "role": "assistant", "content": "SELECT \"mission_no\" FROM \"launches\" WHERE \"alt_name\"='1962-F01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"launches\" (\n \"mission_no\" text,\n \"cover_name\" text,\n \"launch_date\" text,\n \"nssdc_id_no\" text,\n \"alt_name\" text,\n \"camera\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes of the satellite whose nssdc id number is 1959-002a?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"launches\" WHERE \"nssdc_id_no\"='1959-002A';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"launches\" (\n \"mission_no\" text,\n \"cover_name\" text,\n \"launch_date\" text,\n \"nssdc_id_no\" text,\n \"alt_name\" text,\n \"camera\" text,\n \"notes\" text\n);\n\nQuestion: What are the alternative name/s of those satellites whose nssdc id number is 1970-054a?" }, { "role": "assistant", "content": "SELECT \"alt_name\" FROM \"launches\" WHERE \"nssdc_id_no\"='1970-054A';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"launches\" (\n \"mission_no\" text,\n \"cover_name\" text,\n \"launch_date\" text,\n \"nssdc_id_no\" text,\n \"alt_name\" text,\n \"camera\" text,\n \"notes\" text\n);\n\nQuestion: What are the alternative names of those satellites where the notes are: mission failed. guidance system failed. no orbit." }, { "role": "assistant", "content": "SELECT \"alt_name\" FROM \"launches\" WHERE \"notes\"='Mission failed. Guidance system failed. No orbit.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"rank\" real,\n \"race_number\" real,\n \"name\" text,\n \"noc\" text,\n \"250m\" text,\n \"500m\" text,\n \"750m\" text,\n \"1_000m\" text\n);\n\nQuestion: If -750m is 46.436, what is the name of the cyclist? " }, { "role": "assistant", "content": "SELECT \"name\" FROM \"final_results\" WHERE \"750m\"='46.436';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"rank\" real,\n \"race_number\" real,\n \"name\" text,\n \"noc\" text,\n \"250m\" text,\n \"500m\" text,\n \"750m\" text,\n \"1_000m\" text\n);\n\nQuestion: What is the -500 number for Theo Bos?" }, { "role": "assistant", "content": "SELECT \"500m\" FROM \"final_results\" WHERE \"name\"='Theo Bos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"rank\" real,\n \"race_number\" real,\n \"name\" text,\n \"noc\" text,\n \"250m\" text,\n \"500m\" text,\n \"750m\" text,\n \"1_000m\" text\n);\n\nQuestion: If the -250m is 18.852, what is the " }, { "role": "assistant", "content": "SELECT \"750m\" FROM \"final_results\" WHERE \"250m\"='18.852';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"rank\" real,\n \"race_number\" real,\n \"name\" text,\n \"noc\" text,\n \"250m\" text,\n \"500m\" text,\n \"750m\" text,\n \"1_000m\" text\n);\n\nQuestion: If -750 is 45.505, what is the maximum rank?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"final_results\" WHERE \"750m\"='45.505';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_191591_5\" (\n \"dvd_title\" text,\n \"number_of_episodes\" text,\n \"region_2\" text,\n \"region_4_au\" text,\n \"region_1_us\" text\n);\n\nQuestion: Where are there 25 episodes in Catfights and Brawls?" }, { "role": "assistant", "content": "SELECT \"region_2\" FROM \"table1_191591_5\" WHERE \"number_of_episodes\"='25' AND \"dvd_title\"='Catfights and Brawls';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regional_championship\" (\n \"year\" real,\n \"iowa\" text,\n \"kansas\" text,\n \"minnesota\" text,\n \"missouri\" text,\n \"nebraska\" text,\n \"north_south_dakota\" text\n);\n\nQuestion: Name the missouri for 2002" }, { "role": "assistant", "content": "SELECT \"missouri\" FROM \"regional_championship\" WHERE \"year\"=2002;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_population_of_london\" (\n \"rank\" real,\n \"london_borough\" text,\n \"indian_population\" real,\n \"pakistani_population\" real,\n \"bangladeshi_population\" real,\n \"chinese_population\" real,\n \"other_asian_population\" real,\n \"total_asian_population\" real\n);\n\nQuestion: How many Bangladeshi citizens are there in the borough ranked at number 7?" }, { "role": "assistant", "content": "SELECT MIN(\"bangladeshi_population\") FROM \"asian_population_of_london\" WHERE \"rank\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_population_of_london\" (\n \"rank\" real,\n \"london_borough\" text,\n \"indian_population\" real,\n \"pakistani_population\" real,\n \"bangladeshi_population\" real,\n \"chinese_population\" real,\n \"other_asian_population\" real,\n \"total_asian_population\" real\n);\n\nQuestion: What's the London borough with 7797 Pakistani citizens?" }, { "role": "assistant", "content": "SELECT \"london_borough\" FROM \"asian_population_of_london\" WHERE \"pakistani_population\"=7797;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_population_of_london\" (\n \"rank\" real,\n \"london_borough\" text,\n \"indian_population\" real,\n \"pakistani_population\" real,\n \"bangladeshi_population\" real,\n \"chinese_population\" real,\n \"other_asian_population\" real,\n \"total_asian_population\" real\n);\n\nQuestion: How many boroughs with different ranks have a total Asian population of 33338?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"asian_population_of_london\" WHERE \"total_asian_population\"=33338;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_population_of_london\" (\n \"rank\" real,\n \"london_borough\" text,\n \"indian_population\" real,\n \"pakistani_population\" real,\n \"bangladeshi_population\" real,\n \"chinese_population\" real,\n \"other_asian_population\" real,\n \"total_asian_population\" real\n);\n\nQuestion: What's the Chinese population in the borough with 26347 Pakistanis?" }, { "role": "assistant", "content": "SELECT \"chinese_population\" FROM \"asian_population_of_london\" WHERE \"pakistani_population\"=26347;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_population_of_london\" (\n \"rank\" real,\n \"london_borough\" text,\n \"indian_population\" real,\n \"pakistani_population\" real,\n \"bangladeshi_population\" real,\n \"chinese_population\" real,\n \"other_asian_population\" real,\n \"total_asian_population\" real\n);\n\nQuestion: How many Asians live in the borough with 8109 Chinese population?" }, { "role": "assistant", "content": "SELECT MIN(\"total_asian_population\") FROM \"asian_population_of_london\" WHERE \"chinese_population\"=8109;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_population_of_london\" (\n \"rank\" real,\n \"london_borough\" text,\n \"indian_population\" real,\n \"pakistani_population\" real,\n \"bangladeshi_population\" real,\n \"chinese_population\" real,\n \"other_asian_population\" real,\n \"total_asian_population\" real\n);\n\nQuestion: How many Bangladeshi citizens live in the borough ranked at number 14?" }, { "role": "assistant", "content": "SELECT MAX(\"bangladeshi_population\") FROM \"asian_population_of_london\" WHERE \"rank\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chronology_of_worldwide_membership\" (\n \"year\" real,\n \"worldwide\" real,\n \"africa\" real,\n \"america\" real,\n \"asia\" real,\n \"australia\" real,\n \"europe\" real\n);\n\nQuestion: How many members did Africa have the year that Australia had 94615?" }, { "role": "assistant", "content": "SELECT \"africa\" FROM \"chronology_of_worldwide_membership\" WHERE \"australia\"=94615;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chronology_of_worldwide_membership\" (\n \"year\" real,\n \"worldwide\" real,\n \"africa\" real,\n \"america\" real,\n \"asia\" real,\n \"australia\" real,\n \"europe\" real\n);\n\nQuestion: How many members did Europe have the year that America had 403892?" }, { "role": "assistant", "content": "SELECT \"europe\" FROM \"chronology_of_worldwide_membership\" WHERE \"america\"=403892;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chronology_of_worldwide_membership\" (\n \"year\" real,\n \"worldwide\" real,\n \"africa\" real,\n \"america\" real,\n \"asia\" real,\n \"australia\" real,\n \"europe\" real\n);\n\nQuestion: What is the minimum number of members Europe had at the time Africa had 7375139?" }, { "role": "assistant", "content": "SELECT MIN(\"europe\") FROM \"chronology_of_worldwide_membership\" WHERE \"africa\"=7375139;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chronology_of_worldwide_membership\" (\n \"year\" real,\n \"worldwide\" real,\n \"africa\" real,\n \"america\" real,\n \"asia\" real,\n \"australia\" real,\n \"europe\" real\n);\n\nQuestion: What is the minimum number of members Africa had in 2001?" }, { "role": "assistant", "content": "SELECT MIN(\"africa\") FROM \"chronology_of_worldwide_membership\" WHERE \"year\"=2001;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chronology_of_worldwide_membership\" (\n \"year\" real,\n \"worldwide\" real,\n \"africa\" real,\n \"america\" real,\n \"asia\" real,\n \"australia\" real,\n \"europe\" real\n);\n\nQuestion: What is the most members Europe had when Australia had 94615?" }, { "role": "assistant", "content": "SELECT MAX(\"europe\") FROM \"chronology_of_worldwide_membership\" WHERE \"australia\"=94615;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"chronology_of_worldwide_membership\" (\n \"year\" real,\n \"worldwide\" real,\n \"africa\" real,\n \"america\" real,\n \"asia\" real,\n \"australia\" real,\n \"europe\" real\n);\n\nQuestion: What is the latest year that Europe had 471895?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"chronology_of_worldwide_membership\" WHERE \"europe\"=471895;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161046_1\" (\n \"model\" text,\n \"year\" text,\n \"code_name\" text,\n \"fab_nm\" real,\n \"bus_interface\" text,\n \"transistor_count_millions\" real,\n \"memory_max_mi_b\" text,\n \"core_m_hz\" real,\n \"memory_m_hz\" text,\n \"type\" text,\n \"bus_width_bit\" real,\n \"direct_x\" text,\n \"shader_model\" text,\n \"open_gl\" text,\n \"maximum_resolution\" text,\n \"ice_q4_cooling_system\" text,\n \"notes\" text\n);\n\nQuestion: What's the bus width (in bit) of the model whose core is 650 MHz?" }, { "role": "assistant", "content": "SELECT COUNT(\"bus_width_bit\") FROM \"table1_19161046_1\" WHERE \"core_m_hz\"=650;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161046_1\" (\n \"model\" text,\n \"year\" text,\n \"code_name\" text,\n \"fab_nm\" real,\n \"bus_interface\" text,\n \"transistor_count_millions\" real,\n \"memory_max_mi_b\" text,\n \"core_m_hz\" real,\n \"memory_m_hz\" text,\n \"type\" text,\n \"bus_width_bit\" real,\n \"direct_x\" text,\n \"shader_model\" text,\n \"open_gl\" text,\n \"maximum_resolution\" text,\n \"ice_q4_cooling_system\" text,\n \"notes\" text\n);\n\nQuestion: What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?" }, { "role": "assistant", "content": "SELECT \"direct_x\" FROM \"table1_19161046_1\" WHERE \"code_name\"='RV770 PRO' AND \"core_m_hz\">650.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161046_1\" (\n \"model\" text,\n \"year\" text,\n \"code_name\" text,\n \"fab_nm\" real,\n \"bus_interface\" text,\n \"transistor_count_millions\" real,\n \"memory_max_mi_b\" text,\n \"core_m_hz\" real,\n \"memory_m_hz\" text,\n \"type\" text,\n \"bus_width_bit\" real,\n \"direct_x\" text,\n \"shader_model\" text,\n \"open_gl\" text,\n \"maximum_resolution\" text,\n \"ice_q4_cooling_system\" text,\n \"notes\" text\n);\n\nQuestion: What are the notes recorded for the model HIS HD4850 (512MB)?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"table1_19161046_1\" WHERE \"model\"='HIS HD4850 (512MB)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161605_2\" (\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Who directed \"Fever\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_19161605_2\" WHERE \"title\"='\\\"Fever\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161605_2\" (\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What is the original air date of \"Cursed\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19161605_2\" WHERE \"title\"='\\\"Cursed\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161605_2\" (\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What is the original air date of \"Prophecy\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19161605_2\" WHERE \"title\"='\\\"Prophecy\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161605_2\" (\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Who wrote the episode \"Confession\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_19161605_2\" WHERE \"title\"='\\\"Confession\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19161605_2\" (\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What is the title of episode number 14?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_19161605_2\" WHERE \"num\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"example_data\" (\n \"pair_i_d\" real,\n \"survive\" real,\n \"industry\" text,\n \"current_ratio\" real,\n \"quick_ratio\" real,\n \"net_worth_to_fixed_assets\" real\n);\n\nQuestion: If the net worth of fixed assets is 621, what is the current ratio?" }, { "role": "assistant", "content": "SELECT \"current_ratio\" FROM \"example_data\" WHERE \"net_worth_to_fixed_assets\"=621;" } ]
[ { "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 \"opponent\" 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: Name the score for opponent of cleveland" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"opponent\"='Cleveland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"pts_diff\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: Featherstone Rovers club played a total of how many games?" }, { "role": "assistant", "content": "SELECT COUNT(\"played\") FROM \"table\" WHERE \"club\"='Featherstone Rovers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"pts_diff\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: How many games were lost when the club got 34 points" }, { "role": "assistant", "content": "SELECT MIN(\"lost\") FROM \"table\" WHERE \"points\"=34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"pts_for\" real,\n \"pts_agst\" real,\n \"pts_diff\" real,\n \"b_p\" real,\n \"points\" real\n);\n\nQuestion: What was the B.P. of club Halifax?" }, { "role": "assistant", "content": "SELECT \"b_p\" FROM \"table\" WHERE \"club\"='Halifax';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s_doubles_14_9_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the first year she played in the french open?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"women_s_doubles_14_9_titles_5_runner_ups\" WHERE \"championship\"='French Open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s_doubles_14_9_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: How many times was the score 6\u20137(5), 6\u20132, 6\u20133?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponents\") FROM \"women_s_doubles_14_9_titles_5_runner_ups\" WHERE \"score\"='6\u20137(5), 6\u20132, 6\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_8_5_titles_3_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Who was her partner at the US Open and they were runner-up?" }, { "role": "assistant", "content": "SELECT \"partner\" FROM \"mixed_doubles_8_5_titles_3_runner_ups\" WHERE \"championship\"='US Open' AND \"outcome\"='Runner-up';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_8_5_titles_3_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Who was her partner at the US Open and they were runner-up?" }, { "role": "assistant", "content": "SELECT \"partner\" FROM \"mixed_doubles_8_5_titles_3_runner_ups\" WHERE \"outcome\"='Runner-up' AND \"championship\"='US Open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_8_5_titles_3_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Who did she play with on clay?" }, { "role": "assistant", "content": "SELECT \"partner\" FROM \"mixed_doubles_8_5_titles_3_runner_ups\" WHERE \"surface\"='Clay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_7_5_titles_2_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: state the number of surface where championship is australian open and score in the final is 6\u20133, 4\u20136, 11\u20139" }, { "role": "assistant", "content": "SELECT COUNT(\"surface\") FROM \"mixed_doubles_7_5_titles_2_runner_ups\" WHERE \"championship\"='Australian Open' AND \"score_in_the_final\"='6\u20133, 4\u20136, 11\u20139';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_7_5_titles_2_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: which championship had arantxa s\u00e1nchez vicario todd woodbridge as opponents in the final " }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"mixed_doubles_7_5_titles_2_runner_ups\" WHERE \"opponents_in_the_final\"='Arantxa S\u00e1nchez Vicario Todd Woodbridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_7_5_titles_2_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: what is the surface of the final which had score 6-2, 6-3" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"mixed_doubles_7_5_titles_2_runner_ups\" WHERE \"score_in_the_final\"='6-2, 6-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_7_5_titles_2_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: when were helena sukov\u00e1 todd woodbridge the opponents in the final" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"mixed_doubles_7_5_titles_2_runner_ups\" WHERE \"opponents_in_the_final\"='Helena Sukov\u00e1 Todd Woodbridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_doubles_7_5_titles_2_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: which championship had helena sukov\u00e1 tom nijssen as opponents in the final and nicole provis as partner, the surface was hard and the outcome was winner" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"mixed_doubles_7_5_titles_2_runner_ups\" WHERE \"outcome\"='Winner' AND \"surface\"='Hard' AND \"partner\"='Nicole Provis' AND \"opponents_in_the_final\"='Helena Sukov\u00e1 Tom Nijssen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19189856_1\" (\n \"performer\" text,\n \"performances\" real,\n \"category\" text,\n \"first_performance\" text,\n \"last_performance\" text\n);\n\nQuestion: when was the last performance of the first performance on 11/15/1909" }, { "role": "assistant", "content": "SELECT \"last_performance\" FROM \"table1_19189856_1\" WHERE \"first_performance\"='11/15/1909';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19189856_1\" (\n \"performer\" text,\n \"performances\" real,\n \"category\" text,\n \"first_performance\" text,\n \"last_performance\" text\n);\n\nQuestion: how many first performances where performer is wilfred engelman category:articles with hcards" }, { "role": "assistant", "content": "SELECT COUNT(\"first_performance\") FROM \"table1_19189856_1\" WHERE \"performer\"='Wilfred Engelman Category:Articles with hCards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19189856_1\" (\n \"performer\" text,\n \"performances\" real,\n \"category\" text,\n \"first_performance\" text,\n \"last_performance\" text\n);\n\nQuestion: who was the performer that did last performance on 04/08/1963" }, { "role": "assistant", "content": "SELECT \"performer\" FROM \"table1_19189856_1\" WHERE \"last_performance\"='04/08/1963';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19189856_1\" (\n \"performer\" text,\n \"performances\" real,\n \"category\" text,\n \"first_performance\" text,\n \"last_performance\" text\n);\n\nQuestion: what is the first performance of the last performance on 03/29/1957" }, { "role": "assistant", "content": "SELECT \"first_performance\" FROM \"table1_19189856_1\" WHERE \"last_performance\"='03/29/1957';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19189856_1\" (\n \"performer\" text,\n \"performances\" real,\n \"category\" text,\n \"first_performance\" text,\n \"last_performance\" text\n);\n\nQuestion: what is the last performance of leon varkas category:articles with hcards" }, { "role": "assistant", "content": "SELECT \"last_performance\" FROM \"table1_19189856_1\" WHERE \"performer\"='Leon Varkas Category:Articles with hCards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2009\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: How many different finales had the English title \"Beyond the Realm of Conscience\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"finale\") FROM \"highest_rating_drama_series_of_2009\" WHERE \"english_title\"='Beyond the Realm of Conscience';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2009\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: What was the maximum average of the episode with a Chinese title \u53e4\u9748\u7cbe\u63a2b?" }, { "role": "assistant", "content": "SELECT MAX(\"average\") FROM \"highest_rating_drama_series_of_2009\" WHERE \"chinese_title\"='\u53e4\u9748\u7cbe\u63a2B';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2009\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: How was the episode seen by 2.26 million HK viewers ranked?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"highest_rating_drama_series_of_2009\" WHERE \"hk_viewers\"='2.26 million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_rating_drama_series_of_2009\" (\n \"rank\" real,\n \"english_title\" text,\n \"chinese_title\" text,\n \"average\" real,\n \"peak\" real,\n \"premiere\" real,\n \"finale\" real,\n \"hk_viewers\" text\n);\n\nQuestion: What is the finale number ranked at number 7?" }, { "role": "assistant", "content": "SELECT \"finale\" FROM \"highest_rating_drama_series_of_2009\" WHERE \"rank\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"involvement_in_military_conflicts\" (\n \"start_of_conflict\" real,\n \"end_of_conflict\" text,\n \"conflict\" text,\n \"continent\" text,\n \"location\" text,\n \"branches_involved\" text\n);\n\nQuestion: What is every conflict in Iraq?" }, { "role": "assistant", "content": "SELECT \"conflict\" FROM \"involvement_in_military_conflicts\" WHERE \"location\"='Iraq';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"involvement_in_military_conflicts\" (\n \"start_of_conflict\" real,\n \"end_of_conflict\" text,\n \"conflict\" text,\n \"continent\" text,\n \"location\" text,\n \"branches_involved\" text\n);\n\nQuestion: What is every branch involved in Afghanistan?" }, { "role": "assistant", "content": "SELECT \"branches_involved\" FROM \"involvement_in_military_conflicts\" WHERE \"location\"='Afghanistan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"involvement_in_military_conflicts\" (\n \"start_of_conflict\" real,\n \"end_of_conflict\" text,\n \"conflict\" text,\n \"continent\" text,\n \"location\" text,\n \"branches_involved\" text\n);\n\nQuestion: Which conflicts took place in Yemen?" }, { "role": "assistant", "content": "SELECT \"conflict\" FROM \"involvement_in_military_conflicts\" WHERE \"location\"='Yemen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"involvement_in_military_conflicts\" (\n \"start_of_conflict\" real,\n \"end_of_conflict\" text,\n \"conflict\" text,\n \"continent\" text,\n \"location\" text,\n \"branches_involved\" text\n);\n\nQuestion: How many conflicts started in Afghanistan?" }, { "role": "assistant", "content": "SELECT COUNT(\"start_of_conflict\") FROM \"involvement_in_military_conflicts\" WHERE \"location\"='Afghanistan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19229713_6\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: When did the title \"secret weapons\" originally air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19229713_6\" WHERE \"title\"='\\\"Secret Weapons\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19229713_6\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many u.s. viewers (million) have the number 16?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_19229713_6\" WHERE \"num\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19229713_6\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the production code of the title \"secret weapons\"?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_19229713_6\" WHERE \"title\"='\\\"Secret Weapons\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19229713_6\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many u.s. viewers (million) have the production code of 5.09?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_19229713_6\" WHERE \"production_code\"='5.09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"natural_habitat\" (\n \"land_formation\" text,\n \"area_km\" real,\n \"of_which_currently_forests_km\" real,\n \"pct_forests\" text,\n \"habitat_type\" text\n);\n\nQuestion: When middle prut valley is the land formation what is the highest of which currently forests, km\u00b2 ?" }, { "role": "assistant", "content": "SELECT MAX(\"of_which_currently_forests_km\") FROM \"natural_habitat\" WHERE \"land_formation\"='Middle Prut Valley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"natural_habitat\" (\n \"land_formation\" text,\n \"area_km\" real,\n \"of_which_currently_forests_km\" real,\n \"pct_forests\" text,\n \"habitat_type\" text\n);\n\nQuestion: When 312 is of which currently forests, km\u00b2 what is the land formation? " }, { "role": "assistant", "content": "SELECT \"land_formation\" FROM \"natural_habitat\" WHERE \"of_which_currently_forests_km\"=312;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19236587_4\" (\n \"series_no\" real,\n \"season_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_k_viewers_million\" text\n);\n\nQuestion: When did the episode titled \"The Fashion Show\" air for the first time?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_19236587_4\" WHERE \"title\"='\\\"The Fashion Show\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19236587_4\" (\n \"series_no\" real,\n \"season_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_k_viewers_million\" text\n);\n\nQuestion: What's the series number of the episode with season number 2?" }, { "role": "assistant", "content": "SELECT MIN(\"series_no\") FROM \"table1_19236587_4\" WHERE \"season_no\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19236587_4\" (\n \"series_no\" real,\n \"season_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_k_viewers_million\" text\n);\n\nQuestion: What's the series number of the episode seen by 2.43 million viewers in the UK?" }, { "role": "assistant", "content": "SELECT \"series_no\" FROM \"table1_19236587_4\" WHERE \"u_k_viewers_million\"='2.43';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19236587_4\" (\n \"series_no\" real,\n \"season_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_k_viewers_million\" text\n);\n\nQuestion: How many different original air dates does the episode with series number 13 have?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_19236587_4\" WHERE \"series_no\"=13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19229713_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the number for viewers being 1.87" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"table1_19229713_4\" WHERE \"u_s_viewers_million\"='1.87';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19229713_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the production code for viewers for 1.69" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_19229713_4\" WHERE \"u_s_viewers_million\"='1.69';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19246_2\" (\n \"carrier\" text,\n \"standard\" text,\n \"frequency\" text,\n \"down\" text,\n \"up\" text,\n \"launch_date_dd_mm_yyyy\" text\n);\n\nQuestion: whare are al of the launche dates where th carrier is orange and the up is 5.76 mbit/s" }, { "role": "assistant", "content": "SELECT \"launch_date_dd_mm_yyyy\" FROM \"table1_19246_2\" WHERE \"up\"='5.76 Mbit/s' AND \"carrier\"='Orange';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final\" (\n \"draw\" real,\n \"country\" text,\n \"language\" text,\n \"artist\" text,\n \"song\" text,\n \"english_translation\" text,\n \"result\" text\n);\n\nQuestion: With the country of Sweden and the result is out, what is the song?" }, { "role": "assistant", "content": "SELECT \"song\" FROM \"final\" WHERE \"result\"='Out' AND \"country\"='Sweden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final\" (\n \"draw\" real,\n \"country\" text,\n \"language\" text,\n \"artist\" text,\n \"song\" text,\n \"english_translation\" text,\n \"result\" text\n);\n\nQuestion: If the English translation is hello girl, what was the language?" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"final\" WHERE \"english_translation\"='Hello girl';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19246_1\" (\n \"carrier\" text,\n \"standard\" text,\n \"frequency\" text,\n \"connection_speed\" text,\n \"launch_date_dd_mm_yyyy\" text\n);\n\nQuestion: What was the connection speed when launched on 07.06.2005?" }, { "role": "assistant", "content": "SELECT \"connection_speed\" FROM \"table1_19246_1\" WHERE \"launch_date_dd_mm_yyyy\"='07.06.2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19246_1\" (\n \"carrier\" text,\n \"standard\" text,\n \"frequency\" text,\n \"connection_speed\" text,\n \"launch_date_dd_mm_yyyy\" text\n);\n\nQuestion: When the carrier is idc, what are the frequencies?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"table1_19246_1\" WHERE \"carrier\"='IDC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19246_1\" (\n \"carrier\" text,\n \"standard\" text,\n \"frequency\" text,\n \"connection_speed\" text,\n \"launch_date_dd_mm_yyyy\" text\n);\n\nQuestion: When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"carrier\") FROM \"table1_19246_1\" WHERE \"frequency\"='900MHz and 1800MHz' AND \"launch_date_dd_mm_yyyy\"='14.09.2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19246_1\" (\n \"carrier\" text,\n \"standard\" text,\n \"frequency\" text,\n \"connection_speed\" text,\n \"launch_date_dd_mm_yyyy\" text\n);\n\nQuestion: How many standards are there, when the launch date was 17.04.2006?" }, { "role": "assistant", "content": "SELECT COUNT(\"standard\") FROM \"table1_19246_1\" WHERE \"launch_date_dd_mm_yyyy\"='17.04.2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"fiscal_year\" real,\n \"2_car_sets\" real,\n \"3_car_sets\" real,\n \"4_car_sets\" real,\n \"6_car_sets\" real,\n \"8_car_sets\" real,\n \"total_vehicles\" real\n);\n\nQuestion: Name the 2 car sets for 622 " }, { "role": "assistant", "content": "SELECT \"2_car_sets\" FROM \"production\" WHERE \"total_vehicles\"=622;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"fiscal_year\" real,\n \"2_car_sets\" real,\n \"3_car_sets\" real,\n \"4_car_sets\" real,\n \"6_car_sets\" real,\n \"8_car_sets\" real,\n \"total_vehicles\" real\n);\n\nQuestion: Name the most 3 car sets" }, { "role": "assistant", "content": "SELECT MAX(\"3_car_sets\") FROM \"production\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"fiscal_year\" real,\n \"2_car_sets\" real,\n \"3_car_sets\" real,\n \"4_car_sets\" real,\n \"6_car_sets\" real,\n \"8_car_sets\" real,\n \"total_vehicles\" real\n);\n\nQuestion: Name the 4 car sets for 6 car sets being 44" }, { "role": "assistant", "content": "SELECT MIN(\"4_car_sets\") FROM \"production\" WHERE \"6_car_sets\"=44;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"fiscal_year\" real,\n \"2_car_sets\" real,\n \"3_car_sets\" real,\n \"4_car_sets\" real,\n \"6_car_sets\" real,\n \"8_car_sets\" real,\n \"total_vehicles\" real\n);\n\nQuestion: Name the least 4 car sets" }, { "role": "assistant", "content": "SELECT MIN(\"4_car_sets\") FROM \"production\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19264489_1\" (\n \"version\" text,\n \"code_name\" text,\n \"release_date\" text,\n \"desktops\" text,\n \"servers\" text,\n \"kernel_version\" text\n);\n\nQuestion: What is the code name of the OS with Kernel version 2.6.27?" }, { "role": "assistant", "content": "SELECT \"code_name\" FROM \"table1_19264489_1\" WHERE \"kernel_version\"='2.6.27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19264489_1\" (\n \"version\" text,\n \"code_name\" text,\n \"release_date\" text,\n \"desktops\" text,\n \"servers\" text,\n \"kernel_version\" text\n);\n\nQuestion: When was the release date of the operating system with kernel version 2.6.31?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"table1_19264489_1\" WHERE \"kernel_version\"='2.6.31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19264489_1\" (\n \"version\" text,\n \"code_name\" text,\n \"release_date\" text,\n \"desktops\" text,\n \"servers\" text,\n \"kernel_version\" text\n);\n\nQuestion: What is the status of the desktop version of the OS with kernel version 2.6.31?" }, { "role": "assistant", "content": "SELECT \"desktops\" FROM \"table1_19264489_1\" WHERE \"kernel_version\"='2.6.31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_19264489_1\" (\n \"version\" text,\n \"code_name\" text,\n \"release_date\" text,\n \"desktops\" text,\n \"servers\" text,\n \"kernel_version\" text\n);\n\nQuestion: How many servers have a kernel version 3.11?" }, { "role": "assistant", "content": "SELECT COUNT(\"servers\") FROM \"table1_19264489_1\" WHERE \"kernel_version\"='3.11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cultural_and_ethnic_composition\" (\n \"self_identification\" text,\n \"moldovan_census\" real,\n \"pct_core_moldova\" text,\n \"transnistrian_census\" real,\n \"pct_transnistria_bender\" text,\n \"total\" real,\n \"pct\" text\n);\n\nQuestion: Name the % for core moldova being 4.36%" }, { "role": "assistant", "content": "SELECT \"pct\" FROM \"cultural_and_ethnic_composition\" WHERE \"pct_core_moldova\"='4.36%';" } ]