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 \"tunnels\" (\n \"no\" real,\n \"name\" text,\n \"mi_from_kingston\" text,\n \"km_from_kingston\" text,\n \"parish\" text,\n \"length_feet\" real,\n \"length_meters\" text\n);\n\nQuestion: When the railroad length is 362 feet how many miles is it from kingston? " }, { "role": "assistant", "content": "SELECT \"mi_from_kingston\" FROM \"tunnels\" WHERE \"length_feet\"=362;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tunnels\" (\n \"no\" real,\n \"name\" text,\n \"mi_from_kingston\" text,\n \"km_from_kingston\" text,\n \"parish\" text,\n \"length_feet\" real,\n \"length_meters\" text\n);\n\nQuestion: Which parishes have the highworth railroad?" }, { "role": "assistant", "content": "SELECT \"parish\" FROM \"tunnels\" WHERE \"name\"='Highworth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tunnels\" (\n \"no\" real,\n \"name\" text,\n \"mi_from_kingston\" text,\n \"km_from_kingston\" text,\n \"parish\" text,\n \"length_feet\" real,\n \"length_meters\" text\n);\n\nQuestion: Which railroad is 112.6 kilometers from kingston? " }, { "role": "assistant", "content": "SELECT \"name\" FROM \"tunnels\" WHERE \"km_from_kingston\"='112.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the most number for new england blazers" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"game_log\" WHERE \"opponent\"='New England Blazers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the most attendance" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"game_log\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the most attendance for number 4" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"game_log\" WHERE \"num\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What is the preliminary average when the semifinal average is 8.834 (3) ?" }, { "role": "assistant", "content": "SELECT \"preliminary_average\" FROM \"final_competition\" WHERE \"semifinal_average\"='8.834 (3)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What is the interview when preliminary average is 8.662 (3) ?" }, { "role": "assistant", "content": "SELECT \"interview\" FROM \"final_competition\" WHERE \"preliminary_average\"='8.662 (3)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What state has a semifinal average of 8.538 (8) ?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"final_competition\" WHERE \"semifinal_average\"='8.538 (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What state has an interview of 8.313 (8) ?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"final_competition\" WHERE \"interview\"='8.313 (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What is the semifinal average where the preliminary average is 9.084 (1) ?" }, { "role": "assistant", "content": "SELECT \"semifinal_average\" FROM \"final_competition\" WHERE \"preliminary_average\"='9.084 (1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What is the swimsuit when evening gown is 8.774 (6) ?" }, { "role": "assistant", "content": "SELECT \"swimsuit\" FROM \"final_competition\" WHERE \"evening_gown\"='8.774 (6)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278602_1\" (\n \"danish_name\" text,\n \"english_name\" text,\n \"seat_of_administration\" text,\n \"largest_city\" text,\n \"population_january_1_2008\" real,\n \"area_km\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: What is the population density of the Capital Region of Denmark?" }, { "role": "assistant", "content": "SELECT \"pop_density_per_km\" FROM \"table1_16278602_1\" WHERE \"english_name\"='Capital Region of Denmark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278602_1\" (\n \"danish_name\" text,\n \"english_name\" text,\n \"seat_of_administration\" text,\n \"largest_city\" text,\n \"population_january_1_2008\" real,\n \"area_km\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: In the region where Roskilde is the largest city, what is the seat of administration?" }, { "role": "assistant", "content": "SELECT \"seat_of_administration\" FROM \"table1_16278602_1\" WHERE \"largest_city\"='Roskilde';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278602_1\" (\n \"danish_name\" text,\n \"english_name\" text,\n \"seat_of_administration\" text,\n \"largest_city\" text,\n \"population_january_1_2008\" real,\n \"area_km\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: What is the minimum population of the region in which Roskilde is the largest city?" }, { "role": "assistant", "content": "SELECT MIN(\"population_january_1_2008\") FROM \"table1_16278602_1\" WHERE \"largest_city\"='Roskilde';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: How many languages for the 2001 (74th) awards?" }, { "role": "assistant", "content": "SELECT COUNT(\"language_s\") FROM \"submissions\" WHERE \"year_ceremony\"='2001 (74th)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"language_s\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What was the result for the 2009 (82nd) awards?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"submissions\" WHERE \"year_ceremony\"='2009 (82nd)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16255245_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director_s\" text,\n \"result\" text\n);\n\nQuestion: Name the original title for the counterfeiters" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"table1_16255245_1\" WHERE \"film_title_used_in_nomination\"='The Counterfeiters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16255245_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director_s\" text,\n \"result\" text\n);\n\nQuestion: Name the year for spiele leben" }, { "role": "assistant", "content": "SELECT \"year_ceremony\" FROM \"table1_16255245_1\" WHERE \"original_title\"='Spiele Leben';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16255245_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director_s\" text,\n \"result\" text\n);\n\nQuestion: Name the film title for wohin und zur\u00fcck - welcome in vienna" }, { "role": "assistant", "content": "SELECT \"film_title_used_in_nomination\" FROM \"table1_16255245_1\" WHERE \"original_title\"='Wohin und zur\u00fcck - Welcome in Vienna';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_of_afghanistan\" (\n \"province\" text,\n \"map_num\" real,\n \"iso_3166_2_af\" text,\n \"centers\" text,\n \"population\" real,\n \"area_km\" real,\n \"language\" text,\n \"notes\" text,\n \"u_n_region\" text\n);\n\nQuestion: Name the language for kunar" }, { "role": "assistant", "content": "SELECT \"language\" FROM \"provinces_of_afghanistan\" WHERE \"province\"='Kunar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_of_afghanistan\" (\n \"province\" text,\n \"map_num\" real,\n \"iso_3166_2_af\" text,\n \"centers\" text,\n \"population\" real,\n \"area_km\" real,\n \"language\" text,\n \"notes\" text,\n \"u_n_region\" text\n);\n\nQuestion: Name the notes for samangan" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"provinces_of_afghanistan\" WHERE \"province\"='Samangan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_of_afghanistan\" (\n \"province\" text,\n \"map_num\" real,\n \"iso_3166_2_af\" text,\n \"centers\" text,\n \"population\" real,\n \"area_km\" real,\n \"language\" text,\n \"notes\" text,\n \"u_n_region\" text\n);\n\nQuestion: Name the un region for 3314000 population" }, { "role": "assistant", "content": "SELECT \"u_n_region\" FROM \"provinces_of_afghanistan\" WHERE \"population\"=3314000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_of_afghanistan\" (\n \"province\" text,\n \"map_num\" real,\n \"iso_3166_2_af\" text,\n \"centers\" text,\n \"population\" real,\n \"area_km\" real,\n \"language\" text,\n \"notes\" text,\n \"u_n_region\" text\n);\n\nQuestion: Name the area for map # 24" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"provinces_of_afghanistan\" WHERE \"map_num\"=24;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"provinces_of_afghanistan\" (\n \"province\" text,\n \"map_num\" real,\n \"iso_3166_2_af\" text,\n \"centers\" text,\n \"population\" real,\n \"area_km\" real,\n \"language\" text,\n \"notes\" text,\n \"u_n_region\" text\n);\n\nQuestion: Name the un region for 378000 population" }, { "role": "assistant", "content": "SELECT \"u_n_region\" FROM \"provinces_of_afghanistan\" WHERE \"population\"=378000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278825_1\" (\n \"name_of_county\" text,\n \"county_seat\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density\" real,\n \"towns_villages\" real\n);\n\nQuestion: NJame the total number of population for towns/villages for 217" }, { "role": "assistant", "content": "SELECT COUNT(\"population\") FROM \"table1_16278825_1\" WHERE \"towns_villages\"=217;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278825_1\" (\n \"name_of_county\" text,\n \"county_seat\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density\" real,\n \"towns_villages\" real\n);\n\nQuestion: Name the towns/villages for budapest" }, { "role": "assistant", "content": "SELECT \"towns_villages\" FROM \"table1_16278825_1\" WHERE \"county_seat\"='Budapest';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278825_1\" (\n \"name_of_county\" text,\n \"county_seat\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density\" real,\n \"towns_villages\" real\n);\n\nQuestion: Name the least area for vas" }, { "role": "assistant", "content": "SELECT MIN(\"area_km\") FROM \"table1_16278825_1\" WHERE \"name_of_county\"='Vas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"solheim_cup_record\" (\n \"year\" text,\n \"total_matches\" real,\n \"total_w_l_h\" text,\n \"singles_w_l_h\" text,\n \"foursomes_w_l_h\" text,\n \"fourballs_w_l_h\" text,\n \"points_won\" text,\n \"points_pct\" text\n);\n\nQuestion: When the year was 1992, what were the points won?" }, { "role": "assistant", "content": "SELECT \"points_won\" FROM \"solheim_cup_record\" WHERE \"year\"='1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"solheim_cup_record\" (\n \"year\" text,\n \"total_matches\" real,\n \"total_w_l_h\" text,\n \"singles_w_l_h\" text,\n \"foursomes_w_l_h\" text,\n \"fourballs_w_l_h\" text,\n \"points_won\" text,\n \"points_pct\" text\n);\n\nQuestion: When the foursome was w-l-h is 1\u20130\u20130 won w/ p. creamer 3&2, what was the points %?" }, { "role": "assistant", "content": "SELECT \"points_pct\" FROM \"solheim_cup_record\" WHERE \"foursomes_w_l_h\"='1\u20130\u20130 won w/ P. Creamer 3&2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"solheim_cup_record\" (\n \"year\" text,\n \"total_matches\" real,\n \"total_w_l_h\" text,\n \"singles_w_l_h\" text,\n \"foursomes_w_l_h\" text,\n \"fourballs_w_l_h\" text,\n \"points_won\" text,\n \"points_pct\" text\n);\n\nQuestion: What was the foursome's record in 2002?" }, { "role": "assistant", "content": "SELECT \"foursomes_w_l_h\" FROM \"solheim_cup_record\" WHERE \"year\"='2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"title\" text,\n \"series\" text,\n \"release\" text,\n \"featuring\" text,\n \"writer\" text,\n \"director\" text,\n \"length\" text,\n \"timeline\" text,\n \"release_date\" text\n);\n\nQuestion: What was the length time of the 3.5 release?" }, { "role": "assistant", "content": "SELECT \"length\" FROM \"external_links\" WHERE \"release\"='3.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"title\" text,\n \"series\" text,\n \"release\" text,\n \"featuring\" text,\n \"writer\" text,\n \"director\" text,\n \"length\" text,\n \"timeline\" text,\n \"release_date\" text\n);\n\nQuestion: What is the title of the 1.1 realease?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"external_links\" WHERE \"release\"='1.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"title\" text,\n \"series\" text,\n \"release\" text,\n \"featuring\" text,\n \"writer\" text,\n \"director\" text,\n \"length\" text,\n \"timeline\" text,\n \"release_date\" text\n);\n\nQuestion: Under what series was the 3.5 release?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"external_links\" WHERE \"release\"='3.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"title\" text,\n \"series\" text,\n \"release\" text,\n \"featuring\" text,\n \"writer\" text,\n \"director\" text,\n \"length\" text,\n \"timeline\" text,\n \"release_date\" text\n);\n\nQuestion: What is the releases number under Season 2?" }, { "role": "assistant", "content": "SELECT \"release\" FROM \"external_links\" WHERE \"timeline\"='Season 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"title\" text,\n \"series\" text,\n \"release\" text,\n \"featuring\" text,\n \"writer\" text,\n \"director\" text,\n \"length\" text,\n \"timeline\" text,\n \"release_date\" text\n);\n\nQuestion: Who was the director of the audiobook released August 31, 2009?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"external_links\" WHERE \"release_date\"='August 31, 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278894_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: What is the capital of Bungoma county?" }, { "role": "assistant", "content": "SELECT \"capital\" FROM \"table1_16278894_1\" WHERE \"county\"='Bungoma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278894_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: What is the capital of Uasin Gishu county?" }, { "role": "assistant", "content": "SELECT \"capital\" FROM \"table1_16278894_1\" WHERE \"county\"='Uasin Gishu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278894_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: In what former province was the area 694.9 kilometers squared?" }, { "role": "assistant", "content": "SELECT \"former_province\" FROM \"table1_16278894_1\" WHERE \"area_km_2\"='694.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278894_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: How many numbers were listed under area with a population of 240075 as of 2009?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km_2\") FROM \"table1_16278894_1\" WHERE \"population_census_2009\"=240075;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278894_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: What was the population in Kisumu county as of 2009?" }, { "role": "assistant", "content": "SELECT \"population_census_2009\" FROM \"table1_16278894_1\" WHERE \"county\"='Kisumu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16278894_1\" (\n \"code\" real,\n \"county\" text,\n \"former_province\" text,\n \"area_km_2\" text,\n \"population_census_2009\" real,\n \"capital\" text\n);\n\nQuestion: What capital's county had a population of 730129 as of 2009?" }, { "role": "assistant", "content": "SELECT \"capital\" FROM \"table1_16278894_1\" WHERE \"population_census_2009\"=730129;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"tournament_location\" text,\n \"purse_us\" real,\n \"winners_share\" text\n);\n\nQuestion: Name the dates for margin of victory being 5 strokes" }, { "role": "assistant", "content": "SELECT COUNT(\"dates\") FROM \"winners\" WHERE \"margin_of_victory\"='5 strokes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"tournament_location\" text,\n \"purse_us\" real,\n \"winners_share\" text\n);\n\nQuestion: Name the champion for london hunt and country club ( london , on )" }, { "role": "assistant", "content": "SELECT \"champion\" FROM \"winners\" WHERE \"tournament_location\"='London Hunt and Country Club ( London , ON )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What was the evening gown score for the woman who scored 7.600 (9) in her interview?" }, { "role": "assistant", "content": "SELECT \"evening_gown\" FROM \"final_competition\" WHERE \"interview\"='7.600 (9)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What was the swimsuit score for the one who had a semifinal average of 8.759 (5)?" }, { "role": "assistant", "content": "SELECT \"swimsuit\" FROM \"final_competition\" WHERE \"semifinal_average\"='8.759 (5)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What was the evening gown score for the one who had a preliminary average of 8.121 (8)?" }, { "role": "assistant", "content": "SELECT \"evening_gown\" FROM \"final_competition\" WHERE \"preliminary_average\"='8.121 (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What was the preliminary average for the one who had a semifinal average of 8.966 (3)?" }, { "role": "assistant", "content": "SELECT \"preliminary_average\" FROM \"final_competition\" WHERE \"semifinal_average\"='8.966 (3)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What was the preliminary average for Miss Mississippi?" }, { "role": "assistant", "content": "SELECT \"preliminary_average\" FROM \"final_competition\" WHERE \"state\"='Mississippi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_competition\" (\n \"state\" text,\n \"preliminary_average\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"semifinal_average\" text\n);\n\nQuestion: What was the preliminary average for Miss Maryland?" }, { "role": "assistant", "content": "SELECT \"preliminary_average\" FROM \"final_competition\" WHERE \"state\"='Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16331025_2\" (\n \"dates_mdy\" text,\n \"position\" real,\n \"gross_sales\" text,\n \"tickets_sold_available\" text,\n \"sellout_pct\" text\n);\n\nQuestion: What day was the gross sales $1,271,451?" }, { "role": "assistant", "content": "SELECT \"dates_mdy\" FROM \"table1_16331025_2\" WHERE \"gross_sales\"='$1,271,451';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16331025_2\" (\n \"dates_mdy\" text,\n \"position\" real,\n \"gross_sales\" text,\n \"tickets_sold_available\" text,\n \"sellout_pct\" text\n);\n\nQuestion: What is the sellout % when the gross sales is $1,727,400?" }, { "role": "assistant", "content": "SELECT \"sellout_pct\" FROM \"table1_16331025_2\" WHERE \"gross_sales\"='$1,727,400';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16331025_2\" (\n \"dates_mdy\" text,\n \"position\" real,\n \"gross_sales\" text,\n \"tickets_sold_available\" text,\n \"sellout_pct\" text\n);\n\nQuestion: Who many dates are in position 9 and the sellout is 81%?" }, { "role": "assistant", "content": "SELECT COUNT(\"dates_mdy\") FROM \"table1_16331025_2\" WHERE \"position\"=9 AND \"sellout_pct\"='81%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16331025_2\" (\n \"dates_mdy\" text,\n \"position\" real,\n \"gross_sales\" text,\n \"tickets_sold_available\" text,\n \"sellout_pct\" text\n);\n\nQuestion: What is the position of tickets sold/available when the sellout is 82%?" }, { "role": "assistant", "content": "SELECT COUNT(\"tickets_sold_available\") FROM \"table1_16331025_2\" WHERE \"sellout_pct\"='82%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finite_forms_of_garnu_to_do\" (\n \"simple_present_future\" text,\n \"probable_future\" text,\n \"simple_past\" text,\n \"past_habitual\" text,\n \"injunctive\" text,\n \"imperative\" text\n);\n\nQuestion: Name the probably futures for \u0917\u0930\u0947\u0938\u094d gares 'may you do'" }, { "role": "assistant", "content": "SELECT \"probable_future\" FROM \"finite_forms_of_garnu_to_do\" WHERE \"imperative\"='\u0917\u0930\u0947\u0938\u094d gares ''may you do''';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finite_forms_of_garnu_to_do\" (\n \"simple_present_future\" text,\n \"probable_future\" text,\n \"simple_past\" text,\n \"past_habitual\" text,\n \"injunctive\" text,\n \"imperative\" text\n);\n\nQuestion: Name the imperative for \u0917\u0930\u093f\u0938\u094d garis 'you did'" }, { "role": "assistant", "content": "SELECT \"imperative\" FROM \"finite_forms_of_garnu_to_do\" WHERE \"past_habitual\"='\u0917\u0930\u093f\u0938\u094d garis ''you did''';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finite_forms_of_garnu_to_do\" (\n \"simple_present_future\" text,\n \"probable_future\" text,\n \"simple_past\" text,\n \"past_habitual\" text,\n \"injunctive\" text,\n \"imperative\" text\n);\n\nQuestion: Name the past habitual for \u0917\u0930\u094d\u091b\u0938\u094d garchas 'you (will) do'" }, { "role": "assistant", "content": "SELECT \"past_habitual\" FROM \"finite_forms_of_garnu_to_do\" WHERE \"probable_future\"='\u0917\u0930\u094d\u091b\u0938\u094d garchas ''you (will) do''';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finite_forms_of_garnu_to_do\" (\n \"simple_present_future\" text,\n \"probable_future\" text,\n \"simple_past\" text,\n \"past_habitual\" text,\n \"injunctive\" text,\n \"imperative\" text\n);\n\nQuestion: Name the past habitual for \u0917\u0930\u094d\u091b garcha 'he does'" }, { "role": "assistant", "content": "SELECT \"past_habitual\" FROM \"finite_forms_of_garnu_to_do\" WHERE \"probable_future\"='\u0917\u0930\u094d\u091b garcha ''he does''';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finite_forms_of_garnu_to_do\" (\n \"simple_present_future\" text,\n \"probable_future\" text,\n \"simple_past\" text,\n \"past_habitual\" text,\n \"injunctive\" text,\n \"imperative\" text\n);\n\nQuestion: Name the injunctive for \u0917\u0930\u094d\u092f\u094b garyo 'he did'" }, { "role": "assistant", "content": "SELECT \"injunctive\" FROM \"finite_forms_of_garnu_to_do\" WHERE \"past_habitual\"='\u0917\u0930\u094d\u092f\u094b garyo ''he did''';" } ]
[ { "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_10\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many years did he have an average finish of 29.2?" }, { "role": "assistant", "content": "SELECT COUNT(\"winnings\") FROM \"nascar_sprint_cup_series\" WHERE \"avg_finish\"='29.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_10\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many years did he finish in 59th?" }, { "role": "assistant", "content": "SELECT COUNT(\"avg_start\") FROM \"nascar_sprint_cup_series\" WHERE \"position\"='59th';" } ]
[ { "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_10\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many instances do you see the year 2003?" }, { "role": "assistant", "content": "SELECT COUNT(\"starts\") FROM \"nascar_sprint_cup_series\" WHERE \"year\"=2003;" } ]
[ { "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_10\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the maximum number of top 10s when he finished in 63rd?" }, { "role": "assistant", "content": "SELECT MAX(\"top_10\") FROM \"nascar_sprint_cup_series\" WHERE \"position\"='63rd';" } ]
[ { "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_10\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What are the average start(s) when he had $1,663,868?" }, { "role": "assistant", "content": "SELECT \"avg_start\" FROM \"nascar_sprint_cup_series\" WHERE \"winnings\"='$1,663,868';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_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: What was the position in the season when the average start is 9.2?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nascar_camping_world_truck_series\" WHERE \"avg_start\"='9.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_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: What is the average start for the season with $7,220 in winnings?" }, { "role": "assistant", "content": "SELECT \"avg_start\" FROM \"nascar_camping_world_truck_series\" WHERE \"winnings\"='$7,220';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_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: What are the winnings for the season where the average finish is 11.1?" }, { "role": "assistant", "content": "SELECT \"winnings\" FROM \"nascar_camping_world_truck_series\" WHERE \"avg_finish\"='11.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_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: What is the maximum number of wins in the season with 22 starts?" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"nascar_camping_world_truck_series\" WHERE \"starts\"=22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"team\" text,\n \"acc_regular_season\" text,\n \"acc_pct\" text,\n \"acc_home\" text,\n \"acc_road\" text,\n \"all_games\" text,\n \"all_games_pct\" text,\n \"all_home\" text,\n \"all_road\" text,\n \"all_neutral\" text\n);\n\nQuestion: What is the all home when all games percentage is .484?" }, { "role": "assistant", "content": "SELECT \"all_home\" FROM \"final_standings\" WHERE \"all_games_pct\"='.484';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"team\" text,\n \"acc_regular_season\" text,\n \"acc_pct\" text,\n \"acc_home\" text,\n \"acc_road\" text,\n \"all_games\" text,\n \"all_games_pct\" text,\n \"all_home\" text,\n \"all_road\" text,\n \"all_neutral\" text\n);\n\nQuestion: What is the acc percentage when all games percentage is .484?" }, { "role": "assistant", "content": "SELECT \"acc_pct\" FROM \"final_standings\" WHERE \"all_games_pct\"='.484';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"team\" text,\n \"acc_regular_season\" text,\n \"acc_pct\" text,\n \"acc_home\" text,\n \"acc_road\" text,\n \"all_games\" text,\n \"all_games_pct\" text,\n \"all_home\" text,\n \"all_road\" text,\n \"all_neutral\" text\n);\n\nQuestion: What is the all games for Maryland?" }, { "role": "assistant", "content": "SELECT \"all_games\" FROM \"final_standings\" WHERE \"team\"='Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_domestic_passenger_fares_for_cap\" (\n \"year\" real,\n \"lansing_lan\" text,\n \"detroit_dtw\" text,\n \"grand_rapids_grr\" text,\n \"flint_fnt\" text,\n \"kalamazoo_azo\" text,\n \"saginaw_mbs\" text\n);\n\nQuestion: What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?" }, { "role": "assistant", "content": "SELECT \"kalamazoo_azo\" FROM \"average_domestic_passenger_fares_for_cap\" WHERE \"saginaw_mbs\"='$481.39';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_domestic_passenger_fares_for_cap\" (\n \"year\" real,\n \"lansing_lan\" text,\n \"detroit_dtw\" text,\n \"grand_rapids_grr\" text,\n \"flint_fnt\" text,\n \"kalamazoo_azo\" text,\n \"saginaw_mbs\" text\n);\n\nQuestion: When Lansing's fare is $433.59, what is the Detroit fare?" }, { "role": "assistant", "content": "SELECT \"detroit_dtw\" FROM \"average_domestic_passenger_fares_for_cap\" WHERE \"lansing_lan\"='$433.59';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_domestic_passenger_fares_for_cap\" (\n \"year\" real,\n \"lansing_lan\" text,\n \"detroit_dtw\" text,\n \"grand_rapids_grr\" text,\n \"flint_fnt\" text,\n \"kalamazoo_azo\" text,\n \"saginaw_mbs\" text\n);\n\nQuestion: At a Saginaw fare of $470.47, what is the fare to Lansing?" }, { "role": "assistant", "content": "SELECT \"lansing_lan\" FROM \"average_domestic_passenger_fares_for_cap\" WHERE \"saginaw_mbs\"='$470.47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_domestic_passenger_fares_for_cap\" (\n \"year\" real,\n \"lansing_lan\" text,\n \"detroit_dtw\" text,\n \"grand_rapids_grr\" text,\n \"flint_fnt\" text,\n \"kalamazoo_azo\" text,\n \"saginaw_mbs\" text\n);\n\nQuestion: During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?" }, { "role": "assistant", "content": "SELECT \"kalamazoo_azo\" FROM \"average_domestic_passenger_fares_for_cap\" WHERE \"lansing_lan\"='$433.59';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_domestic_passenger_fares_for_cap\" (\n \"year\" real,\n \"lansing_lan\" text,\n \"detroit_dtw\" text,\n \"grand_rapids_grr\" text,\n \"flint_fnt\" text,\n \"kalamazoo_azo\" text,\n \"saginaw_mbs\" text\n);\n\nQuestion: When Saginaw's fare is $470.47, what was the fare to Grand Rapids?" }, { "role": "assistant", "content": "SELECT \"grand_rapids_grr\" FROM \"average_domestic_passenger_fares_for_cap\" WHERE \"saginaw_mbs\"='$470.47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_domestic_passenger_fares_for_cap\" (\n \"year\" real,\n \"lansing_lan\" text,\n \"detroit_dtw\" text,\n \"grand_rapids_grr\" text,\n \"flint_fnt\" text,\n \"kalamazoo_azo\" text,\n \"saginaw_mbs\" text\n);\n\nQuestion: When Grand Rapids's fare was $377.29, what is the fare to Detroit?" }, { "role": "assistant", "content": "SELECT \"detroit_dtw\" FROM \"average_domestic_passenger_fares_for_cap\" WHERE \"grand_rapids_grr\"='$377.29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: Name the maximum enrollment for niagara university" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"membership\" WHERE \"school\"='Niagara University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: Name the primary conference for st. bonaventure university" }, { "role": "assistant", "content": "SELECT \"primary_conference\" FROM \"membership\" WHERE \"school\"='St. Bonaventure University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: Name the total number of nicknames for st. bonaventure university" }, { "role": "assistant", "content": "SELECT COUNT(\"nickname\") FROM \"membership\" WHERE \"school\"='St. Bonaventure University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: Name the total number of affiliation for enrollment being 14898" }, { "role": "assistant", "content": "SELECT COUNT(\"affiliation\") FROM \"membership\" WHERE \"enrollment\"=14898;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"team\" text,\n \"acc_regular_season\" text,\n \"acc_pct\" text,\n \"acc_home\" text,\n \"acc_road\" text,\n \"all_games\" text,\n \"all_games_pct\" text,\n \"all_home\" text,\n \"all_road\" text,\n \"all_neutral\" text\n);\n\nQuestion: what was the ACC home game record for the team who's ACC winning percentage was .813?" }, { "role": "assistant", "content": "SELECT \"acc_home\" FROM \"final_standings\" WHERE \"acc_pct\"='.813';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16384596_4\" (\n \"number_in_series\" real,\n \"broadcast_order\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed the totle \"tjockare \u00e4n vatten\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_16384596_4\" WHERE \"title\"='\\\"Tjockare \u00e4n vatten\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16384596_4\" (\n \"number_in_series\" real,\n \"broadcast_order\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: Who wrote the episode for s02 e07?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_16384596_4\" WHERE \"broadcast_order\"='S02 E07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16384596_4\" (\n \"number_in_series\" real,\n \"broadcast_order\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed the episode for s02 e08?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_16384596_4\" WHERE \"broadcast_order\"='S02 E08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16384596_4\" (\n \"number_in_series\" real,\n \"broadcast_order\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed the episode with the production code 209?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_16384596_4\" WHERE \"production_code\"=209;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"joined_tschl\" real,\n \"home_arena\" text,\n \"capacity\" real,\n \"team_website\" text\n);\n\nQuestion: How many schools have the team nickname bobcats? " }, { "role": "assistant", "content": "SELECT COUNT(\"institution\") FROM \"current_teams\" WHERE \"team_nickname\"='Bobcats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"joined_tschl\" real,\n \"home_arena\" text,\n \"capacity\" real,\n \"team_website\" text\n);\n\nQuestion: Which city has the team nickname bearcats? " }, { "role": "assistant", "content": "SELECT \"location\" FROM \"current_teams\" WHERE \"team_nickname\"='Bearcats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"joined_tschl\" real,\n \"home_arena\" text,\n \"capacity\" real,\n \"team_website\" text\n);\n\nQuestion: What year did the university of Pittsburgh school join the hockey league? " }, { "role": "assistant", "content": "SELECT \"joined_tschl\" FROM \"current_teams\" WHERE \"institution\"='University of Pittsburgh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"joined_tschl\" real,\n \"home_arena\" text,\n \"capacity\" real,\n \"team_website\" text\n);\n\nQuestion: What's the earliest year anybody joined the hockey league? " }, { "role": "assistant", "content": "SELECT MIN(\"joined_tschl\") FROM \"current_teams\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"joined_tschl\" real,\n \"home_arena\" text,\n \"capacity\" real,\n \"team_website\" text\n);\n\nQuestion: Which city has the cincinnati hockey website?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"current_teams\" WHERE \"team_website\"='Cincinnati Hockey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"joined_tschl\" real,\n \"home_arena\" text,\n \"capacity\" real,\n \"team_website\" text\n);\n\nQuestion: For the flyers, what's the minimum capacity? " }, { "role": "assistant", "content": "SELECT MIN(\"capacity\") FROM \"current_teams\" WHERE \"team_nickname\"='Flyers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"area\" text,\n \"population\" real,\n \"density\" text\n);\n\nQuestion: Name the number of pinyin where simplified is \u6cb3\u897f\u533a" }, { "role": "assistant", "content": "SELECT COUNT(\"pinyin\") FROM \"subdivisions\" WHERE \"simplified\"='\u6cb3\u897f\u533a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"area\" text,\n \"population\" real,\n \"density\" text\n);\n\nQuestion: Name the pinyin for where population is 44617" }, { "role": "assistant", "content": "SELECT \"pinyin\" FROM \"subdivisions\" WHERE \"population\"=44617;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"area\" text,\n \"population\" real,\n \"density\" text\n);\n\nQuestion: Name the pinyin for 487 area" }, { "role": "assistant", "content": "SELECT \"pinyin\" FROM \"subdivisions\" WHERE \"area\"='487';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"area\" text,\n \"population\" real,\n \"density\" text\n);\n\nQuestion: Name the traditional for population 74779" }, { "role": "assistant", "content": "SELECT \"traditional\" FROM \"subdivisions\" WHERE \"population\"=74779;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"english_name\" text,\n \"simplified\" text,\n \"traditional\" text,\n \"pinyin\" text,\n \"area\" text,\n \"population\" real,\n \"density\" text\n);\n\nQuestion: Name the english name for \u5d16\u57ce\u9547" }, { "role": "assistant", "content": "SELECT \"english_name\" FROM \"subdivisions\" WHERE \"simplified\"='\u5d16\u57ce\u9547';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Name the date for richmond" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"1st_round\" WHERE \"away_team\"='Richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Name the most crowd for saturday 16 february" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"1st_round\" WHERE \"date\"='Saturday 16 February';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What home team played the West Coast away team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_of_16\" WHERE \"away_team\"='West Coast';" } ]