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 \"cast_of_major_productions_1954_1999\" (\n \"character\" text,\n \"1954_broadway\" text,\n \"1955_broadcast\" text,\n \"1960_broadcast\" text,\n \"1979_broadway\" text,\n \"1990_broadway\" text,\n \"1991_broadway\" text,\n \"1998_broadway\" text,\n \"1999_broadway\" text\n);\n\nQuestion: Who played in the 1990 Broadway after Tom Halloran played the character in the 1955 Broadcast?"
},
{
"role": "assistant",
"content": "SELECT \"1990_broadway\" FROM \"cast_of_major_productions_1954_1999\" WHERE \"1955_broadcast\"='Tom Halloran';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_of_major_productions_1954_1999\" (\n \"character\" text,\n \"1954_broadway\" text,\n \"1955_broadcast\" text,\n \"1960_broadcast\" text,\n \"1979_broadway\" text,\n \"1990_broadway\" text,\n \"1991_broadway\" text,\n \"1998_broadway\" text,\n \"1999_broadway\" text\n);\n\nQuestion: What character did Drake English play in the 1998 Broadway?"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"cast_of_major_productions_1954_1999\" WHERE \"1998_broadway\"='Drake English';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" real,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" real,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: What date was BBC One total viewing greater then 11616996.338225884?"
},
{
"role": "assistant",
"content": "SELECT \"broadcast_date\" FROM \"tv_ratings\" WHERE \"bbc_one_total_viewing\">11616996.338225884;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" real,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" real,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: How many years did BBC One rank 20th?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"tv_ratings\" WHERE \"bbc_one_rank\"='20th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tv_ratings\" (\n \"year\" real,\n \"broadcast_date\" text,\n \"bbc_one_total_viewing\" real,\n \"bbc_one_rank\" text,\n \"bbc_two_total_viewing\" text,\n \"bbc_two_rank\" text\n);\n\nQuestion: What year was the BBC two total viewing 7,530,000?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"tv_ratings\" WHERE \"bbc_two_total_viewing\"='7,530,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature_of_t3_ss_proteins\" (\n \"function_genus\" text,\n \"shigella\" text,\n \"salmonella\" text,\n \"yersinia\" text,\n \"escherichia\" text\n);\n\nQuestion: how many\u00a0\u2193 function / genus \u2192\u00a0with\u00a0escherichia\u00a0being espd"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"function_genus\") FROM \"nomenclature_of_t3_ss_proteins\" WHERE \"escherichia\"='EspD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature_of_t3_ss_proteins\" (\n \"function_genus\" text,\n \"shigella\" text,\n \"salmonella\" text,\n \"yersinia\" text,\n \"escherichia\" text\n);\n\nQuestion: what's the\u00a0salmonella\u00a0with\u00a0escherichia\u00a0being espd"
},
{
"role": "assistant",
"content": "SELECT \"salmonella\" FROM \"nomenclature_of_t3_ss_proteins\" WHERE \"escherichia\"='EspD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature_of_t3_ss_proteins\" (\n \"function_genus\" text,\n \"shigella\" text,\n \"salmonella\" text,\n \"yersinia\" text,\n \"escherichia\" text\n);\n\nQuestion: what's the\u00a0\u2193 function / genus \u2192\u00a0with\u00a0shigella\u00a0being spa32"
},
{
"role": "assistant",
"content": "SELECT \"function_genus\" FROM \"nomenclature_of_t3_ss_proteins\" WHERE \"shigella\"='Spa32';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature_of_t3_ss_proteins\" (\n \"function_genus\" text,\n \"shigella\" text,\n \"salmonella\" text,\n \"yersinia\" text,\n \"escherichia\" text\n);\n\nQuestion: what's the\u00a0salmonella\u00a0with\u00a0shigella\u00a0being ipgc"
},
{
"role": "assistant",
"content": "SELECT \"salmonella\" FROM \"nomenclature_of_t3_ss_proteins\" WHERE \"shigella\"='IpgC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature_of_t3_ss_proteins\" (\n \"function_genus\" text,\n \"shigella\" text,\n \"salmonella\" text,\n \"yersinia\" text,\n \"escherichia\" text\n);\n\nQuestion: what's the\u00a0salmonella\u00a0with\u00a0escherichia\u00a0being sepb (escn)"
},
{
"role": "assistant",
"content": "SELECT \"salmonella\" FROM \"nomenclature_of_t3_ss_proteins\" WHERE \"escherichia\"='SepB (EscN)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nomenclature_of_t3_ss_proteins\" (\n \"function_genus\" text,\n \"shigella\" text,\n \"salmonella\" text,\n \"yersinia\" text,\n \"escherichia\" text\n);\n\nQuestion: what's the\u00a0shigella\u00a0with\u00a0yersinia\u00a0being yscp"
},
{
"role": "assistant",
"content": "SELECT \"shigella\" FROM \"nomenclature_of_t3_ss_proteins\" WHERE \"yersinia\"='YscP';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10321805_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: How many original titles did Marriage Italian-Style have? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_title\") FROM \"table1_10321805_1\" WHERE \"film_title_used_in_nomination\"='Marriage Italian-Style';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10321805_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What year was a movie with the original title La Leggenda del Santo Bevitore submitted?"
},
{
"role": "assistant",
"content": "SELECT \"year_ceremony\" FROM \"table1_10321805_1\" WHERE \"original_title\"='La leggenda del santo bevitore';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10335_1\" (\n \"camp\" text,\n \"estimated_deaths\" text,\n \"operational\" text,\n \"occupied_territory\" text,\n \"current_country_of_location\" text,\n \"primary_means_for_mass_killings\" text\n);\n\nQuestion: what's the\u00a0camp\u00a0with\u00a0estimated deaths\u00a0of 600,000"
},
{
"role": "assistant",
"content": "SELECT \"camp\" FROM \"table1_10335_1\" WHERE \"estimated_deaths\"='600,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10335_1\" (\n \"camp\" text,\n \"estimated_deaths\" text,\n \"operational\" text,\n \"occupied_territory\" text,\n \"current_country_of_location\" text,\n \"primary_means_for_mass_killings\" text\n);\n\nQuestion: what's the\u00a0operational period\u00a0with\u00a0camp\u00a0 sajmi\u0161te"
},
{
"role": "assistant",
"content": "SELECT \"operational\" FROM \"table1_10335_1\" WHERE \"camp\"='Sajmi\u0161te';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10335_1\" (\n \"camp\" text,\n \"estimated_deaths\" text,\n \"operational\" text,\n \"occupied_territory\" text,\n \"current_country_of_location\" text,\n \"primary_means_for_mass_killings\" text\n);\n\nQuestion: what's the\u00a0estimated deaths\u00a0with\u00a0operational period\u00a0of 17 march 1942 \u2013 end of june 1943"
},
{
"role": "assistant",
"content": "SELECT \"estimated_deaths\" FROM \"table1_10335_1\" WHERE \"operational\"='17 March 1942 \u2013 end of June 1943';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10335_1\" (\n \"camp\" text,\n \"estimated_deaths\" text,\n \"operational\" text,\n \"occupied_territory\" text,\n \"current_country_of_location\" text,\n \"primary_means_for_mass_killings\" text\n);\n\nQuestion: what's the\u00a0current country of location\u00a0with\u00a0operational period\u00a0\u00a0of summer of 1941 to 28 june 1944"
},
{
"role": "assistant",
"content": "SELECT \"current_country_of_location\" FROM \"table1_10335_1\" WHERE \"operational\"='Summer of 1941 to 28 June 1944';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10335_1\" (\n \"camp\" text,\n \"estimated_deaths\" text,\n \"operational\" text,\n \"occupied_territory\" text,\n \"current_country_of_location\" text,\n \"primary_means_for_mass_killings\" text\n);\n\nQuestion: what's the\u00a0occupied territory\u00a0with\u00a0estimated deaths\u00a0of 600,000"
},
{
"role": "assistant",
"content": "SELECT \"occupied_territory\" FROM \"table1_10335_1\" WHERE \"estimated_deaths\"='600,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10335_1\" (\n \"camp\" text,\n \"estimated_deaths\" text,\n \"operational\" text,\n \"occupied_territory\" text,\n \"current_country_of_location\" text,\n \"primary_means_for_mass_killings\" text\n);\n\nQuestion: what's the\u00a0occupied territory\u00a0with\u00a0operational\u00a0period of may 1940 \u2013 january 1945"
},
{
"role": "assistant",
"content": "SELECT \"occupied_territory\" FROM \"table1_10335_1\" WHERE \"operational\"='May 1940 \u2013 January 1945';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360823_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which overall pick was traded to the Cleveland Browns?"
},
{
"role": "assistant",
"content": "SELECT \"overall\" FROM \"table1_10360823_1\" WHERE \"college\"='Traded to the Cleveland Browns';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360823_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Overall pick 240 was a pick in which round?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"table1_10360823_1\" WHERE \"overall\"=240;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360823_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which overall pick number went to college at Youngstown State?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"overall\") FROM \"table1_10360823_1\" WHERE \"college\"='Youngstown State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360823_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position is played by pick 255 overall?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"table1_10360823_1\" WHERE \"overall\"=255;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360823_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player was chosen in round 17?"
},
{
"role": "assistant",
"content": "SELECT \"player_name\" FROM \"table1_10360823_1\" WHERE \"round\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"vikings_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: The record of 7-3 had the largest attendance of what?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"record\"='7-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"vikings_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: The record of 9-4 was against which opponent?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='9-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"vikings_points\" real,\n \"opponents\" real,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: The game number of 8 had a record of what?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"game\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360656_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What round was Steve Stonebreaker drafted?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"table1_10360656_1\" WHERE \"player_name\"='Steve Stonebreaker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360656_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who was the top picki n the draft?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"choice\") FROM \"table1_10360656_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360656_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What round was Bill Hill drafted?"
},
{
"role": "assistant",
"content": "SELECT \"choice\" FROM \"table1_10360656_1\" WHERE \"player_name\"='Bill Hill';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10360656_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What was the name of the quarterback drafted?"
},
{
"role": "assistant",
"content": "SELECT \"player_name\" FROM \"table1_10360656_1\" WHERE \"position\"='Quarterback';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361625_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Where is the college where Keith Hartwig plays?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_10361625_1\" WHERE \"player_name\"='Keith Hartwig';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361625_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the name of the linebacker at Illinois college?"
},
{
"role": "assistant",
"content": "SELECT \"player_name\" FROM \"table1_10361625_1\" WHERE \"position\"='Linebacker' AND \"college\"='Illinois';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361625_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the greatest round of overall 83?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"table1_10361625_1\" WHERE \"overall\"=83;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361625_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which round did Tommy Kramer play in>"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"table1_10361625_1\" WHERE \"player_name\"='Tommy Kramer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361625_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is Rice's collage score?"
},
{
"role": "assistant",
"content": "SELECT \"overall\" FROM \"table1_10361625_1\" WHERE \"college\"='Rice';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361230_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Where does the defensive back position appear first?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"table1_10361230_1\" WHERE \"position\"='Defensive Back';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361230_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is Bruce Cerone overall?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"overall\") FROM \"table1_10361230_1\" WHERE \"player_name\"='Bruce Cerone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361230_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player went to Emporia State?"
},
{
"role": "assistant",
"content": "SELECT \"player_name\" FROM \"table1_10361230_1\" WHERE \"college\"='Emporia State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361230_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the highest choice?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"choice\") FROM \"table1_10361230_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10361230_1\" (\n \"round\" real,\n \"choice\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did Bill Cappleman go to?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"table1_10361230_1\" WHERE \"player_name\"='Bill Cappleman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"headstamps_and_colour_coding\" (\n \"headstamp_id\" text,\n \"primer_annulus_color\" text,\n \"bullet_tip_color\" text,\n \"other_features\" text,\n \"functional_type\" text\n);\n\nQuestion: For the headstamp id of h2, what was the color of the bullet tip?"
},
{
"role": "assistant",
"content": "SELECT \"bullet_tip_color\" FROM \"headstamps_and_colour_coding\" WHERE \"headstamp_id\"='H2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"headstamps_and_colour_coding\" (\n \"headstamp_id\" text,\n \"primer_annulus_color\" text,\n \"bullet_tip_color\" text,\n \"other_features\" text,\n \"functional_type\" text\n);\n\nQuestion: For the functional type of light ball, what were the other features?"
},
{
"role": "assistant",
"content": "SELECT \"other_features\" FROM \"headstamps_and_colour_coding\" WHERE \"functional_type\"='Light Ball';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"headstamps_and_colour_coding\" (\n \"headstamp_id\" text,\n \"primer_annulus_color\" text,\n \"bullet_tip_color\" text,\n \"other_features\" text,\n \"functional_type\" text\n);\n\nQuestion: How many primers annulus colors were there when the color of the bullet tip was white?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"primer_annulus_color\") FROM \"headstamps_and_colour_coding\" WHERE \"bullet_tip_color\"='White';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"headstamps_and_colour_coding\" (\n \"headstamp_id\" text,\n \"primer_annulus_color\" text,\n \"bullet_tip_color\" text,\n \"other_features\" text,\n \"functional_type\" text\n);\n\nQuestion: How many bullet tips colors had other features of a blue band on case base?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"bullet_tip_color\") FROM \"headstamps_and_colour_coding\" WHERE \"other_features\"='Blue band on case base';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" real,\n \"games\" real,\n \"games_started\" real,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"yards_attempt\" text,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"rating\" text\n);\n\nQuestion: How many touchdowns were scored in the year with a completion percentage of 56.0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"touchdowns\") FROM \"career_statistics\" WHERE \"completion_pct\"='56.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" real,\n \"games\" real,\n \"games_started\" real,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"yards_attempt\" text,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"rating\" text\n);\n\nQuestion: What number of completions are recorded for the year with 12 games started?"
},
{
"role": "assistant",
"content": "SELECT \"completions\" FROM \"career_statistics\" WHERE \"games_started\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_statistics\" (\n \"year\" real,\n \"games\" real,\n \"games_started\" real,\n \"completions\" real,\n \"attempts\" real,\n \"completion_pct\" text,\n \"yards\" real,\n \"yards_attempt\" text,\n \"touchdowns\" real,\n \"interceptions\" real,\n \"rating\" text\n);\n\nQuestion: How many years were there with 348 attempts?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"yards\") FROM \"career_statistics\" WHERE \"attempts\"=348;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10402018_1\" (\n \"character\" text,\n \"australia_new_zealand_sydney_first_run_melbourne_auckland\" text,\n \"london\" text,\n \"toronto_broadway\" text,\n \"brazil\" text,\n \"uk_tour\" text,\n \"us_tour\" text,\n \"italy_milan_rome_trieste\" text\n);\n\nQuestion: How many characters is by Babs Rubenstein?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"london\") FROM \"table1_10402018_1\" WHERE \"us_tour\"='Babs Rubenstein';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10402018_1\" (\n \"character\" text,\n \"australia_new_zealand_sydney_first_run_melbourne_auckland\" text,\n \"london\" text,\n \"toronto_broadway\" text,\n \"brazil\" text,\n \"uk_tour\" text,\n \"us_tour\" text,\n \"italy_milan_rome_trieste\" text\n);\n\nQuestion: Which person is in the tronto/broadway and has a uk tour of n/a"
},
{
"role": "assistant",
"content": "SELECT \"toronto_broadway\" FROM \"table1_10402018_1\" WHERE \"uk_tour\"='n/a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10402018_1\" (\n \"character\" text,\n \"australia_new_zealand_sydney_first_run_melbourne_auckland\" text,\n \"london\" text,\n \"toronto_broadway\" text,\n \"brazil\" text,\n \"uk_tour\" text,\n \"us_tour\" text,\n \"italy_milan_rome_trieste\" text\n);\n\nQuestion: How many people play Frank in London?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"london\") FROM \"table1_10402018_1\" WHERE \"character\"='Frank';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was Class AAA during the school year of 2000-01?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaa\" FROM \"team\" WHERE \"school_year\"='2000-01';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was Class AAA during the same year that Class A was (tie) Apple Springs/Texline?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaa\" FROM \"team\" WHERE \"class_a\"='(tie) Apple Springs/Texline';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was Class AAAAA during the school year of 1995-96?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaaaa\" FROM \"team\" WHERE \"school_year\"='1995-96';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was Class AAA during the same year that Class AAAAA was Brownsville Pace?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaa\" FROM \"team\" WHERE \"class_aaaaa\"='Brownsville Pace';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What was the total number of Class AAA during the same year that Class AAA was White Oak?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"class_aa\") FROM \"team\" WHERE \"class_aaa\"='White Oak';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10392906_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How many records are listed on Friday, May 25?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team_record\") FROM \"table1_10392906_2\" WHERE \"date\"='Friday, May 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10392906_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How many opponents were played on Saturday, June 9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponent\") FROM \"table1_10392906_2\" WHERE \"date\"='Saturday, June 9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10392906_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: In what week was the first game played at the Commerzbank-Arena?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"week\") FROM \"table1_10392906_2\" WHERE \"game_site\"='Commerzbank-Arena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10413597_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"setting\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text\n);\n\nQuestion: What was the original air date of an episode set in 1544?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_10413597_5\" WHERE \"setting\"='1544';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10413597_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"setting\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many settings where there for episode 29 of the season?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"setting\") FROM \"table1_10413597_5\" WHERE \"no_in_series\"=29;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10413597_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"setting\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote the episode that was set in winter 1541/february 13, 1542?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_10413597_5\" WHERE \"setting\"='Winter 1541/February 13, 1542';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10413597_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"setting\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode number of the season was \"The Northern Uprising\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_season\" FROM \"table1_10413597_4\" WHERE \"title\"='\\\"The Northern Uprising\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"date\" text,\n \"album_name\" text,\n \"track\" text,\n \"track_title\" text,\n \"lyricist\" text,\n \"music_genre_style\" text,\n \"major_instrument_s\" text,\n \"lyrics_theme_style\" text,\n \"duration\" text\n);\n\nQuestion: What is the name of the track that lasts 5:30?"
},
{
"role": "assistant",
"content": "SELECT \"track_title\" FROM \"song_list\" WHERE \"duration\"='5:30';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"date\" text,\n \"album_name\" text,\n \"track\" text,\n \"track_title\" text,\n \"lyricist\" text,\n \"music_genre_style\" text,\n \"major_instrument_s\" text,\n \"lyrics_theme_style\" text,\n \"duration\" text\n);\n\nQuestion: What is the album namethat has the track title Sweetness \u751c\u751c\u7684 (ti\u00e1n ti\u00e1n de)?"
},
{
"role": "assistant",
"content": "SELECT \"album_name\" FROM \"song_list\" WHERE \"track_title\"='Sweetness \u751c\u751c\u7684 (Ti\u00e1n ti\u00e1n de)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"date\" text,\n \"album_name\" text,\n \"track\" text,\n \"track_title\" text,\n \"lyricist\" text,\n \"music_genre_style\" text,\n \"major_instrument_s\" text,\n \"lyrics_theme_style\" text,\n \"duration\" text\n);\n\nQuestion: What is the duration of the song where the major instrument is the piano and the date is 2004-02-03?"
},
{
"role": "assistant",
"content": "SELECT \"duration\" FROM \"song_list\" WHERE \"major_instrument_s\"='Piano' AND \"date\"='2004-02-03';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"date\" text,\n \"album_name\" text,\n \"track\" text,\n \"track_title\" text,\n \"lyricist\" text,\n \"music_genre_style\" text,\n \"major_instrument_s\" text,\n \"lyrics_theme_style\" text,\n \"duration\" text\n);\n\nQuestion: What is the total number of lyricist where the lyrics theme is romance and the song lasts 3:50?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lyricist\") FROM \"song_list\" WHERE \"lyrics_theme_style\"='Romance' AND \"duration\"='3:50';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"date\" text,\n \"album_name\" text,\n \"track\" text,\n \"track_title\" text,\n \"lyricist\" text,\n \"music_genre_style\" text,\n \"major_instrument_s\" text,\n \"lyrics_theme_style\" text,\n \"duration\" text\n);\n\nQuestion: What is the major instrument of the song that lasts 4:32? "
},
{
"role": "assistant",
"content": "SELECT \"major_instrument_s\" FROM \"song_list\" WHERE \"duration\"='4:32';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"song_list\" (\n \"date\" text,\n \"album_name\" text,\n \"track\" text,\n \"track_title\" text,\n \"lyricist\" text,\n \"music_genre_style\" text,\n \"major_instrument_s\" text,\n \"lyrics_theme_style\" text,\n \"duration\" text\n);\n\nQuestion: What is the total number of music genre/style in which the lyrics are a detective story?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"music_genre_style\") FROM \"song_list\" WHERE \"lyrics_theme_style\"='Detective story';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What is the playoffs for the usl pro select league?"
},
{
"role": "assistant",
"content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"league\"='USL Pro Select League';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What is the number of the division for the 1st round?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"division\") FROM \"year_by_year\" WHERE \"open_cup\"='1st Round';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What was the team where series is formula renault 2.0 nec?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"series\"='Formula Renault 2.0 NEC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What is the total number of poles for arden international?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"poles\") FROM \"career_summary\" WHERE \"team\"='Arden International';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What is the number of wins for gp2 series for racing engineering?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"career_summary\" WHERE \"series\"='GP2 Series' AND \"team\"='Racing Engineering';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What is the number of podiums for season 2010 for campionato italiano superstars."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"podiums\") FROM \"career_summary\" WHERE \"season\"='2010' AND \"series\"='Campionato Italiano Superstars';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What is the podium for 144 points?"
},
{
"role": "assistant",
"content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"points\"=144;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_3\" (\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: How many writers had an US air date of september 25, 1993?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"writer\") FROM \"table1_10470082_3\" WHERE \"us_air_date\"='September 25, 1993';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_3\" (\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: How many villians were in No. 25?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"villains\") FROM \"table1_10470082_3\" WHERE \"no\"=25;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: what being the maximum\u00a0year\u00a0where\u00a0regular season\u00a0is 4th, northwest"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"year_by_year\" WHERE \"regular_season\"='4th, Northwest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: what is the total number of\u00a0playoffs\u00a0where\u00a0regular season\u00a0is 6th, southwest"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"playoffs\") FROM \"year_by_year\" WHERE \"regular_season\"='6th, Southwest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: what is the maximum\u00a0division"
},
{
"role": "assistant",
"content": "SELECT MAX(\"division\") FROM \"year_by_year\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: what's the\u00a0league\u00a0where\u00a0regular season\u00a0is 2nd, northwest"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"regular_season\"='2nd, Northwest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: what are all the regular season where year is 2011"
},
{
"role": "assistant",
"content": "SELECT \"regular_season\" FROM \"year_by_year\" WHERE \"year\"=2011;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_5\" (\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: How many titles have the number 11"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_10470082_5\" WHERE \"num\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_5\" (\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: How many have Mrs. briar as a villain"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"table1_10470082_5\" WHERE \"villains\"='Mrs. Briar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_5\" (\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: how many have the number 8"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"table1_10470082_5\" WHERE \"num\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_5\" (\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: How many have the title \"the tale of the room for rent\""
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num\") FROM \"table1_10470082_5\" WHERE \"title\"='\\\"The Tale of the Room for Rent\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_6\" (\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: What is the name of the episode told by Kiki and directed by Will Dixon?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_10470082_6\" WHERE \"storyteller\"='Kiki' AND \"director\"='Will Dixon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_6\" (\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 storyteller in the episode called \"The Tale of the Jagged Sign\"?"
},
{
"role": "assistant",
"content": "SELECT \"storyteller\" FROM \"table1_10470082_6\" WHERE \"title\"='\\\"The Tale of the Jagged Sign\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_6\" (\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 #3?"
},
{
"role": "assistant",
"content": "SELECT \"writer\" FROM \"table1_10470082_6\" WHERE \"num\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_7\" (\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 are the villains in the episode titled \"The Tale of the Forever Game\"?"
},
{
"role": "assistant",
"content": "SELECT \"villains\" FROM \"table1_10470082_7\" WHERE \"title\"='\\\"The Tale of The Forever Game\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_7\" (\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: How many villains appeared in the episode titled \"The Tale of the Virtual Pets\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"villains\") FROM \"table1_10470082_7\" WHERE \"title\"='\\\"The Tale of The Virtual Pets\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_7\" (\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 are the villains in the episodes where Megan is the storyteller and Lorette LeBlanc is the director?"
},
{
"role": "assistant",
"content": "SELECT \"villains\" FROM \"table1_10470082_7\" WHERE \"storyteller\"='Megan' AND \"director\"='Lorette LeBlanc';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_10470082_7\" (\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: What is the largest # for an episode that was written by Allison Lea Bingeman?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"table1_10470082_7\" WHERE \"writer\"='Allison Lea Bingeman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fisher_s_iris_data\" (\n \"sepal_length\" text,\n \"sepal_width\" text,\n \"petal_length\" text,\n \"petal_width\" text,\n \"species\" text\n);\n\nQuestion: Name the species when petal width is 2.0 and petal length is 4.9"
},
{
"role": "assistant",
"content": "SELECT \"species\" FROM \"fisher_s_iris_data\" WHERE \"petal_width\"='2.0' AND \"petal_length\"='4.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fisher_s_iris_data\" (\n \"sepal_length\" text,\n \"sepal_width\" text,\n \"petal_length\" text,\n \"petal_width\" text,\n \"species\" text\n);\n\nQuestion: Name the sepal width for i.virginica with petal length of 5.1"
},
{
"role": "assistant",
"content": "SELECT \"sepal_width\" FROM \"fisher_s_iris_data\" WHERE \"species\"='I.virginica' AND \"petal_length\"='5.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fisher_s_iris_data\" (\n \"sepal_length\" text,\n \"sepal_width\" text,\n \"petal_length\" text,\n \"petal_width\" text,\n \"species\" text\n);\n\nQuestion: Name the number of species with sepal width of 3.4 and sepal length of 5.4"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"species\") FROM \"fisher_s_iris_data\" WHERE \"sepal_width\"='3.4' AND \"sepal_length\"='5.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fisher_s_iris_data\" (\n \"sepal_length\" text,\n \"sepal_width\" text,\n \"petal_length\" text,\n \"petal_width\" text,\n \"species\" text\n);\n\nQuestion: Name the sepal length for sepal width of 2.8 and petal length of 5.1"
},
{
"role": "assistant",
"content": "SELECT \"sepal_length\" FROM \"fisher_s_iris_data\" WHERE \"sepal_width\"='2.8' AND \"petal_length\"='5.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fisher_s_iris_data\" (\n \"sepal_length\" text,\n \"sepal_width\" text,\n \"petal_length\" text,\n \"petal_width\" text,\n \"species\" text\n);\n\nQuestion: Name the sepal width when sepal length is 6.5 and petal width is 2.2"
},
{
"role": "assistant",
"content": "SELECT \"sepal_width\" FROM \"fisher_s_iris_data\" WHERE \"sepal_length\"='6.5' AND \"petal_width\"='2.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fisher_s_iris_data\" (\n \"sepal_length\" text,\n \"sepal_width\" text,\n \"petal_length\" text,\n \"petal_width\" text,\n \"species\" text\n);\n\nQuestion: Name the sepal lengh when sepal width is 2.9 and petal width 1.3"
},
{
"role": "assistant",
"content": "SELECT \"sepal_length\" FROM \"fisher_s_iris_data\" WHERE \"sepal_width\"='2.9' AND \"petal_width\"='1.3';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.