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 \"table1_10470082_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"us_air_date\" text,\n \"storyteller\" text,\n \"villains\" text\n);\n\nQuestion: Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?" }, { "role": "assistant", "content": "SELECT COUNT(\"director\") FROM \"table1_10470082_4\" WHERE \"num\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10470082_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"us_air_date\" text,\n \"storyteller\" text,\n \"villains\" text\n);\n\nQuestion: Who is the director of the episode whom Scott Peters is the writer?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_10470082_4\" WHERE \"writer\"='Scott Peters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10470082_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"us_air_date\" text,\n \"storyteller\" text,\n \"villains\" text\n);\n\nQuestion: Who is the villain in episode #7?" }, { "role": "assistant", "content": "SELECT \"villains\" FROM \"table1_10470082_4\" WHERE \"num\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10470082_8\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"us_air_date\" text,\n \"storyteller\" text,\n \"villains\" text\n);\n\nQuestion: Who wrote episode #1 in season 7?" }, { "role": "assistant", "content": "SELECT COUNT(\"writer\") FROM \"table1_10470082_8\" WHERE \"num\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10470082_8\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"us_air_date\" text,\n \"storyteller\" text,\n \"villains\" text\n);\n\nQuestion: When did the episode written by Jim Morris air?" }, { "role": "assistant", "content": "SELECT \"us_air_date\" FROM \"table1_10470082_8\" WHERE \"writer\"='Jim Morris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" real,\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: What was Datsun Twin 200's fastest lap?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"name\"='Datsun Twin 200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" real,\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: In the Datsun Twin 200 race, what was the fastest lap?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"name\"='Datsun Twin 200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" real,\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: What's the report for the True Value 500?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"race_results\" WHERE \"name\"='True Value 500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" real,\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: What was Johnny Rutherford's fastest lap while Al Unser was the pole position?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"winning_driver\"='Johnny Rutherford' AND \"pole_position\"='Al Unser';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"rd\" real,\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: What's the report on Penske Racing winning while the pole position was Al Unser?" }, { "role": "assistant", "content": "SELECT COUNT(\"report\") FROM \"race_results\" WHERE \"pole_position\"='Al Unser' AND \"winning_team\"='Penske Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_world_organization_of_the_scout\" (\n \"country\" text,\n \"membership_from_2010\" real,\n \"name_of_member_organization\" text,\n \"year_current_scouting_organization_joined_wosm\" text,\n \"year_member_organization_was_founded\" text,\n \"admits_boys_girls\" text\n);\n\nQuestion: Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"table_of_world_organization_of_the_scout\" WHERE \"year_current_scouting_organization_joined_wosm\"='1930' AND \"year_member_organization_was_founded\"='1926';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_world_organization_of_the_scout\" (\n \"country\" text,\n \"membership_from_2010\" real,\n \"name_of_member_organization\" text,\n \"year_current_scouting_organization_joined_wosm\" text,\n \"year_member_organization_was_founded\" text,\n \"admits_boys_girls\" text\n);\n\nQuestion: Does Venezuela admit only boys, only girls, or both?" }, { "role": "assistant", "content": "SELECT \"admits_boys_girls\" FROM \"table_of_world_organization_of_the_scout\" WHERE \"country\"='Venezuela';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_world_organization_of_the_scout\" (\n \"country\" text,\n \"membership_from_2010\" real,\n \"name_of_member_organization\" text,\n \"year_current_scouting_organization_joined_wosm\" text,\n \"year_member_organization_was_founded\" text,\n \"admits_boys_girls\" text\n);\n\nQuestion: Which organizations were founded in 1972, but became WOSM members until 1977?" }, { "role": "assistant", "content": "SELECT \"name_of_member_organization\" FROM \"table_of_world_organization_of_the_scout\" WHERE \"year_member_organization_was_founded\"='1972' AND \"year_current_scouting_organization_joined_wosm\"='1977';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_world_organization_of_the_scout\" (\n \"country\" text,\n \"membership_from_2010\" real,\n \"name_of_member_organization\" text,\n \"year_current_scouting_organization_joined_wosm\" text,\n \"year_member_organization_was_founded\" text,\n \"admits_boys_girls\" text\n);\n\nQuestion: Does the Scout Association of Hong Kong admit boys, girls, or both?" }, { "role": "assistant", "content": "SELECT \"admits_boys_girls\" FROM \"table_of_world_organization_of_the_scout\" WHERE \"name_of_member_organization\"='The Scout Association of Hong Kong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_of_world_organization_of_the_scout\" (\n \"country\" text,\n \"membership_from_2010\" real,\n \"name_of_member_organization\" text,\n \"year_current_scouting_organization_joined_wosm\" text,\n \"year_member_organization_was_founded\" text,\n \"admits_boys_girls\" text\n);\n\nQuestion: Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?" }, { "role": "assistant", "content": "SELECT \"admits_boys_girls\" FROM \"table_of_world_organization_of_the_scout\" WHERE \"year_member_organization_was_founded\"='1912' AND \"name_of_member_organization\"='The Ghana Scout Association';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_table_of_hp_laser_jet_4000_mo\" (\n \"model\" real,\n \"introduction\" text,\n \"discontinued\" text,\n \"cpu_speed\" text,\n \"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi\" text,\n \"print_speed_ppm\" text,\n \"standard_memory\" text,\n \"maximum_memory\" text\n);\n\nQuestion: What is the model number introduced May 1999?" }, { "role": "assistant", "content": "SELECT MAX(\"model\") FROM \"comparison_table_of_hp_laser_jet_4000_mo\" WHERE \"introduction\"='May 1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_table_of_hp_laser_jet_4000_mo\" (\n \"model\" real,\n \"introduction\" text,\n \"discontinued\" text,\n \"cpu_speed\" text,\n \"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi\" text,\n \"print_speed_ppm\" text,\n \"standard_memory\" text,\n \"maximum_memory\" text\n);\n\nQuestion: What is the print resolution (FPI) for December 2002?" }, { "role": "assistant", "content": "SELECT \"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi\" FROM \"comparison_table_of_hp_laser_jet_4000_mo\" WHERE \"introduction\"='December 2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_table_of_hp_laser_jet_4000_mo\" (\n \"model\" real,\n \"introduction\" text,\n \"discontinued\" text,\n \"cpu_speed\" text,\n \"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi\" text,\n \"print_speed_ppm\" text,\n \"standard_memory\" text,\n \"maximum_memory\" text\n);\n\nQuestion: What is the maximum memory for the model discontinued in November 2001?" }, { "role": "assistant", "content": "SELECT \"maximum_memory\" FROM \"comparison_table_of_hp_laser_jet_4000_mo\" WHERE \"discontinued\"='November 2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1053802_1\" (\n \"region_country\" text,\n \"local_title\" text,\n \"network\" text,\n \"winners\" text,\n \"main_presenters\" text\n);\n\nQuestion: What is main presenters of La Granja?" }, { "role": "assistant", "content": "SELECT \"main_presenters\" FROM \"table1_1053802_1\" WHERE \"local_title\"='La Granja';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1053802_1\" (\n \"region_country\" text,\n \"local_title\" text,\n \"network\" text,\n \"winners\" text,\n \"main_presenters\" text\n);\n\nQuestion: What is the main presenter of bulgaria?" }, { "role": "assistant", "content": "SELECT \"main_presenters\" FROM \"table1_1053802_1\" WHERE \"region_country\"='Bulgaria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1053802_1\" (\n \"region_country\" text,\n \"local_title\" text,\n \"network\" text,\n \"winners\" text,\n \"main_presenters\" text\n);\n\nQuestion: How many winners are there of farma?" }, { "role": "assistant", "content": "SELECT COUNT(\"winners\") FROM \"table1_1053802_1\" WHERE \"local_title\"='Farma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"swindon_town_career_details\" (\n \"season\" text,\n \"team\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"cup_apps\" real,\n \"cup_goals\" real\n);\n\nQuestion: What is the most cup goals for seasson 1911-12?" }, { "role": "assistant", "content": "SELECT MAX(\"cup_goals\") FROM \"swindon_town_career_details\" WHERE \"season\"='1911-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"swindon_town_career_details\" (\n \"season\" text,\n \"team\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"cup_apps\" real,\n \"cup_goals\" real\n);\n\nQuestion: What is the league apps for season 1923-24?" }, { "role": "assistant", "content": "SELECT \"league_apps\" FROM \"swindon_town_career_details\" WHERE \"season\"='1923-24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"swindon_town_career_details\" (\n \"season\" text,\n \"team\" text,\n \"league_apps\" real,\n \"league_goals\" real,\n \"cup_apps\" real,\n \"cup_goals\" real\n);\n\nQuestion: What is the team for season 1911-12?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"swindon_town_career_details\" WHERE \"season\"='1911-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"trivia_and_statistics\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"margin\" real,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: what's the minimum\u00a0attendance\u00a0with\u00a0score\u00a0 10.16 (76) \u2013 9.22 (76)" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"trivia_and_statistics\" WHERE \"score\"='10.16 (76) \u2013 9.22 (76)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"trivia_and_statistics\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"margin\" real,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: who's the\u00a0premier\u00a0with\u00a0in 1970" }, { "role": "assistant", "content": "SELECT \"premier\" FROM \"trivia_and_statistics\" WHERE \"season\"=1970;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"trivia_and_statistics\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"margin\" real,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: who are all the runner-up for premier in richmond" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"trivia_and_statistics\" WHERE \"premier\"='Richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"trivia_and_statistics\" (\n \"season\" real,\n \"premier\" text,\n \"runner_up\" text,\n \"score\" text,\n \"margin\" real,\n \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: what is the minimum attendance with score 8.16 (64) \u2013 8.12 (60)" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"trivia_and_statistics\" WHERE \"score\"='8.16 (64) \u2013 8.12 (60)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10568553_1\" (\n \"county\" text,\n \"location\" text,\n \"street_names\" text,\n \"milepost\" text,\n \"roads_intersected\" text,\n \"notes\" text\n);\n\nQuestion: How many mileposts are there on Anne Street?" }, { "role": "assistant", "content": "SELECT COUNT(\"milepost\") FROM \"table1_10568553_1\" WHERE \"street_names\"='Anne Street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10568553_1\" (\n \"county\" text,\n \"location\" text,\n \"street_names\" text,\n \"milepost\" text,\n \"roads_intersected\" text,\n \"notes\" text\n);\n\nQuestion: Which street is 12.2 miles long?" }, { "role": "assistant", "content": "SELECT \"street_names\" FROM \"table1_10568553_1\" WHERE \"milepost\"='12.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10568553_1\" (\n \"county\" text,\n \"location\" text,\n \"street_names\" text,\n \"milepost\" text,\n \"roads_intersected\" text,\n \"notes\" text\n);\n\nQuestion: Where does Route 24 intersect?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_10568553_1\" WHERE \"roads_intersected\"='Route 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10568553_1\" (\n \"county\" text,\n \"location\" text,\n \"street_names\" text,\n \"milepost\" text,\n \"roads_intersected\" text,\n \"notes\" text\n);\n\nQuestion: Where is milepost 12.8?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_10568553_1\" WHERE \"milepost\"='12.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"major_agricultural_products\" (\n \"commodity\" text,\n \"2001_02\" real,\n \"2002_03\" real,\n \"2003_04\" real,\n \"2004_05\" real,\n \"2005_06\" real,\n \"2006_07\" real\n);\n\nQuestion: What is the minimum amount for wool for 2001-02?" }, { "role": "assistant", "content": "SELECT MIN(\"2001_02\") FROM \"major_agricultural_products\" WHERE \"commodity\"='Wool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1057316_1\" (\n \"serial_number\" text,\n \"wheel_arrangement_whyte_notation\" text,\n \"build_date\" text,\n \"operational_owner_s\" text,\n \"disposition\" text\n);\n\nQuestion: Who were the operational owners during the construction date of April 1892?" }, { "role": "assistant", "content": "SELECT \"operational_owner_s\" FROM \"table1_1057316_1\" WHERE \"build_date\"='April 1892';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1057316_1\" (\n \"serial_number\" text,\n \"wheel_arrangement_whyte_notation\" text,\n \"build_date\" text,\n \"operational_owner_s\" text,\n \"disposition\" text\n);\n\nQuestion: Where can you find Colorado and Southern Railway #9?" }, { "role": "assistant", "content": "SELECT \"disposition\" FROM \"table1_1057316_1\" WHERE \"operational_owner_s\"='Colorado and Southern Railway #9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1057316_1\" (\n \"serial_number\" text,\n \"wheel_arrangement_whyte_notation\" text,\n \"build_date\" text,\n \"operational_owner_s\" text,\n \"disposition\" text\n);\n\nQuestion: What is the wheel arrangement for the train in Riverdale, Georgia?" }, { "role": "assistant", "content": "SELECT \"wheel_arrangement_whyte_notation\" FROM \"table1_1057316_1\" WHERE \"disposition\"='Riverdale, Georgia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1057316_1\" (\n \"serial_number\" text,\n \"wheel_arrangement_whyte_notation\" text,\n \"build_date\" text,\n \"operational_owner_s\" text,\n \"disposition\" text\n);\n\nQuestion: When was the train 2053 built?" }, { "role": "assistant", "content": "SELECT \"build_date\" FROM \"table1_1057316_1\" WHERE \"serial_number\"='2053';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1057316_1\" (\n \"serial_number\" text,\n \"wheel_arrangement_whyte_notation\" text,\n \"build_date\" text,\n \"operational_owner_s\" text,\n \"disposition\" text\n);\n\nQuestion: How many wheels does the train owned by Texas and New Orleans Railroad #319 have?" }, { "role": "assistant", "content": "SELECT COUNT(\"wheel_arrangement_whyte_notation\") FROM \"table1_1057316_1\" WHERE \"operational_owner_s\"='Texas and New Orleans Railroad #319';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"men_s_nickname\" text,\n \"women_s_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Which college has the men's nickname of the blazers?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"former_members\" WHERE \"men_s_nickname\"='Blazers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"men_s_nickname\" text,\n \"women_s_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Name the joined for the wolfpack women's nickname" }, { "role": "assistant", "content": "SELECT \"joined\" FROM \"former_members\" WHERE \"women_s_nickname\"='Wolfpack';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"men_s_nickname\" text,\n \"women_s_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Name the left of the Lady Pilots." }, { "role": "assistant", "content": "SELECT \"left\" FROM \"former_members\" WHERE \"women_s_nickname\"='Lady Pilots';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"men_s_nickname\" text,\n \"women_s_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Name the women's nickname when the enrollment is 1500 in mobile, Alabama." }, { "role": "assistant", "content": "SELECT \"women_s_nickname\" FROM \"former_members\" WHERE \"enrollment\"=1500 AND \"location\"='Mobile, Alabama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"men_s_nickname\" text,\n \"women_s_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Which conference is in Jackson, Mississippi?" }, { "role": "assistant", "content": "SELECT \"current_conference\" FROM \"former_members\" WHERE \"location\"='Jackson, Mississippi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"men_s_nickname\" text,\n \"women_s_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: What is the men's nickname at the school that has the lady wildcats women's nickname?" }, { "role": "assistant", "content": "SELECT \"men_s_nickname\" FROM \"former_members\" WHERE \"women_s_nickname\"='Lady Wildcats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"mens_nickname\" text,\n \"womens_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: What is the Mens Nickname for the member location of Jacksonville, florida?" }, { "role": "assistant", "content": "SELECT \"mens_nickname\" FROM \"current_members\" WHERE \"location\"='Jacksonville, Florida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"mens_nickname\" text,\n \"womens_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"current_members\" WHERE \"founded\"=1866 AND \"type\"='Private/(African Methodist)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"mens_nickname\" text,\n \"womens_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: That is the year founded for the institution location of Nashville, Tennessee?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"current_members\" WHERE \"location\"='Nashville, Tennessee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"mens_nickname\" text,\n \"womens_nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: What is the year the institution Tougaloo College joined?" }, { "role": "assistant", "content": "SELECT \"joined\" FROM \"current_members\" WHERE \"institution\"='Tougaloo College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?" }, { "role": "assistant", "content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='28 November 2007' AND \"replaced_by\"='Alex McLeish';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the date of appointment when the date of vacancy is 21 december 2007?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='21 December 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who replaced when team is wigan athletic?" }, { "role": "assistant", "content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"team\"='Wigan Athletic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the date of vacancy when the team is manchester city and replaced by is mark hughes?" }, { "role": "assistant", "content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"team\"='Manchester City' AND \"replaced_by\"='Mark Hughes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What is the date of appointment when replaced by is roy hodgson?" }, { "role": "assistant", "content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"replaced_by\"='Roy Hodgson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Who replaced when position in table is pre-season?" }, { "role": "assistant", "content": "SELECT \"replaced_by\" FROM \"managerial_changes\" WHERE \"position_in_table\"='Pre-season';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1059743_1\" (\n \"rank\" real,\n \"member_association\" text,\n \"points\" text,\n \"group_stage\" real,\n \"play_off\" real,\n \"afc_cup\" real\n);\n\nQuestion: How many games had a score value of 813.5 in post-season play?" }, { "role": "assistant", "content": "SELECT COUNT(\"play_off\") FROM \"table1_1059743_1\" WHERE \"points\"='813.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1059743_1\" (\n \"rank\" real,\n \"member_association\" text,\n \"points\" text,\n \"group_stage\" real,\n \"play_off\" real,\n \"afc_cup\" real\n);\n\nQuestion: Did any team score games that totaled up to 860.5?" }, { "role": "assistant", "content": "SELECT \"play_off\" FROM \"table1_1059743_1\" WHERE \"points\"='860.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"home_away\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score of the game when the team reached a record of 6-9?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2009_season_schedule\" WHERE \"record\"='6-9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real\n);\n\nQuestion: What type institution is point park university" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"current_members\" WHERE \"institution\"='Point Park University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real\n);\n\nQuestion: How many institutions are located in wilmore, kentucky and private" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"current_members\" WHERE \"type\"='Private' AND \"location\"='Wilmore, Kentucky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real\n);\n\nQuestion: point park university is what type of institution" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"current_members\" WHERE \"institution\"='Point Park University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real\n);\n\nQuestion: how many founded dates are listed for carlow university 1" }, { "role": "assistant", "content": "SELECT COUNT(\"founded\") FROM \"current_members\" WHERE \"institution\"='Carlow University 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10610087_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote the episode titled \"black\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_10610087_6\" WHERE \"title\"='\\\"Black\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10610087_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who are the writers for the episode \"solo\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_10610087_6\" WHERE \"title\"='\\\"Solo\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10610087_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: what is the original air date of the episode no in season 9?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10610087_3\" WHERE \"no_in_season\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10610087_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of the episode written by denis leary, peter tolan and evan reilly?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10610087_3\" WHERE \"written_by\"='Denis Leary, Peter Tolan and Evan Reilly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10610087_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many episodes were titles \"voicemail\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_10610087_3\" WHERE \"title\"='\\\"Voicemail\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_effects\" (\n \"name\" text,\n \"dates_active\" text,\n \"peak_classification\" text,\n \"windspeeds\" text,\n \"pressure\" text,\n \"areas_affected\" text,\n \"damage_usd\" text,\n \"deaths\" text,\n \"refs\" text\n);\n\nQuestion: When was Kamba active?" }, { "role": "assistant", "content": "SELECT \"dates_active\" FROM \"season_effects\" WHERE \"name\"='Kamba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_effects\" (\n \"name\" text,\n \"dates_active\" text,\n \"peak_classification\" text,\n \"windspeeds\" text,\n \"pressure\" text,\n \"areas_affected\" text,\n \"damage_usd\" text,\n \"deaths\" text,\n \"refs\" text\n);\n\nQuestion: What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?" }, { "role": "assistant", "content": "SELECT \"pressure\" FROM \"season_effects\" WHERE \"deaths\"='95km/h (60mph)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_effects\" (\n \"name\" text,\n \"dates_active\" text,\n \"peak_classification\" text,\n \"windspeeds\" text,\n \"pressure\" text,\n \"areas_affected\" text,\n \"damage_usd\" text,\n \"deaths\" text,\n \"refs\" text\n);\n\nQuestion: What were the active dates for the storm that had 185km/h (115mph) deaths?" }, { "role": "assistant", "content": "SELECT \"dates_active\" FROM \"season_effects\" WHERE \"deaths\"='185km/h (115mph)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_effects\" (\n \"name\" text,\n \"dates_active\" text,\n \"peak_classification\" text,\n \"windspeeds\" text,\n \"pressure\" text,\n \"areas_affected\" text,\n \"damage_usd\" text,\n \"deaths\" text,\n \"refs\" text\n);\n\nQuestion: What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?" }, { "role": "assistant", "content": "SELECT \"damage_usd\" FROM \"season_effects\" WHERE \"pressure\"='1003hPa (29.62inHg)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"inns\" real,\n \"n_o\" real,\n \"runs\" real,\n \"high_score\" real,\n \"average\" text,\n \"100\" real,\n \"50\" real,\n \"catches\" real,\n \"stump\" real\n);\n\nQuestion: what's the\u00a0average\u00a0where\u00a0high score\u00a0is 120" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"batting_averages\" WHERE \"high_score\"=120;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"inns\" real,\n \"n_o\" real,\n \"runs\" real,\n \"high_score\" real,\n \"average\" text,\n \"100\" real,\n \"50\" real,\n \"catches\" real,\n \"stump\" real\n);\n\nQuestion: what's the\u00a0player\u00a0where\u00a050\u00a0is 2 and\u00a0n/o\u00a0is 0" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"batting_averages\" WHERE \"50\"=2 AND \"n_o\"=0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"batting_averages\" (\n \"player\" text,\n \"matches\" real,\n \"inns\" real,\n \"n_o\" real,\n \"runs\" real,\n \"high_score\" real,\n \"average\" text,\n \"100\" real,\n \"50\" real,\n \"catches\" real,\n \"stump\" real\n);\n\nQuestion: what's the\u00a0player\u00a0where\u00a0inns\u00a0is 21" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"batting_averages\" WHERE \"inns\"=21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_election_results\" (\n \"general_election\" real,\n \"num_of_candidates\" real,\n \"num_of_seats_won\" real,\n \"pct_of_popular_vote\" text,\n \"result\" text\n);\n\nQuestion: Which general election had a pq majority and a 44.75% of the popular vote?" }, { "role": "assistant", "content": "SELECT \"general_election\" FROM \"general_election_results\" WHERE \"result\"='PQ majority' AND \"pct_of_popular_vote\"='44.75%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_election_results\" (\n \"general_election\" real,\n \"num_of_candidates\" real,\n \"num_of_seats_won\" real,\n \"pct_of_popular_vote\" text,\n \"result\" text\n);\n\nQuestion: What is the least number of candidates running were there when 80 seats were won?" }, { "role": "assistant", "content": "SELECT MIN(\"num_of_candidates\") FROM \"general_election_results\" WHERE \"num_of_seats_won\"=80;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_election_results\" (\n \"general_election\" real,\n \"num_of_candidates\" real,\n \"num_of_seats_won\" real,\n \"pct_of_popular_vote\" text,\n \"result\" text\n);\n\nQuestion: How many seats were won in the election with 125 candidates?" }, { "role": "assistant", "content": "SELECT COUNT(\"num_of_seats_won\") FROM \"general_election_results\" WHERE \"num_of_candidates\"=125;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks are there?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"regular_season\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many people attended the game against the indianapolis colts?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"regular_season\" WHERE \"opponent\"='Indianapolis Colts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: On december 16, 1985, all the records were what?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='December 16, 1985';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many results are there for the 0-4 record?" }, { "role": "assistant", "content": "SELECT COUNT(\"result\") FROM \"game_by_game_results\" WHERE \"record\"='0-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks are there that include the date October 11, 1969." }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"game_by_game_results\" WHERE \"date\"='October 11, 1969';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks are there that include the date November 9, 1969." }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"game_by_game_results\" WHERE \"date\"='November 9, 1969';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many records are there at the War Memorial Stadium?" }, { "role": "assistant", "content": "SELECT COUNT(\"record\") FROM \"game_by_game_results\" WHERE \"stadium\"='War Memorial Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_by_game_results\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the minimum attendance on December 7, 1969?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"game_by_game_results\" WHERE \"date\"='December 7, 1969';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What week corresponds to the last one to be played at the memorial stadium?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"stadium\"='Memorial Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: In which stadium is the week 5 game played?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"schedule\" WHERE \"week\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"variation_with_playing_cards\" (\n \"1st_players_choice\" text,\n \"2nd_players_choice\" text,\n \"probability_1st_player_wins\" text,\n \"probability_2nd_player_wins\" text,\n \"probability_of_a_draw\" text\n);\n\nQuestion: In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?" }, { "role": "assistant", "content": "SELECT \"probability_1st_player_wins\" FROM \"variation_with_playing_cards\" WHERE \"probability_of_a_draw\"='8.28%' AND \"2nd_players_choice\"='B BR';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"variation_with_playing_cards\" (\n \"1st_players_choice\" text,\n \"2nd_players_choice\" text,\n \"probability_1st_player_wins\" text,\n \"probability_2nd_player_wins\" text,\n \"probability_of_a_draw\" text\n);\n\nQuestion: If the first player chooses RB B, what is the second player's choices?" }, { "role": "assistant", "content": "SELECT \"2nd_players_choice\" FROM \"variation_with_playing_cards\" WHERE \"1st_players_choice\"='RB B';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"variation_with_playing_cards\" (\n \"1st_players_choice\" text,\n \"2nd_players_choice\" text,\n \"probability_1st_player_wins\" text,\n \"probability_2nd_player_wins\" text,\n \"probability_of_a_draw\" text\n);\n\nQuestion: What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?" }, { "role": "assistant", "content": "SELECT \"probability_2nd_player_wins\" FROM \"variation_with_playing_cards\" WHERE \"2nd_players_choice\"='R RB' AND \"probability_1st_player_wins\"='5.18%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"variation_with_playing_cards\" (\n \"1st_players_choice\" text,\n \"2nd_players_choice\" text,\n \"probability_1st_player_wins\" text,\n \"probability_2nd_player_wins\" text,\n \"probability_of_a_draw\" text\n);\n\nQuestion: What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?" }, { "role": "assistant", "content": "SELECT \"probability_1st_player_wins\" FROM \"variation_with_playing_cards\" WHERE \"probability_2nd_player_wins\"='80.11%' AND \"2nd_players_choice\"='R RB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"variation_with_playing_cards\" (\n \"1st_players_choice\" text,\n \"2nd_players_choice\" text,\n \"probability_1st_player_wins\" text,\n \"probability_2nd_player_wins\" text,\n \"probability_of_a_draw\" text\n);\n\nQuestion: What are the chances that player 2 wins if player 1's choice is BB R?" }, { "role": "assistant", "content": "SELECT \"probability_2nd_player_wins\" FROM \"variation_with_playing_cards\" WHERE \"1st_players_choice\"='BB R';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"variation_with_playing_cards\" (\n \"1st_players_choice\" text,\n \"2nd_players_choice\" text,\n \"probability_1st_player_wins\" text,\n \"probability_2nd_player_wins\" text,\n \"probability_of_a_draw\" text\n);\n\nQuestion: How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?" }, { "role": "assistant", "content": "SELECT \"probability_1st_player_wins\" FROM \"variation_with_playing_cards\" WHERE \"probability_2nd_player_wins\"='88.29%' AND \"2nd_players_choice\"='R RB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the\u00a0nfl team\u00a0where\u00a0player\u00a0is thane gash" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"nfl_draft\" WHERE \"player\"='Thane Gash';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the maximum\u00a0pick #\u00a0where\u00a0player\u00a0is anthony blaylock" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"nfl_draft\" WHERE \"player\"='Anthony Blaylock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what's the\u00a0nfl team\u00a0where\u00a0player\u00a0is clifford charlton" }, { "role": "assistant", "content": "SELECT \"nfl_team\" FROM \"nfl_draft\" WHERE \"player\"='Clifford Charlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what's the\u00a0position\u00a0where\u00a0player\u00a0is anthony blaylock" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"player\"='Anthony Blaylock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the minimum\u00a0pick #\u00a0where\u00a0position\u00a0is defensive tackle" }, { "role": "assistant", "content": "SELECT MIN(\"pick_num\") FROM \"nfl_draft\" WHERE \"position\"='Defensive Tackle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population_area_and_density_sortable_on_\" (\n \"province\" text,\n \"population_2004_estimate\" real,\n \"area_km\" real,\n \"density\" text,\n \"gdp_2003_pps_in_mil\" real,\n \"gdp_per_cap_2003_in\" real\n);\n\nQuestion: Which province has a density of 971.4?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"population_area_and_density_sortable_on_\" WHERE \"density\"='971.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population_area_and_density_sortable_on_\" (\n \"province\" text,\n \"population_2004_estimate\" real,\n \"area_km\" real,\n \"density\" text,\n \"gdp_2003_pps_in_mil\" real,\n \"gdp_per_cap_2003_in\" real\n);\n\nQuestion: What is Friesland's gdp per capita?" }, { "role": "assistant", "content": "SELECT MIN(\"gdp_per_cap_2003_in\") FROM \"population_area_and_density_sortable_on_\" WHERE \"province\"='Friesland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population_area_and_density_sortable_on_\" (\n \"province\" text,\n \"population_2004_estimate\" real,\n \"area_km\" real,\n \"density\" text,\n \"gdp_2003_pps_in_mil\" real,\n \"gdp_per_cap_2003_in\" real\n);\n\nQuestion: What is the area of the place that has a population density of 331.4?" }, { "role": "assistant", "content": "SELECT MAX(\"area_km\") FROM \"population_area_and_density_sortable_on_\" WHERE \"density\"='331.4';" } ]