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 \"l\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What is the position of the player that came from the school/club team/country of Purdue?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"l\" WHERE \"school_club_team_country\"='Purdue';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: Who is the player who's number is 3?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"l\" WHERE \"no_s\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What is the height for the player in 1968-72?" }, { "role": "assistant", "content": "SELECT \"height_in_ft\" FROM \"l\" WHERE \"years_for_rockets\"='1968-72';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: Which player had a height of 6-0?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"l\" WHERE \"height_in_ft\"='6-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"l\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What is the position for the player that played in 2006?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"l\" WHERE \"years_for_rockets\"='2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What are all the names of the players who are 7-0 tall?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"k\" WHERE \"height_in_ft\"='7-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: Kimball, toby toby kimball is a player; How many times at school/ club team/country was the player present?" }, { "role": "assistant", "content": "SELECT COUNT(\"school_club_team_country\") FROM \"k\" WHERE \"player\"='Kimball, Toby Toby Kimball';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: In connecticut the school/club team/country had a set height in ft. what is true for them?" }, { "role": "assistant", "content": "SELECT \"height_in_ft\" FROM \"k\" WHERE \"school_club_team_country\"='Connecticut';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"k\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: Rockets height was 6-6 in feet, list the time frame where this was true?" }, { "role": "assistant", "content": "SELECT \"years_for_rockets\" FROM \"k\" WHERE \"height_in_ft\"='6-6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no_s\" real,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What is the hight of the player who's tenure lasted from 1969-70?" }, { "role": "assistant", "content": "SELECT \"height_in_ft\" FROM \"s\" WHERE \"years_for_rockets\"='1969-70';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"s\" (\n \"player\" text,\n \"no_s\" real,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What school did the 7-4 player attend?" }, { "role": "assistant", "content": "SELECT \"school_club_team_country\" FROM \"s\" WHERE \"height_in_ft\"='7-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: what's the\u00a0years for rockets\u00a0where\u00a0position\u00a0is guard / forward" }, { "role": "assistant", "content": "SELECT \"years_for_rockets\" FROM \"w\" WHERE \"position\"='Guard / Forward';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: what is the total number of\u00a0player\u00a0where\u00a0years for rockets\u00a0is 1975-79" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"w\" WHERE \"years_for_rockets\"='1975-79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: what is the total number of\u00a0player\u00a0where\u00a0years for rockets\u00a0is 2004-06" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"w\" WHERE \"years_for_rockets\"='2004-06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: what's the\u00a0position\u00a0where\u00a0player\u00a0is williams, bernie bernie williams" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"w\" WHERE \"player\"='Williams, Bernie Bernie Williams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"w\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: what is the total number of\u00a0years for rockets\u00a0where\u00a0school/club team/country\u00a0is baylor" }, { "role": "assistant", "content": "SELECT COUNT(\"years_for_rockets\") FROM \"w\" WHERE \"school_club_team_country\"='Baylor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: How many positions had jersey number 32" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"t\" WHERE \"no_s\"='32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"t\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: Which years had a jersey number 55" }, { "role": "assistant", "content": "SELECT \"years_for_rockets\" FROM \"t\" WHERE \"no_s\"='55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: Which school, club team, or country played for the rockets in the years 2000-01?" }, { "role": "assistant", "content": "SELECT \"school_club_team_country\" FROM \"c\" WHERE \"years_for_rockets\"='2000-01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: During which years did number 13 play for the Rockets?" }, { "role": "assistant", "content": "SELECT \"years_for_rockets\" FROM \"c\" WHERE \"no_s\"='13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"suburbs\" (\n \"suburb\" text,\n \"population_in_2008\" real,\n \"median_age_in_2006\" text,\n \"mean_household_size_in_2006\" text,\n \"area_km\" text,\n \"density_km\" real,\n \"date_first_settled_as_a_suburb\" real,\n \"gazetted_as_a_division_name\" text\n);\n\nQuestion: What is the lowest date settled for chifley?" }, { "role": "assistant", "content": "SELECT MIN(\"date_first_settled_as_a_suburb\") FROM \"suburbs\" WHERE \"suburb\"='Chifley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"suburbs\" (\n \"suburb\" text,\n \"population_in_2008\" real,\n \"median_age_in_2006\" text,\n \"mean_household_size_in_2006\" text,\n \"area_km\" text,\n \"density_km\" real,\n \"date_first_settled_as_a_suburb\" real,\n \"gazetted_as_a_division_name\" text\n);\n\nQuestion: What is the density in Garran?" }, { "role": "assistant", "content": "SELECT MIN(\"density_km\") FROM \"suburbs\" WHERE \"suburb\"='Garran';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"suburbs\" (\n \"suburb\" text,\n \"population_in_2008\" real,\n \"median_age_in_2006\" text,\n \"mean_household_size_in_2006\" text,\n \"area_km\" text,\n \"density_km\" real,\n \"date_first_settled_as_a_suburb\" real,\n \"gazetted_as_a_division_name\" text\n);\n\nQuestion: What is the date settled for 40 years?" }, { "role": "assistant", "content": "SELECT \"date_first_settled_as_a_suburb\" FROM \"suburbs\" WHERE \"median_age_in_2006\"='40 years';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"suburbs\" (\n \"suburb\" text,\n \"population_in_2008\" real,\n \"median_age_in_2006\" text,\n \"mean_household_size_in_2006\" text,\n \"area_km\" text,\n \"density_km\" real,\n \"date_first_settled_as_a_suburb\" real,\n \"gazetted_as_a_division_name\" text\n);\n\nQuestion: What is the median age where the area is 1.7?" }, { "role": "assistant", "content": "SELECT \"median_age_in_2006\" FROM \"suburbs\" WHERE \"area_km\"='1.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: Who is the thursday presenter of the show Big Brother 13?" }, { "role": "assistant", "content": "SELECT \"thursday\" FROM \"presenters\" WHERE \"series\"='Big Brother 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?" }, { "role": "assistant", "content": "SELECT \"friday\" FROM \"presenters\" WHERE \"monday\"='Emma Willis Jamie East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: Who is the Tuesday presenter of Celebrity Big Brother 8?" }, { "role": "assistant", "content": "SELECT \"tuesday\" FROM \"presenters\" WHERE \"series\"='Celebrity Big Brother 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: Who is the Wednesday presenter of the show Big Brother 13?" }, { "role": "assistant", "content": "SELECT \"wednesday\" FROM \"presenters\" WHERE \"series\"='Big Brother 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"monday\" text,\n \"tuesday\" text,\n \"wednesday\" text,\n \"thursday\" text,\n \"friday\" text,\n \"saturday\" text,\n \"sunday\" text\n);\n\nQuestion: List all of the shows with Alice Levine Jamie East is the Sunday presenter." }, { "role": "assistant", "content": "SELECT \"series\" FROM \"presenters\" WHERE \"sunday\"='Alice Levine Jamie East';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no_s\" real,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What are all the positions for the rockets in 2008?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"g\" WHERE \"years_for_rockets\"='2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"player\" text,\n \"no_s\" real,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What is the height of the school club team members in clemson?" }, { "role": "assistant", "content": "SELECT \"height_in_ft\" FROM \"g\" WHERE \"school_club_team_country\"='Clemson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What years for the rockets did player ford, alton alton ford play?" }, { "role": "assistant", "content": "SELECT \"years_for_rockets\" FROM \"f\" WHERE \"player\"='Ford, Alton Alton Ford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What years for the rockets did the player ford, phil phil ford play?" }, { "role": "assistant", "content": "SELECT \"years_for_rockets\" FROM \"f\" WHERE \"player\"='Ford, Phil Phil Ford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"f\" (\n \"player\" text,\n \"no_s\" text,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_for_rockets\" text,\n \"school_club_team_country\" text\n);\n\nQuestion: What school/club team/country did the player fitch, gerald gerald fitch play for?" }, { "role": "assistant", "content": "SELECT \"school_club_team_country\" FROM \"f\" WHERE \"player\"='Fitch, Gerald Gerald Fitch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: What is the weekly rank where the number is 4?" }, { "role": "assistant", "content": "SELECT \"weekly_rank\" FROM \"u_s_nielsen_ratings\" WHERE \"num\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"num\" real,\n \"episode\" text,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: What is the viewers for the episode \"woman marries heart\"?" }, { "role": "assistant", "content": "SELECT \"viewers\" FROM \"u_s_nielsen_ratings\" WHERE \"episode\"='\\\"Woman Marries Heart\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" real,\n \"la_matches\" real,\n \"t20_matches\" real,\n \"total\" real\n);\n\nQuestion: What is the minimum of t20 matches?" }, { "role": "assistant", "content": "SELECT MIN(\"t20_matches\") FROM \"ground_history\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" real,\n \"la_matches\" real,\n \"t20_matches\" real,\n \"total\" real\n);\n\nQuestion: Where is ropery lane located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"ground_history\" WHERE \"name_of_ground\"='Ropery Lane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" real,\n \"la_matches\" real,\n \"t20_matches\" real,\n \"total\" real\n);\n\nQuestion: Where is ropery lane and la matches 7 location?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"ground_history\" WHERE \"la_matches\"=7 AND \"name_of_ground\"='Ropery Lane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" real,\n \"la_matches\" real,\n \"t20_matches\" real,\n \"total\" real\n);\n\nQuestion: What is the maximum fc matches?" }, { "role": "assistant", "content": "SELECT MAX(\"fc_matches\") FROM \"ground_history\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" real,\n \"la_matches\" real,\n \"t20_matches\" real,\n \"total\" real\n);\n\nQuestion: What is the maximum fc matches at the racecourse?" }, { "role": "assistant", "content": "SELECT MAX(\"fc_matches\") FROM \"ground_history\" WHERE \"name_of_ground\"='The Racecourse';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ground_history\" (\n \"name_of_ground\" text,\n \"location\" text,\n \"year\" text,\n \"fc_matches\" real,\n \"la_matches\" real,\n \"t20_matches\" real,\n \"total\" real\n);\n\nQuestion: What is the maximum t20 on green lane?" }, { "role": "assistant", "content": "SELECT MAX(\"t20_matches\") FROM \"ground_history\" WHERE \"name_of_ground\"='Green Lane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"petrol_engines\" (\n \"model\" text,\n \"cylinders_valves\" text,\n \"displacement_cc\" real,\n \"max_power_k_w_ps_at_rpm\" text,\n \"max_torque_nm_at_rpm\" text,\n \"engine_code\" text,\n \"top_speed_km_h\" real,\n \"production_period\" text\n);\n\nQuestion: what's the\u00a0cylinders/ valves\u00a0with\u00a0model\u00a0being 1.8 20v" }, { "role": "assistant", "content": "SELECT \"cylinders_valves\" FROM \"petrol_engines\" WHERE \"model\"='1.8 20V';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_2\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: Which units are commanded by Lieutenant Colonel Francis Hepburn?" }, { "role": "assistant", "content": "SELECT \"unit\" FROM \"table1_11793221_2\" WHERE \"commander\"='Lieutenant Colonel Francis Hepburn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_2\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What are the complements when the commander is Major William Lloyd?" }, { "role": "assistant", "content": "SELECT \"complement\" FROM \"table1_11793221_2\" WHERE \"commander\"='Major William Lloyd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_2\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: How many were wounded when the complement was 173 off 2059 men?" }, { "role": "assistant", "content": "SELECT \"wounded\" FROM \"table1_11793221_2\" WHERE \"complement\"='173 off 2059 men';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_2\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: How many where killed under Major-General Jean Victor de Constant Rebecque's command?" }, { "role": "assistant", "content": "SELECT \"killed\" FROM \"table1_11793221_2\" WHERE \"commander\"='Major-General Jean Victor de Constant Rebecque';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_2\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: Who were the commanders when 8 off 0 men were wounded?" }, { "role": "assistant", "content": "SELECT \"commander\" FROM \"table1_11793221_2\" WHERE \"wounded\"='8 off 0 men';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"prospective_members\" (\n \"country\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_nominal\" text,\n \"gdp_per_capita_nominal\" text\n);\n\nQuestion: What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?" }, { "role": "assistant", "content": "SELECT \"gdp_per_capita_nominal\" FROM \"prospective_members\" WHERE \"gdp_nominal\"='$52.0 billion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"prospective_members\" (\n \"country\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_nominal\" text,\n \"gdp_per_capita_nominal\" text\n);\n\nQuestion: How many countries has a gdp (nominal) of $29.9 billion?" }, { "role": "assistant", "content": "SELECT COUNT(\"gdp_per_capita_nominal\") FROM \"prospective_members\" WHERE \"gdp_nominal\"='$29.9 billion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"prospective_members\" (\n \"country\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_nominal\" text,\n \"gdp_per_capita_nominal\" text\n);\n\nQuestion: What is the GDP (nominal) for Uzbekistan?" }, { "role": "assistant", "content": "SELECT \"gdp_nominal\" FROM \"prospective_members\" WHERE \"country\"='Uzbekistan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"prospective_members\" (\n \"country\" text,\n \"population\" real,\n \"area_km\" real,\n \"gdp_nominal\" text,\n \"gdp_per_capita_nominal\" text\n);\n\nQuestion: What is the area (km\u00b2) for the country with a population of 16967000?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km\") FROM \"prospective_members\" WHERE \"population\"=16967000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dvd_releases\" (\n \"dvd_name\" text,\n \"released\" text,\n \"audio\" text,\n \"aspect_ratio\" text,\n \"duration\" text,\n \"number_of_episodes\" real,\n \"num_of_discs\" real\n);\n\nQuestion: What is the aspect ratio of the DVD released on 12/10/2009?" }, { "role": "assistant", "content": "SELECT \"aspect_ratio\" FROM \"dvd_releases\" WHERE \"released\"='12/10/2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dvd_releases\" (\n \"dvd_name\" text,\n \"released\" text,\n \"audio\" text,\n \"aspect_ratio\" text,\n \"duration\" text,\n \"number_of_episodes\" real,\n \"num_of_discs\" real\n);\n\nQuestion: What is the name of the DVD where the number of discs is greater than 2.0" }, { "role": "assistant", "content": "SELECT \"dvd_name\" FROM \"dvd_releases\" WHERE \"num_of_discs\">2.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dvd_releases\" (\n \"dvd_name\" text,\n \"released\" text,\n \"audio\" text,\n \"aspect_ratio\" text,\n \"duration\" text,\n \"number_of_episodes\" real,\n \"num_of_discs\" real\n);\n\nQuestion: How many releases did the DVD River Cottage forever have?" }, { "role": "assistant", "content": "SELECT COUNT(\"released\") FROM \"dvd_releases\" WHERE \"dvd_name\"='River Cottage Forever';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dvd_releases\" (\n \"dvd_name\" text,\n \"released\" text,\n \"audio\" text,\n \"aspect_ratio\" text,\n \"duration\" text,\n \"number_of_episodes\" real,\n \"num_of_discs\" real\n);\n\nQuestion: What is the total number of discs where the run time was 4 hours 40 minutes?" }, { "role": "assistant", "content": "SELECT COUNT(\"num_of_discs\") FROM \"dvd_releases\" WHERE \"duration\"='4 hours 40 minutes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dvd_releases\" (\n \"dvd_name\" text,\n \"released\" text,\n \"audio\" text,\n \"aspect_ratio\" text,\n \"duration\" text,\n \"number_of_episodes\" real,\n \"num_of_discs\" real\n);\n\nQuestion: What is the name of the DVD where the number of discs is greater than 2.0" }, { "role": "assistant", "content": "SELECT \"dvd_name\" FROM \"dvd_releases\" WHERE \"num_of_discs\">2.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_4\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What were the wounded for complement of 46 off 656 men?" }, { "role": "assistant", "content": "SELECT \"wounded\" FROM \"table1_11793221_4\" WHERE \"complement\"='46 off 656 men';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_4\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: What was the missing for lieutenant general sir thomas picton?" }, { "role": "assistant", "content": "SELECT \"missing\" FROM \"table1_11793221_4\" WHERE \"commander\"='Lieutenant General Sir Thomas Picton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_4\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: Name the number of complement for 4th hanoverian brigade" }, { "role": "assistant", "content": "SELECT COUNT(\"complement\") FROM \"table1_11793221_4\" WHERE \"unit\"='4th Hanoverian Brigade';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11793221_4\" (\n \"unit\" text,\n \"commander\" text,\n \"complement\" text,\n \"killed\" text,\n \"wounded\" text,\n \"missing\" text\n);\n\nQuestion: Name the commander of 167 off 2348 men" }, { "role": "assistant", "content": "SELECT \"commander\" FROM \"table1_11793221_4\" WHERE \"complement\"='167 off 2348 men';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_draft_picks\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?" }, { "role": "assistant", "content": "SELECT MIN(\"overall\") FROM \"2008_draft_picks\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_draft_picks\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: WHAT ROUND WAS FORWARD ANDRE PETERSSON SELECTED?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"2008_draft_picks\" WHERE \"position\"='Forward';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_draft_picks\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: WHAT POSITION DOES PATRICK WIERCIOCH PLAY?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2008_draft_picks\" WHERE \"player\"='Patrick Wiercioch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_draft_picks\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: NAME THE OVERALL FOR THE OMAHA (USHL) CLUB TEAM" }, { "role": "assistant", "content": "SELECT MIN(\"overall\") FROM \"2008_draft_picks\" WHERE \"club_team\"='Omaha (USHL)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008_draft_picks\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: WHERE IS ANDRE PETERSSON FROM?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"2008_draft_picks\" WHERE \"player\"='Andre Petersson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What club team did JArrod Maidens play for?" }, { "role": "assistant", "content": "SELECT \"club_team\" FROM \"2012_draft_picks\" WHERE \"player\"='Jarrod Maidens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What position does Cody Ceci play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2012_draft_picks\" WHERE \"player\"='Cody Ceci';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What is the Nationality when the club team is Peterborough Petes (OHL)?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"2011_draft_picks\" WHERE \"club_team\"='Peterborough Petes (OHL)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: Which player is in round 5?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"2011_draft_picks\" WHERE \"round\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What position is associated with an overall value of 126?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2011_draft_picks\" WHERE \"overall\"='126';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What position is the player Jordan Fransoo in?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2011_draft_picks\" WHERE \"player\"='Jordan Fransoo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: How many rounds is the player Matthew Puempel associated with?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"2011_draft_picks\" WHERE \"player\"='Matthew Puempel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What is the position of player Tobias Lindberg?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2013_draft_picks\" WHERE \"player\"='Tobias Lindberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: How many players had overall 78?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"2013_draft_picks\" WHERE \"overall\"='78';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What is the last round with club team Guelph Storm (ohl)?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"2013_draft_picks\" WHERE \"club_team\"='Guelph Storm (OHL)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: How many positions did player Ben Harpur play?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"2013_draft_picks\" WHERE \"player\"='Ben Harpur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2013_draft_picks\" (\n \"round\" real,\n \"overall\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What is the position of player Marcus Hogberg?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2013_draft_picks\" WHERE \"player\"='Marcus Hogberg';" } ]
[ { "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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" real\n);\n\nQuestion: 3488 is the enrollment amount of what college?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"enrollment\"=3488;" } ]
[ { "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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" real\n);\n\nQuestion: Barry University had the highest enrollment of what number?" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"current_members\" WHERE \"institution\"='Barry 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 \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" real\n);\n\nQuestion: The fighting knights has what type of nickname?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"current_members\" WHERE \"nickname\"='Fighting Knights';" } ]
[ { "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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" real\n);\n\nQuestion: Boca Raton, Florida had what joined amount?" }, { "role": "assistant", "content": "SELECT \"joined\" FROM \"current_members\" WHERE \"location\"='Boca Raton, 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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" real\n);\n\nQuestion: If the enrollment is 3584, what's the largest founded?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"current_members\" WHERE \"enrollment\"=3584;" } ]
[ { "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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" real\n);\n\nQuestion: Barry University had a maximum enrollment of what?" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"current_members\" WHERE \"institution\"='Barry University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11820086_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What was the series number for the episode \"I Forgot to Remember to Forget\"?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_series\") FROM \"table1_11820086_1\" WHERE \"title\"='\\\"I Forgot to Remember to Forget\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11820086_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode that was viewed by 2.57 million people in the U.S.?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_11820086_1\" WHERE \"u_s_viewers_millions\"='2.57';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11820086_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode that was viewed by 2.50 million people in the U.S.?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_11820086_1\" WHERE \"u_s_viewers_millions\"='2.50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11820086_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Which episode number in season 5 was viewed by 3.00 million U.S. viziers?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_11820086_1\" WHERE \"u_s_viewers_millions\"='3.00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"norwegian_americans_by_state\" (\n \"state\" text,\n \"norwegian_americans_1980\" real,\n \"percent_1980\" text,\n \"norwegian_americans_1990\" real,\n \"percent_1990\" text,\n \"norwegian_americans_2000\" real,\n \"percent_2000\" text,\n \"norwegian_americans_2009\" real,\n \"percent_2009\" text\n);\n\nQuestion: what are all the\u00a0percent (1990)\u00a0where\u00a0state\u00a0is united states" }, { "role": "assistant", "content": "SELECT \"percent_1990\" FROM \"norwegian_americans_by_state\" WHERE \"state\"='United States';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"norwegian_americans_by_state\" (\n \"state\" text,\n \"norwegian_americans_1980\" real,\n \"percent_1980\" text,\n \"norwegian_americans_1990\" real,\n \"percent_1990\" text,\n \"norwegian_americans_2000\" real,\n \"percent_2000\" text,\n \"norwegian_americans_2009\" real,\n \"percent_2009\" text\n);\n\nQuestion: what is the total number of\u00a0percent (2000)\u00a0where\u00a0percent (1980)\u00a0is 3.4%" }, { "role": "assistant", "content": "SELECT COUNT(\"percent_2000\") FROM \"norwegian_americans_by_state\" WHERE \"percent_1980\"='3.4%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"norwegian_americans_by_state\" (\n \"state\" text,\n \"norwegian_americans_1980\" real,\n \"percent_1980\" text,\n \"norwegian_americans_1990\" real,\n \"percent_1990\" text,\n \"norwegian_americans_2000\" real,\n \"percent_2000\" text,\n \"norwegian_americans_2009\" real,\n \"percent_2009\" text\n);\n\nQuestion: what are all the\u00a0percent (1990)\u00a0where\u00a0state\u00a0is mississippi" }, { "role": "assistant", "content": "SELECT \"percent_1990\" FROM \"norwegian_americans_by_state\" WHERE \"state\"='Mississippi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"norwegian_americans_by_state\" (\n \"state\" text,\n \"norwegian_americans_1980\" real,\n \"percent_1980\" text,\n \"norwegian_americans_1990\" real,\n \"percent_1990\" text,\n \"norwegian_americans_2000\" real,\n \"percent_2000\" text,\n \"norwegian_americans_2009\" real,\n \"percent_2009\" text\n);\n\nQuestion: what is the maximum\u00a0norwegian americans (2000)\u00a0where\u00a0norwegian americans (1990)\u00a0is 9170" }, { "role": "assistant", "content": "SELECT MAX(\"norwegian_americans_2000\") FROM \"norwegian_americans_by_state\" WHERE \"norwegian_americans_1990\"=9170;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"norwegian_americans_by_state\" (\n \"state\" text,\n \"norwegian_americans_1980\" real,\n \"percent_1980\" text,\n \"norwegian_americans_1990\" real,\n \"percent_1990\" text,\n \"norwegian_americans_2000\" real,\n \"percent_2000\" text,\n \"norwegian_americans_2009\" real,\n \"percent_2009\" text\n);\n\nQuestion: what is the minimum\u00a0norwegian americans (1980)\u00a0where\u00a0state\u00a0is rhode island" }, { "role": "assistant", "content": "SELECT MIN(\"norwegian_americans_1980\") FROM \"norwegian_americans_by_state\" WHERE \"state\"='Rhode Island';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: What is the English version of the title Getto Daun?" }, { "role": "assistant", "content": "SELECT \"english_title\" FROM \"track_listing\" WHERE \"r_maji_title\"='Getto Daun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: What is the smallest track number?" }, { "role": "assistant", "content": "SELECT MIN(\"track\") FROM \"track_listing\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: How many tracks are titled M\u014d Sukoshi T\u014dku?" }, { "role": "assistant", "content": "SELECT COUNT(\"track\") FROM \"track_listing\" WHERE \"r_maji_title\"='M\u014d Sukoshi T\u014dku';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: What is the Japanese title for Fantasy?" }, { "role": "assistant", "content": "SELECT \"japanese_title\" FROM \"track_listing\" WHERE \"english_title\"='Fantasy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"disc\" real,\n \"track\" real,\n \"english_title\" text,\n \"japanese_title\" text,\n \"r_maji_title\" text,\n \"artist\" text,\n \"track_time\" text\n);\n\nQuestion: How long is track number 8?" }, { "role": "assistant", "content": "SELECT \"track_time\" FROM \"track_listing\" WHERE \"track\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_11875915_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"wsc_winning_team\" text,\n \"gt1_winning_team\" text,\n \"gt2_winning_team\" text,\n \"gt3_winning_team\" text,\n \"results\" text\n);\n\nQuestion: Who was the GT2 winning team when the GT3 winning team was #1 PTG?" }, { "role": "assistant", "content": "SELECT \"gt2_winning_team\" FROM \"table1_11875915_2\" WHERE \"gt3_winning_team\"='#1 PTG';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text,\n \"doubles_champions\" text\n);\n\nQuestion: How many doubles champions were there for the Serbia f6 Futures tournament?" }, { "role": "assistant", "content": "SELECT COUNT(\"doubles_champions\") FROM \"events\" WHERE \"tournament\"='Serbia F6 Futures';" } ]