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 \"2000_01_season_as_a_five_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 \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: In what race was the weight in kg 55 and the winner/2nd 1st - Jim and Tonic?"
},
{
"role": "assistant",
"content": "SELECT \"race\" FROM \"2000_01_season_as_a_five_year_old\" WHERE \"weight_kg\"='55' AND \"winner_2nd\"='1st - Jim And Tonic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2000_01_season_as_a_five_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 \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What was the distance in the Manikato Stakes race?"
},
{
"role": "assistant",
"content": "SELECT \"distance\" FROM \"2000_01_season_as_a_five_year_old\" WHERE \"race\"='Manikato Stakes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2000_01_season_as_a_five_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 \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?"
},
{
"role": "assistant",
"content": "SELECT \"distance\" FROM \"2000_01_season_as_a_five_year_old\" WHERE \"weight_kg\"='56' AND \"winner_2nd\"='2nd - Fritz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001_02_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\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What date was the Doncaster race? "
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2001_02_season_as_a_six_year_old\" WHERE \"race\"='Doncaster';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" real,\n \"air_date\" text,\n \"team_swash\" text,\n \"team_guest_captain\" text,\n \"team_coxy\" text\n);\n\nQuestion: What was the air date when the team guest captain was john bishop?"
},
{
"role": "assistant",
"content": "SELECT \"air_date\" FROM \"series_1\" WHERE \"team_guest_captain\"='John Bishop';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" real,\n \"air_date\" text,\n \"team_swash\" text,\n \"team_guest_captain\" text,\n \"team_coxy\" text\n);\n\nQuestion: Who was the team guest captain for episode 2?"
},
{
"role": "assistant",
"content": "SELECT \"team_guest_captain\" FROM \"series_1\" WHERE \"episode\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" real,\n \"air_date\" text,\n \"team_swash\" text,\n \"team_guest_captain\" text,\n \"team_coxy\" text\n);\n\nQuestion: Who was the team swash when the team guest captain was gail porter?"
},
{
"role": "assistant",
"content": "SELECT \"team_swash\" FROM \"series_1\" WHERE \"team_guest_captain\"='Gail Porter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" real,\n \"air_date\" text,\n \"team_swash\" text,\n \"team_guest_captain\" text,\n \"team_coxy\" text\n);\n\nQuestion: How many entries are there for team coxy for the air date of 24 january 2010 and team guest captain of gail porter?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team_coxy\") FROM \"series_1\" WHERE \"air_date\"='24 January 2010' AND \"team_guest_captain\"='Gail Porter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" real,\n \"air_date\" text,\n \"team_swash\" text,\n \"team_guest_captain\" text,\n \"team_coxy\" text\n);\n\nQuestion: How many entries are shown for an air date when the team guest captain was stephen k amos?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"air_date\") FROM \"series_1\" WHERE \"team_guest_captain\"='Stephen K Amos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1998_99_season_as_a_three_year_old\" (\n \"result\" text,\n \"date\" text,\n \"race\" text,\n \"venue\" text,\n \"group\" text,\n \"distance\" text,\n \"weight_kg\" text,\n \"jockey\" text,\n \"winner_2nd\" text\n);\n\nQuestion: What group was sunline in when he was at moonee valley?"
},
{
"role": "assistant",
"content": "SELECT \"group\" FROM \"1998_99_season_as_a_three_year_old\" WHERE \"venue\"='Moonee Valley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"player\" text,\n \"nationality\" text,\n \"finals\" real,\n \"win_loss\" text,\n \"year_s\" text\n);\n\nQuestion: What was the win-loss record for the player from Switzerland? "
},
{
"role": "assistant",
"content": "SELECT \"win_loss\" FROM \"men\" WHERE \"nationality\"='Switzerland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25820584_7\" (\n \"player\" text,\n \"nationality\" text,\n \"finals\" real,\n \"win_loss\" text,\n \"year_s\" text\n);\n\nQuestion: What was the win loss record the lady who appeard in 1969?"
},
{
"role": "assistant",
"content": "SELECT \"win_loss\" FROM \"table1_25820584_7\" WHERE \"year_s\"='1969';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25820584_7\" (\n \"player\" text,\n \"nationality\" text,\n \"finals\" real,\n \"win_loss\" text,\n \"year_s\" text\n);\n\nQuestion: What player(s) appeared in 1969?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"table1_25820584_7\" WHERE \"year_s\"='1969';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_results\" (\n \"position\" text,\n \"name\" text,\n \"nationality\" text,\n \"event_1_super_yoke\" text,\n \"event_2_power_stairs\" text,\n \"event_3_car_lift\" text,\n \"event_4_farmers_walk\" text,\n \"event_5_truck_pull\" text,\n \"event_6_fingals_fingers\" text,\n \"event_7_atlas_stones\" text\n);\n\nQuestion: Name the name for norway nationality"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"final_results\" WHERE \"nationality\"='Norway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25830834_2\" (\n \"series_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 series # of \"tanarak\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"series_num\") FROM \"table1_25830834_2\" WHERE \"title\"='\\\"Tanarak\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25830834_2\" (\n \"series_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: Who wrote the episode with the production code 2j5153?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_25830834_2\" WHERE \"production_code\"='2J5153';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"observations_made_of_the_hdf_s_with_the_\" (\n \"camera\" text,\n \"filter\" text,\n \"wavelength\" text,\n \"total_exposure_time\" text,\n \"exposures\" real\n);\n\nQuestion: what is the filter when the wavelength is 222mm (k-band)?"
},
{
"role": "assistant",
"content": "SELECT \"filter\" FROM \"observations_made_of_the_hdf_s_with_the_\" WHERE \"wavelength\"='222mm (K-band)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"observations_made_of_the_hdf_s_with_the_\" (\n \"camera\" text,\n \"filter\" text,\n \"wavelength\" text,\n \"total_exposure_time\" text,\n \"exposures\" real\n);\n\nQuestion: how many times was the exposures 53?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"camera\") FROM \"observations_made_of_the_hdf_s_with_the_\" WHERE \"exposures\"=53;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"observations_made_of_the_hdf_s_with_the_\" (\n \"camera\" text,\n \"filter\" text,\n \"wavelength\" text,\n \"total_exposure_time\" text,\n \"exposures\" real\n);\n\nQuestion: how many exposures where there when the total exposure time is 105,000s?"
},
{
"role": "assistant",
"content": "SELECT \"exposures\" FROM \"observations_made_of_the_hdf_s_with_the_\" WHERE \"total_exposure_time\"='105,000s';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"observations_made_of_the_hdf_s_with_the_\" (\n \"camera\" text,\n \"filter\" text,\n \"wavelength\" text,\n \"total_exposure_time\" text,\n \"exposures\" real\n);\n\nQuestion: what is the camera used when the wavelength is 814nm (i-band)?"
},
{
"role": "assistant",
"content": "SELECT \"camera\" FROM \"observations_made_of_the_hdf_s_with_the_\" WHERE \"wavelength\"='814nm (I-band)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2582519_6\" (\n \"total_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who is the director of \"new girls\"?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"table1_2582519_6\" WHERE \"title\"='\\\"New Girls\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2582519_6\" (\n \"total_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the title of the show with director Paul Annett?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_2582519_6\" WHERE \"director\"='Paul Annett';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"date\" text,\n \"location\" text,\n \"fight\" text,\n \"division\" text,\n \"titles\" text,\n \"rematch\" text,\n \"tv\" text,\n \"promoter\" text,\n \"notes\" text\n);\n\nQuestion: What was the title for the Undercard of Stevenson/Bellew?"
},
{
"role": "assistant",
"content": "SELECT \"titles\" FROM \"2013\" WHERE \"notes\"='Undercard of Stevenson/Bellew';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"date\" text,\n \"location\" text,\n \"fight\" text,\n \"division\" text,\n \"titles\" text,\n \"rematch\" text,\n \"tv\" text,\n \"promoter\" text,\n \"notes\" text\n);\n\nQuestion: What are the titles for the November 9 Super Bantamweight division?"
},
{
"role": "assistant",
"content": "SELECT \"titles\" FROM \"2013\" WHERE \"date\"='November 9' AND \"division\"='Super Bantamweight';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"date\" text,\n \"location\" text,\n \"fight\" text,\n \"division\" text,\n \"titles\" text,\n \"rematch\" text,\n \"tv\" text,\n \"promoter\" text,\n \"notes\" text\n);\n\nQuestion: How many notes are there for the Devon Alexander vs. Shawn Porter fight?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"notes\") FROM \"2013\" WHERE \"fight\"='Devon Alexander vs. Shawn Porter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"date\" text,\n \"location\" text,\n \"fight\" text,\n \"division\" text,\n \"titles\" text,\n \"rematch\" text,\n \"tv\" text,\n \"promoter\" text,\n \"notes\" text\n);\n\nQuestion: What division was on HBO PPV?"
},
{
"role": "assistant",
"content": "SELECT \"division\" FROM \"2013\" WHERE \"tv\"='HBO PPV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"date\" text,\n \"location\" text,\n \"fight\" text,\n \"division\" text,\n \"titles\" text,\n \"rematch\" text,\n \"tv\" text,\n \"promoter\" text,\n \"notes\" text\n);\n\nQuestion: Where was the Undercard of Stevenson/Bellew?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"2013\" WHERE \"notes\"='Undercard of Stevenson/Bellew';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013\" (\n \"date\" text,\n \"location\" text,\n \"fight\" text,\n \"division\" text,\n \"titles\" text,\n \"rematch\" text,\n \"tv\" text,\n \"promoter\" text,\n \"notes\" text\n);\n\nQuestion: What was the division number for Verona, USA?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"division\") FROM \"2013\" WHERE \"location\"='Verona, USA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25839957_5\" (\n \"graphics\" text,\n \"launch\" real,\n \"market\" text,\n \"cpu\" text,\n \"code_name\" text,\n \"device_id\" real,\n \"core_clock_m_hz\" text,\n \"execution_units\" real,\n \"shader_model\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_cl\" text,\n \"memory_bandwidth_gb_s\" text,\n \"dvmt_mb\" real,\n \"cvt_hd\" text,\n \"qsv\" text\n);\n\nQuestion: What mobile markets have cvt hd?"
},
{
"role": "assistant",
"content": "SELECT \"cvt_hd\" FROM \"table1_25839957_5\" WHERE \"market\"='Mobile';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25839957_5\" (\n \"graphics\" text,\n \"launch\" real,\n \"market\" text,\n \"cpu\" text,\n \"code_name\" text,\n \"device_id\" real,\n \"core_clock_m_hz\" text,\n \"execution_units\" real,\n \"shader_model\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_cl\" text,\n \"memory_bandwidth_gb_s\" text,\n \"dvmt_mb\" real,\n \"cvt_hd\" text,\n \"qsv\" text\n);\n\nQuestion: How many opengl have the ironlake ( clarkdale ) code name?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"open_gl\") FROM \"table1_25839957_5\" WHERE \"code_name\"='Ironlake ( Clarkdale )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25839957_5\" (\n \"graphics\" text,\n \"launch\" real,\n \"market\" text,\n \"cpu\" text,\n \"code_name\" text,\n \"device_id\" real,\n \"core_clock_m_hz\" text,\n \"execution_units\" real,\n \"shader_model\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_cl\" text,\n \"memory_bandwidth_gb_s\" text,\n \"dvmt_mb\" real,\n \"cvt_hd\" text,\n \"qsv\" text\n);\n\nQuestion: What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?"
},
{
"role": "assistant",
"content": "SELECT \"core_clock_m_hz\" FROM \"table1_25839957_5\" WHERE \"memory_bandwidth_gb_s\"='21.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25839957_5\" (\n \"graphics\" text,\n \"launch\" real,\n \"market\" text,\n \"cpu\" text,\n \"code_name\" text,\n \"device_id\" real,\n \"core_clock_m_hz\" text,\n \"execution_units\" real,\n \"shader_model\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_cl\" text,\n \"memory_bandwidth_gb_s\" text,\n \"dvmt_mb\" real,\n \"cvt_hd\" text,\n \"qsv\" text\n);\n\nQuestion: What's the minimum number of execution units?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"execution_units\") FROM \"table1_25839957_5\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25839957_5\" (\n \"graphics\" text,\n \"launch\" real,\n \"market\" text,\n \"cpu\" text,\n \"code_name\" text,\n \"device_id\" real,\n \"core_clock_m_hz\" text,\n \"execution_units\" real,\n \"shader_model\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_cl\" text,\n \"memory_bandwidth_gb_s\" text,\n \"dvmt_mb\" real,\n \"cvt_hd\" text,\n \"qsv\" text\n);\n\nQuestion: How many shader models have a 900 core clock ( mhz )?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"shader_model\") FROM \"table1_25839957_5\" WHERE \"core_clock_m_hz\"='900';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2588674_1\" (\n \"village\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"region\" text,\n \"pop_density\" real\n);\n\nQuestion: What is the population for the place with an area of 2.33 km2?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_2000_census\") FROM \"table1_2588674_1\" WHERE \"area_km\"='2.33';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2588674_1\" (\n \"village\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"region\" text,\n \"pop_density\" real\n);\n\nQuestion: How many places named asan-maina?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"region\") FROM \"table1_2588674_1\" WHERE \"village\"='Asan-Maina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2588674_1\" (\n \"village\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"region\" text,\n \"pop_density\" real\n);\n\nQuestion: How many places named mongmong-toto-maite?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"region\") FROM \"table1_2588674_1\" WHERE \"village\"='Mongmong-Toto-Maite';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2588674_1\" (\n \"village\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"region\" text,\n \"pop_density\" real\n);\n\nQuestion: What is the population density of mongmong-toto-maite?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pop_density\") FROM \"table1_2588674_1\" WHERE \"village\"='Mongmong-Toto-Maite';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2588674_1\" (\n \"village\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"region\" text,\n \"pop_density\" real\n);\n\nQuestion: What village has an area of 27.19 km2?"
},
{
"role": "assistant",
"content": "SELECT \"village\" FROM \"table1_2588674_1\" WHERE \"area_km\"='27.19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2588674_1\" (\n \"village\" text,\n \"area_km\" text,\n \"population_2000_census\" real,\n \"region\" text,\n \"pop_density\" real\n);\n\nQuestion: What region is inarajan in?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"table1_2588674_1\" WHERE \"village\"='Inarajan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"pos\" real,\n \"team\" text,\n \"07_a_pts\" real,\n \"08_c_pts\" real,\n \"08_a_pts\" real,\n \"09_c_pts\" real,\n \"09_a_pts\" real,\n \"10_c_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real,\n \"avg\" text\n);\n\nQuestion: How many POS when the average is 1.8529?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pos\") FROM \"relegation\" WHERE \"avg\"='1.8529';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"pos\" real,\n \"team\" text,\n \"07_a_pts\" real,\n \"08_c_pts\" real,\n \"08_a_pts\" real,\n \"09_c_pts\" real,\n \"09_a_pts\" real,\n \"10_c_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real,\n \"avg\" text\n);\n\nQuestion: How many 07 A points for the team with 1.4902 average?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"07_a_pts\") FROM \"relegation\" WHERE \"avg\"='1.4902';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"pos\" real,\n \"team\" text,\n \"07_a_pts\" real,\n \"08_c_pts\" real,\n \"08_a_pts\" real,\n \"09_c_pts\" real,\n \"09_a_pts\" real,\n \"10_c_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real,\n \"avg\" text\n);\n\nQuestion: How many figures for 08 A points for the team with 1.1863 average?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"08_a_pts\") FROM \"relegation\" WHERE \"avg\"='1.1863';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"pos\" real,\n \"team\" text,\n \"07_a_pts\" real,\n \"08_c_pts\" real,\n \"08_a_pts\" real,\n \"09_c_pts\" real,\n \"09_a_pts\" real,\n \"10_c_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real,\n \"avg\" text\n);\n\nQuestion: What is the largest number of 10 C points for a team with 39 total points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"10_c_pts\") FROM \"relegation\" WHERE \"total_pts\"=39;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25851971_1\" (\n \"no\" 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: Who directed the episode with 4.82 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_25851971_1\" WHERE \"u_s_viewers_million\"='4.82';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25851971_1\" (\n \"no\" 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: Who directed the episode that had a production code of 2j5457?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_25851971_1\" WHERE \"production_code\"='2J5457';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25851971_1\" (\n \"no\" 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 episode number was written by Anthony Sparks?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"table1_25851971_1\" WHERE \"written_by\"='Anthony Sparks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25851971_1\" (\n \"no\" 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 was the production code of the episode written by Anthony Sparks?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_25851971_1\" WHERE \"written_by\"='Anthony Sparks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25851971_1\" (\n \"no\" 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 episode number was written by Karin Gist?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no\") FROM \"table1_25851971_1\" WHERE \"written_by\"='Karin Gist';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25920798_2\" (\n \"episode\" real,\n \"reward\" text,\n \"leader_battle\" text,\n \"immunity\" text,\n \"individual_immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the leader battle for 4-3 vote"
},
{
"role": "assistant",
"content": "SELECT \"leader_battle\" FROM \"table1_25920798_2\" WHERE \"vote\"='4-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25920798_2\" (\n \"episode\" real,\n \"reward\" text,\n \"leader_battle\" text,\n \"immunity\" text,\n \"individual_immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the finish for 4-4"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"table1_25920798_2\" WHERE \"vote\"='4-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25920798_2\" (\n \"episode\" real,\n \"reward\" text,\n \"leader_battle\" text,\n \"immunity\" text,\n \"individual_immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the left day 9 finish for eliminated"
},
{
"role": "assistant",
"content": "SELECT \"eliminated\" FROM \"table1_25920798_2\" WHERE \"finish\"='Left Day 9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25920798_2\" (\n \"episode\" real,\n \"reward\" text,\n \"leader_battle\" text,\n \"immunity\" text,\n \"individual_immunity\" text,\n \"eliminated\" text,\n \"vote\" text,\n \"finish\" text\n);\n\nQuestion: Name the leader battle for plamen"
},
{
"role": "assistant",
"content": "SELECT \"leader_battle\" FROM \"table1_25920798_2\" WHERE \"eliminated\"='Plamen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"seniors\" text,\n \"juniors\" text,\n \"women\" text,\n \"status\" text,\n \"founded\" real,\n \"affiliation_population\" text,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What institution is represented by the lady saints?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"member_schools\" WHERE \"women\"='Lady Saints';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"seniors\" text,\n \"juniors\" text,\n \"women\" text,\n \"status\" text,\n \"founded\" real,\n \"affiliation_population\" text,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What status of school is the school represented by the baby olympians?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"member_schools\" WHERE \"juniors\"='Baby Olympians';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"seniors\" text,\n \"juniors\" text,\n \"women\" text,\n \"status\" text,\n \"founded\" real,\n \"affiliation_population\" text,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What year was the school with green and white colors founded?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"founded\") FROM \"member_schools\" WHERE \"color\"='Green and White';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_schools\" (\n \"institution\" text,\n \"seniors\" text,\n \"juniors\" text,\n \"women\" text,\n \"status\" text,\n \"founded\" real,\n \"affiliation_population\" text,\n \"color\" text,\n \"location\" text\n);\n\nQuestion: What status of school is informatics international college?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"member_schools\" WHERE \"institution\"='Informatics International College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2592308_1\" (\n \"country\" text,\n \"name_of_bullion_coin\" text,\n \"fineness\" text,\n \"denominations_gold_weight\" text,\n \"years_of_mintage\" text\n);\n\nQuestion: How many catagories for denominations does Austria have? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"denominations_gold_weight\") FROM \"table1_2592308_1\" WHERE \"country\"='Austria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2592308_1\" (\n \"country\" text,\n \"name_of_bullion_coin\" text,\n \"fineness\" text,\n \"denominations_gold_weight\" text,\n \"years_of_mintage\" text\n);\n\nQuestion: What are all the denominations for China?"
},
{
"role": "assistant",
"content": "SELECT \"denominations_gold_weight\" FROM \"table1_2592308_1\" WHERE \"country\"='China';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: what is the name of award when the name of film is sana keithel?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_award\" FROM \"table1_25926120_7\" WHERE \"name_of_film\"='Sana Keithel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: what is the name of award when the awardee(s) is elangbam natasha?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_award\" FROM \"table1_25926120_7\" WHERE \"awardee_s\"='Elangbam Natasha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: how many times is the name of film narmeen?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"cash_prize\") FROM \"table1_25926120_7\" WHERE \"name_of_film\"='Narmeen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: what is the language when the name of award is best editing?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"table1_25926120_7\" WHERE \"name_of_award\"='Best Editing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: who are the awardees when the name of award is best agricultural film?"
},
{
"role": "assistant",
"content": "SELECT \"awardee_s\" FROM \"table1_25926120_7\" WHERE \"name_of_award\"='Best Agricultural Film';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: what is the language when the awardee is re-recordist : mateen ahmad?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"table1_25926120_7\" WHERE \"awardee_s\"='Re-recordist : Mateen Ahmad';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25947046_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the highest Jews and others 1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"jews_and_others_1\") FROM \"table1_25947046_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25947046_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the lowest jews and others 1 for the localities 11?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"jews_and_others_1\") FROM \"table1_25947046_1\" WHERE \"localities\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25947046_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the arabs when the annual population growth rate is 1.7%?"
},
{
"role": "assistant",
"content": "SELECT \"arabs\" FROM \"table1_25947046_1\" WHERE \"annual_population_growth_rate\"='1.7%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25947046_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the lowest total when arabs is 4000?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"table1_25947046_1\" WHERE \"arabs\"=4000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_3\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: Who won best actress?"
},
{
"role": "assistant",
"content": "SELECT \"awardee_s\" FROM \"table1_25926120_3\" WHERE \"name_of_award\"='Best Actress';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_3\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: How many cash prizes were given for the hindi language film jodhaa akbar?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"cash_prize\") FROM \"table1_25926120_3\" WHERE \"language\"='Hindi' AND \"name_of_film\"='Jodhaa Akbar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_3\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: How many films were in hindi?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name_of_film\") FROM \"table1_25926120_3\" WHERE \"language\"='Hindi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_3\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: How many films were in assamese?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name_of_film\") FROM \"table1_25926120_3\" WHERE \"language\"='Assamese';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25926120_3\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: Who won best actor?"
},
{
"role": "assistant",
"content": "SELECT \"awardee_s\" FROM \"table1_25926120_3\" WHERE \"name_of_award\"='Best Actor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: Name the winner for jan 24"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"date\"='Jan 24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: Name the total number of dates for toshiba classic"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"tournament_results\" WHERE \"tournament\"='Toshiba Classic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: Name the tournament for dominican republic"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"tournament_results\" WHERE \"location\"='Dominican Republic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: Name the total number of winners for allianz championship"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"winner\") FROM \"tournament_results\" WHERE \"tournament\"='Allianz Championship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: Name the 1st prize for senior pga championship"
},
{
"role": "assistant",
"content": "SELECT \"1st_prize\" FROM \"tournament_results\" WHERE \"tournament\"='Senior PGA Championship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contestants\" (\n \"celebrity\" text,\n \"known_for\" text,\n \"age\" real,\n \"professional\" text,\n \"series\" real,\n \"place\" text,\n \"dances\" real,\n \"highest_score\" real,\n \"lowest_score\" real,\n \"aggregate\" real,\n \"average\" text\n);\n\nQuestion: What was the place for the celebrity whose aggregate was 35? "
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"list_of_contestants\" WHERE \"aggregate\"=35;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contestants\" (\n \"celebrity\" text,\n \"known_for\" text,\n \"age\" real,\n \"professional\" text,\n \"series\" real,\n \"place\" text,\n \"dances\" real,\n \"highest_score\" real,\n \"lowest_score\" real,\n \"aggregate\" real,\n \"average\" text\n);\n\nQuestion: How many dances did John Barnes have? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"dances\") FROM \"list_of_contestants\" WHERE \"celebrity\"='John Barnes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contestants\" (\n \"celebrity\" text,\n \"known_for\" text,\n \"age\" real,\n \"professional\" text,\n \"series\" real,\n \"place\" text,\n \"dances\" real,\n \"highest_score\" real,\n \"lowest_score\" real,\n \"aggregate\" real,\n \"average\" text\n);\n\nQuestion: What is the age of the celebrity who had a 402 aggregate? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"age\") FROM \"list_of_contestants\" WHERE \"aggregate\"=402;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contestants\" (\n \"celebrity\" text,\n \"known_for\" text,\n \"age\" real,\n \"professional\" text,\n \"series\" real,\n \"place\" text,\n \"dances\" real,\n \"highest_score\" real,\n \"lowest_score\" real,\n \"aggregate\" real,\n \"average\" text\n);\n\nQuestion: What was the aggregate for Ricky Groves?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"aggregate\") FROM \"list_of_contestants\" WHERE \"celebrity\"='Ricky Groves';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contestants\" (\n \"celebrity\" text,\n \"known_for\" text,\n \"age\" real,\n \"professional\" text,\n \"series\" real,\n \"place\" text,\n \"dances\" real,\n \"highest_score\" real,\n \"lowest_score\" real,\n \"aggregate\" real,\n \"average\" text\n);\n\nQuestion: What was the aggregate for the celebrity who was known for being a singer and had 7 dances?"
},
{
"role": "assistant",
"content": "SELECT \"aggregate\" FROM \"list_of_contestants\" WHERE \"dances\"=7 AND \"known_for\"='Singer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe\" (\n \"countries_and_territories\" text,\n \"conditions_of_access\" text,\n \"length_of_stay_permitted\" text,\n \"fee_if_applicable\" text,\n \"access_using_a_croatian_identity_card\" text\n);\n\nQuestion: What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement?"
},
{
"role": "assistant",
"content": "SELECT \"conditions_of_access\" FROM \"europe\" WHERE \"access_using_a_croatian_identity_card\"='Yes' AND \"length_of_stay_permitted\"='Freedom of movement';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe\" (\n \"countries_and_territories\" text,\n \"conditions_of_access\" text,\n \"length_of_stay_permitted\" text,\n \"fee_if_applicable\" text,\n \"access_using_a_croatian_identity_card\" text\n);\n\nQuestion: Can one access the Jersey territory using a Croatian identity card?"
},
{
"role": "assistant",
"content": "SELECT \"access_using_a_croatian_identity_card\" FROM \"europe\" WHERE \"countries_and_territories\"='Jersey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe\" (\n \"countries_and_territories\" text,\n \"conditions_of_access\" text,\n \"length_of_stay_permitted\" text,\n \"fee_if_applicable\" text,\n \"access_using_a_croatian_identity_card\" text\n);\n\nQuestion: What is the fee (if applicable) for Norway?"
},
{
"role": "assistant",
"content": "SELECT \"fee_if_applicable\" FROM \"europe\" WHERE \"countries_and_territories\"='Norway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe\" (\n \"countries_and_territories\" text,\n \"conditions_of_access\" text,\n \"length_of_stay_permitted\" text,\n \"fee_if_applicable\" text,\n \"access_using_a_croatian_identity_card\" text\n);\n\nQuestion: What is the permitted length of stay in the Jersey territory?"
},
{
"role": "assistant",
"content": "SELECT \"length_of_stay_permitted\" FROM \"europe\" WHERE \"countries_and_territories\"='Jersey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe\" (\n \"countries_and_territories\" text,\n \"conditions_of_access\" text,\n \"length_of_stay_permitted\" text,\n \"fee_if_applicable\" text,\n \"access_using_a_croatian_identity_card\" text\n);\n\nQuestion: Can one access the Faroe Islands using a Croatian identity card?"
},
{
"role": "assistant",
"content": "SELECT \"access_using_a_croatian_identity_card\" FROM \"europe\" WHERE \"countries_and_territories\"='Faroe Islands';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"europe\" (\n \"countries_and_territories\" text,\n \"conditions_of_access\" text,\n \"length_of_stay_permitted\" text,\n \"fee_if_applicable\" text,\n \"access_using_a_croatian_identity_card\" text\n);\n\nQuestion: What length of stay is permitted in the European Union?"
},
{
"role": "assistant",
"content": "SELECT \"length_of_stay_permitted\" FROM \"europe\" WHERE \"countries_and_territories\"='European Union';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2596811_12\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What was the complement for the unit that had 3 off 37 men killed?"
},
{
"role": "assistant",
"content": "SELECT \"complement\" FROM \"table1_2596811_12\" WHERE \"killed\"='3 off 37 men';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2596811_12\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What is the number of wounded figures associated with a complement of 22 off 637 men?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wounded\") FROM \"table1_2596811_12\" WHERE \"complement\"='22 off 637 men';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2596811_12\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What is the number of commanders that had 0 off 63 men killed?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"commander\") FROM \"table1_2596811_12\" WHERE \"killed\"='0 off 63 men';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2596811_12\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded?"
},
{
"role": "assistant",
"content": "SELECT \"complement\" FROM \"table1_2596811_12\" WHERE \"killed\"='0 off 3 men' AND \"wounded\"='0 off 2 men';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"key_characteristics_of_the_major_climati\" (\n \"region\" text,\n \"land_area_km_2\" text,\n \"rainfall_by_depth_mm_year\" real,\n \"rainfall_by_volume_km_3_year\" text,\n \"surface_run_off_km_3_year\" text,\n \"infiltration_km_3_year\" text,\n \"evapotranspiration_km_3_year\" text\n);\n\nQuestion: How many regions had rainfall infiltration (km 3/year) of 9.3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rainfall_by_depth_mm_year\") FROM \"key_characteristics_of_the_major_climati\" WHERE \"infiltration_km_3_year\"='9.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"key_characteristics_of_the_major_climati\" (\n \"region\" text,\n \"land_area_km_2\" text,\n \"rainfall_by_depth_mm_year\" real,\n \"rainfall_by_volume_km_3_year\" text,\n \"surface_run_off_km_3_year\" text,\n \"infiltration_km_3_year\" text,\n \"evapotranspiration_km_3_year\" text\n);\n\nQuestion: What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527?"
},
{
"role": "assistant",
"content": "SELECT \"rainfall_by_volume_km_3_year\" FROM \"key_characteristics_of_the_major_climati\" WHERE \"rainfall_by_depth_mm_year\"=3527;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"key_characteristics_of_the_major_climati\" (\n \"region\" text,\n \"land_area_km_2\" text,\n \"rainfall_by_depth_mm_year\" real,\n \"rainfall_by_volume_km_3_year\" text,\n \"surface_run_off_km_3_year\" text,\n \"infiltration_km_3_year\" text,\n \"evapotranspiration_km_3_year\" text\n);\n\nQuestion: In Pacifico Central where the rainfall by depth (mm/year) was 2801 what was the rainfall by volume?"
},
{
"role": "assistant",
"content": "SELECT \"rainfall_by_volume_km_3_year\" FROM \"key_characteristics_of_the_major_climati\" WHERE \"rainfall_by_depth_mm_year\"=2801;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"key_characteristics_of_the_major_climati\" (\n \"region\" text,\n \"land_area_km_2\" text,\n \"rainfall_by_depth_mm_year\" real,\n \"rainfall_by_volume_km_3_year\" text,\n \"surface_run_off_km_3_year\" text,\n \"infiltration_km_3_year\" text,\n \"evapotranspiration_km_3_year\" text\n);\n\nQuestion: In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)?"
},
{
"role": "assistant",
"content": "SELECT \"evapotranspiration_km_3_year\" FROM \"key_characteristics_of_the_major_climati\" WHERE \"rainfall_by_volume_km_3_year\"='13.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"key_characteristics_of_the_major_climati\" (\n \"region\" text,\n \"land_area_km_2\" text,\n \"rainfall_by_depth_mm_year\" real,\n \"rainfall_by_volume_km_3_year\" text,\n \"surface_run_off_km_3_year\" text,\n \"infiltration_km_3_year\" text,\n \"evapotranspiration_km_3_year\" text\n);\n\nQuestion: In the Central region, what was the infiltration (km 3 /year)?"
},
{
"role": "assistant",
"content": "SELECT \"infiltration_km_3_year\" FROM \"key_characteristics_of_the_major_climati\" WHERE \"region\"='Central';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"key_characteristics_of_the_major_climati\" (\n \"region\" text,\n \"land_area_km_2\" text,\n \"rainfall_by_depth_mm_year\" real,\n \"rainfall_by_volume_km_3_year\" text,\n \"surface_run_off_km_3_year\" text,\n \"infiltration_km_3_year\" text,\n \"evapotranspiration_km_3_year\" text\n);\n\nQuestion: In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?"
},
{
"role": "assistant",
"content": "SELECT \"rainfall_by_depth_mm_year\" FROM \"key_characteristics_of_the_major_climati\" WHERE \"land_area_km_2\"='8,543.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many wins did Parsons have in the year where his winnings were $90,700? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"wins\") FROM \"nascar_sprint_cup_series\" WHERE \"winnings\"='$90,700';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.