chat_prompt
stringlengths 438
1.53k
|
|---|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25703_1\" (\n \"january_september_2013\" text,\n \"birth_2013\" real,\n \"birth_2012\" real,\n \"death_2013\" real,\n \"death_2012\" text\n);\n\nQuestion: What are the death/2012 number when death/2013 is 140 and January\u2013September 2013 is Moscow Oblast?"
},
{
"role": "assistant",
"content": "SELECT \"death_2012\" FROM \"table1_25703_1\" WHERE \"death_2013\"=140 AND \"january_september_2013\"='Moscow Oblast';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25703_1\" (\n \"january_september_2013\" text,\n \"birth_2013\" real,\n \"birth_2012\" real,\n \"death_2013\" real,\n \"death_2012\" text\n);\n\nQuestion: How many figures for birth/2013 when January-September is Oryol Oblast?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"birth_2013\") FROM \"table1_25703_1\" WHERE \"january_september_2013\"='Oryol Oblast';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_wesleyan_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many touchdowns did the player took which gained 25 points?"
},
{
"role": "assistant",
"content": "SELECT \"touchdowns\" FROM \"michigan_65_ohio_wesleyan_0\" WHERE \"points\"=25;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_wesleyan_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many maximum points did Curtis scored?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"michigan_65_ohio_wesleyan_0\" WHERE \"player\"='Curtis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_wesleyan_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many touchdowns did the left guard took?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"touchdowns\") FROM \"michigan_65_ohio_wesleyan_0\" WHERE \"position\"='Left guard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_wesleyan_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many numbers were recorded on the fields goals of the Left End player?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"field_goals\") FROM \"michigan_65_ohio_wesleyan_0\" WHERE \"position\"='Left end';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_wesleyan_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What was the minimum touchdowns of the Fullback player?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"touchdowns\") FROM \"michigan_65_ohio_wesleyan_0\" WHERE \"position\"='Fullback';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_70_albion_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many touchdowns did the fullback score?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"touchdowns\") FROM \"michigan_70_albion_0\" WHERE \"position\"='Fullback';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_70_albion_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many figures are provided for Weeks' field goals?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"field_goals\") FROM \"michigan_70_albion_0\" WHERE \"player\"='Weeks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_70_albion_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What is the most points recorded for a right halfback?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"michigan_70_albion_0\" WHERE \"position\"='Right halfback';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_70_albion_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Was Magoffin a starting player?"
},
{
"role": "assistant",
"content": "SELECT \"starter\" FROM \"michigan_70_albion_0\" WHERE \"player\"='Magoffin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_70_albion_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Which player was at position left tackle?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"michigan_70_albion_0\" WHERE \"position\"='Left tackle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716399_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the original air date for the episode written by daniel dratch?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_25716399_1\" WHERE \"written_by\"='Daniel Dratch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716399_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What season was an episode directed by wendey stanzler?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_season\") FROM \"table1_25716399_1\" WHERE \"directed_by\"='Wendey Stanzler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716399_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What was the original air date where there were u.s. viewers (millions) is 5.60?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_25716399_1\" WHERE \"u_s_viewers_millions\"='5.60';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716399_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who was the writer for season 14?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_25716399_1\" WHERE \"no_in_season\"=14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716399_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the episode where the original air date is july20,2007?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_25716399_1\" WHERE \"original_air_date\"='July20,2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716399_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: what season was written by jonathan collier?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_season\") FROM \"table1_25716399_1\" WHERE \"written_by\"='Jonathan Collier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716397_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many episodes were written by Tom Scharpling and Daniel Dratch?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_season\") FROM \"table1_25716397_1\" WHERE \"written_by\"='Tom Scharpling and Daniel Dratch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716397_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many people directed the episode that Joe Toplyn wrote?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_25716397_1\" WHERE \"written_by\"='Joe Toplyn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716397_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many titles does the episode written by Joe Toplyn have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_25716397_1\" WHERE \"written_by\"='Joe Toplyn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716397_1\" (\n \"series_no\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many directors of episode 55?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_25716397_1\" WHERE \"series_no\"=55;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25716401_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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many titles are there for the episode written by Tom Scharpling? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_25716401_1\" WHERE \"written_by\"='Tom Scharpling';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"red_dwarf_x\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"dave_viewers\" real,\n \"dave_rank\" real,\n \"rank_cable\" real,\n \"dave_ja_vu_viewers\" real,\n \"total_viewers\" real\n);\n\nQuestion: Which episode number aired on 18 october 2012?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episode_no\") FROM \"red_dwarf_x\" WHERE \"airdate\"='18 October 2012';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"red_dwarf_x\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"dave_viewers\" real,\n \"dave_rank\" real,\n \"rank_cable\" real,\n \"dave_ja_vu_viewers\" real,\n \"total_viewers\" real\n);\n\nQuestion: What is the lowest cable rank of an episode with 1464000 viewers?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank_cable\") FROM \"red_dwarf_x\" WHERE \"total_viewers\"=1464000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"red_dwarf_x\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"dave_viewers\" real,\n \"dave_rank\" real,\n \"rank_cable\" real,\n \"dave_ja_vu_viewers\" real,\n \"total_viewers\" real\n);\n\nQuestion: What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"dave_viewers\") FROM \"red_dwarf_x\" WHERE \"dave_ja_vu_viewers\"=119000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"red_dwarf_x\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"dave_viewers\" real,\n \"dave_rank\" real,\n \"rank_cable\" real,\n \"dave_ja_vu_viewers\" real,\n \"total_viewers\" real\n);\n\nQuestion: How many episodes aired on 25 october 2012?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_viewers\") FROM \"red_dwarf_x\" WHERE \"airdate\"='25 October 2012';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"red_dwarf_x\" (\n \"episode_no\" real,\n \"airdate\" text,\n \"dave_viewers\" real,\n \"dave_rank\" real,\n \"rank_cable\" real,\n \"dave_ja_vu_viewers\" real,\n \"total_viewers\" real\n);\n\nQuestion: What was the airdate of the episode with 106000 dave ja vu viewers?"
},
{
"role": "assistant",
"content": "SELECT \"airdate\" FROM \"red_dwarf_x\" WHERE \"dave_ja_vu_viewers\"=106000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25721_4\" (\n \"release\" text,\n \"num_of_discs\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: How many DVDs where were in the complete collection series 1-8 with extras?"
},
{
"role": "assistant",
"content": "SELECT \"num_of_discs\" FROM \"table1_25721_4\" WHERE \"release\"='The Complete Collection Series 1-8 with extras';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25721_4\" (\n \"release\" text,\n \"num_of_discs\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: Which release had 6 DVDs?"
},
{
"role": "assistant",
"content": "SELECT \"release\" FROM \"table1_25721_4\" WHERE \"num_of_discs\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25721_4\" (\n \"release\" text,\n \"num_of_discs\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: How many region 1's did back to earth have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"region_1\") FROM \"table1_25721_4\" WHERE \"release\"='Back to Earth';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many field goals did Walter Rheinschild have? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"field_goals\") FROM \"scoring_leaders\" WHERE \"player\"='Walter Rheinschild';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Jack Loell had how many extra points? "
},
{
"role": "assistant",
"content": "SELECT \"extra_points\" FROM \"scoring_leaders\" WHERE \"player\"='Jack Loell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many points did Donald Green score?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"scoring_leaders\" WHERE \"player\"='Donald Green';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many field goals did Donald Green score?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"field_goals\") FROM \"scoring_leaders\" WHERE \"player\"='Donald Green';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What was the least amount of points scored?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"extra_points\") FROM \"scoring_leaders\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many extra points did Stanfield Wells make?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"extra_points\") FROM \"scoring_leaders\" WHERE \"player\"='Stanfield Wells';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What are the most points listed?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"scoring_leaders\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many touchdowns were the when there was more than 1.0 extra point?"
},
{
"role": "assistant",
"content": "SELECT \"touchdowns\" FROM \"scoring_leaders\" WHERE \"extra_points\">1.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the player/s when there were 20 points with less than 1.0 extra point ."
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"scoring_leaders\" WHERE \"extra_points\"<1.0 AND \"points\"=20;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What were the least amount of field goals when Frederick L. Conklin played?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"field_goals\") FROM \"scoring_leaders\" WHERE \"player\"='Frederick L. Conklin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What is the least number of extra points? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"extra_points\") FROM \"scoring_leaders\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many points did William Wasmund have?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"scoring_leaders\" WHERE \"player\"='William Wasmund';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many touchdowns did the player with 10 points have?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"touchdowns\") FROM \"scoring_leaders\" WHERE \"points\"=10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many points does George M. Lawton have?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"scoring_leaders\" WHERE \"player\"='George M. Lawton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the player for 1 touchdowns"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"scoring_leaders\" WHERE \"touchdowns\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the least extra points"
},
{
"role": "assistant",
"content": "SELECT MIN(\"extra_points\") FROM \"scoring_leaders\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the least extra points"
},
{
"role": "assistant",
"content": "SELECT MIN(\"extra_points\") FROM \"scoring_leaders\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1_2009\" (\n \"no\" real,\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" real\n);\n\nQuestion: Who directed episode number 2?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"series_1_2009\" WHERE \"no\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1_2009\" (\n \"no\" real,\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" real\n);\n\nQuestion: What was the episode number that had 797000 viewers?"
},
{
"role": "assistant",
"content": "SELECT \"no\" FROM \"series_1_2009\" WHERE \"viewing_figure\"=797000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1_2009\" (\n \"no\" real,\n \"num\" real,\n \"episode\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text,\n \"viewing_figure\" real\n);\n\nQuestion: Who directed the episode directed by colin teague?"
},
{
"role": "assistant",
"content": "SELECT \"writer\" FROM \"series_1_2009\" WHERE \"director\"='Colin Teague';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes with the production code CA106 are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"written_by\") FROM \"table1_25740548_2\" WHERE \"production_code\"='CA106';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who was the director for episodes that were written be Matthew Lau?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_25740548_2\" WHERE \"written_by\"='Matthew Lau';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episode were written by Brett Conrad?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_25740548_2\" WHERE \"written_by\"='Brett Conrad';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes were directed by Tim Matheson?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_25740548_2\" WHERE \"directed_by\"='Tim Matheson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_2\" (\n \"series_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes were directed by Rod Hardy?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_25740548_2\" WHERE \"directed_by\"='Rod Hardy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the episode with 3.92 million US viewers?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_25740548_3\" WHERE \"u_s_viewers_million\"='3.92';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many original air dates are there for the episode with code CA210?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_25740548_3\" WHERE \"production_code\"='CA210';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25740548_3\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode \"The Outsiders\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_25740548_3\" WHERE \"title\"='\\\"The Outsiders\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" real,\n \"rank_night\" real\n);\n\nQuestion: How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode_number\") FROM \"weekly_ratings\" WHERE \"rating_share_18_49\"='0.7/2' AND \"rating\"='2.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" real,\n \"rank_night\" real\n);\n\nQuestion: What is the lowest episode number that had a ratings/share (18-49) of 1.1/3?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episode_number\") FROM \"weekly_ratings\" WHERE \"rating_share_18_49\"='1.1/3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" real,\n \"rank_night\" real\n);\n\nQuestion: What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?"
},
{
"role": "assistant",
"content": "SELECT \"rating\" FROM \"weekly_ratings\" WHERE \"share\"=4 AND \"rating_share_18_49\"='0.7/2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"weekly_ratings\" (\n \"episode_number\" real,\n \"episode\" text,\n \"rating\" text,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" text,\n \"rank_timeslot\" real,\n \"rank_night\" real\n);\n\nQuestion: What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank_night\") FROM \"weekly_ratings\" WHERE \"rating_share_18_49\"='1.3/4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_singles\" (\n \"entered_a\" text,\n \"weeks_in_top_10\" real,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_at_number_1\" real\n);\n\nQuestion: What is the song released by Travis?"
},
{
"role": "assistant",
"content": "SELECT \"single\" FROM \"top_10_singles\" WHERE \"artist\"='Travis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_singles\" (\n \"entered_a\" text,\n \"weeks_in_top_10\" real,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_at_number_1\" real\n);\n\nQuestion: error (see notes)"
},
{
"role": "assistant",
"content": "SELECT MIN(\"weeks_at_number_1\") FROM \"top_10_singles\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_singles\" (\n \"entered_a\" text,\n \"weeks_in_top_10\" real,\n \"single\" text,\n \"artist\" text,\n \"peak\" real,\n \"peak_reached_a\" text,\n \"weeks_at_number_1\" real\n);\n\nQuestion: What is the song by the musician panjabi mc?"
},
{
"role": "assistant",
"content": "SELECT \"single\" FROM \"top_10_singles\" WHERE \"artist\"='Panjabi MC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Where was the round 1 race?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"race_calendar_and_results\" WHERE \"round\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Who won the April 11 race?"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"race_calendar_and_results\" WHERE \"date\"='April 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"race_calendar_and_results\" WHERE \"pole_position\"='Daniel Erickson' AND \"fastest_lap\"='Cole Morgan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: How many rounds were played on May 8?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"race_calendar_and_results\" WHERE \"date\"='May 8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"race_calendar_and_results\" WHERE \"fastest_lap\"='Victor Carbone' AND \"location\"='Braselton, Georgia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: Where did Audette Racing win?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"race_calendar_and_results\" WHERE \"winning_team\"='Audette Racing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25764073_3\" (\n \"season_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the directors for peter gawler"
},
{
"role": "assistant",
"content": "SELECT \"director_s\" FROM \"table1_25764073_3\" WHERE \"writer_s\"='Peter Gawler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25764073_3\" (\n \"season_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the least episode number for anne brooksbank and vicki madden"
},
{
"role": "assistant",
"content": "SELECT MIN(\"episode_num\") FROM \"table1_25764073_3\" WHERE \"writer_s\"='Anne Brooksbank and Vicki Madden';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25764073_3\" (\n \"season_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"original_air_date\" text\n);\n\nQuestion: Name the title for season number 35"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_25764073_3\" WHERE \"season_num\"=35;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"conference_player_of_the_month_selection\" (\n \"selection\" real,\n \"month\" text,\n \"season\" text,\n \"team_record\" text,\n \"points_per_game\" text,\n \"field_goal_percentage\" text,\n \"rebounds_per_game\" text,\n \"blocks_per_game\" text\n);\n\nQuestion: What were the points per game in the selection where the rebounds per game were 15.0?"
},
{
"role": "assistant",
"content": "SELECT \"points_per_game\" FROM \"conference_player_of_the_month_selection\" WHERE \"rebounds_per_game\"='15.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"conference_player_of_the_month_selection\" (\n \"selection\" real,\n \"month\" text,\n \"season\" text,\n \"team_record\" text,\n \"points_per_game\" text,\n \"field_goal_percentage\" text,\n \"rebounds_per_game\" text,\n \"blocks_per_game\" text\n);\n\nQuestion: What were the blocks per game in the selection where the field goal percentage was .594 (2nd)?"
},
{
"role": "assistant",
"content": "SELECT \"blocks_per_game\" FROM \"conference_player_of_the_month_selection\" WHERE \"field_goal_percentage\"='.594 (2nd)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formation_of_the_1st_arkansas_state_troo\" (\n \"company\" text,\n \"name\" text,\n \"county\" text,\n \"militia_regiment\" text,\n \"commander\" text,\n \"organization_date\" text\n);\n\nQuestion: Name the name for company d"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"formation_of_the_1st_arkansas_state_troo\" WHERE \"company\"='Company D';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formation_of_the_1st_arkansas_state_troo\" (\n \"company\" text,\n \"name\" text,\n \"county\" text,\n \"militia_regiment\" text,\n \"commander\" text,\n \"organization_date\" text\n);\n\nQuestion: Name the name for organization date being unknown"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"formation_of_the_1st_arkansas_state_troo\" WHERE \"organization_date\"='Unknown';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formation_of_the_1st_arkansas_state_troo\" (\n \"company\" text,\n \"name\" text,\n \"county\" text,\n \"militia_regiment\" text,\n \"commander\" text,\n \"organization_date\" text\n);\n\nQuestion: Name the name for desha"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"formation_of_the_1st_arkansas_state_troo\" WHERE \"county\"='Desha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"formation_of_the_1st_arkansas_state_troo\" (\n \"company\" text,\n \"name\" text,\n \"county\" text,\n \"militia_regiment\" text,\n \"commander\" text,\n \"organization_date\" text\n);\n\nQuestion: Name the company for desha county"
},
{
"role": "assistant",
"content": "SELECT \"company\" FROM \"formation_of_the_1st_arkansas_state_troo\" WHERE \"county\"='Desha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1956_57\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who wrote the episode with series number 56?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_2_1956_57\" WHERE \"series_num\"=56;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1956_57\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: What is largest series number for the episode that aired February 16, 1957?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"series_num\") FROM \"season_2_1956_57\" WHERE \"airdate\"='February 16, 1957';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1956_57\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who directed the episodes that aired December 15, 1956? "
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"season_2_1956_57\" WHERE \"airdate\"='December 15, 1956';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1956_57\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who wrote the episode that aired December 1, 1956? "
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_2_1956_57\" WHERE \"airdate\"='December 1, 1956';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_14_1968_69\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who was the writer of the episode that originally aired on October 14, 1968?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_14_1968_69\" WHERE \"airdate\"='October 14, 1968';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_15_1969_70\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: What is the season # for the episode with air date february 2, 1970?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season_num\") FROM \"season_15_1969_70\" WHERE \"airdate\"='February 2, 1970';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_18_1972_73\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who was the writer who wrote the episode that was aired on September 11, 1972?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_18_1972_73\" WHERE \"airdate\"='September 11, 1972';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_20_1974_75\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who directed episode number 626 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"season_20_1974_75\" WHERE \"series_num\"=626;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1957_58\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who are all the writers of episodes in season 24?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_3_1957_58\" WHERE \"season_num\"=24;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1957_58\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: What is the title of the episode that aired on May 10, 1958?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"season_3_1957_58\" WHERE \"airdate\"='May 10, 1958';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_5_1959_60\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who was the writer of episode 15?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"season_5_1959_60\" WHERE \"season_num\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_5_1959_60\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: What is the title of #33?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"season_5_1959_60\" WHERE \"season_num\"=33;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_5_1959_60\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: How many directors worked on #158?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"director\") FROM \"season_5_1959_60\" WHERE \"series_num\"=158;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_1958_59\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: How many writers were for season #1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"writer_s\") FROM \"season_4_1958_59\" WHERE \"season_num\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_1958_59\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"airdate\" text\n);\n\nQuestion: Who was the director for the episode on May 2, 1959?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"season_4_1958_59\" WHERE \"airdate\"='May 2, 1959';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25810656_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Name the number in series for production code being 204"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_25810656_3\" WHERE \"production_code\"=204;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25810656_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Name the number of title for number in series being 25"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_25810656_3\" WHERE \"no_in_series\"=25;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_riders_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What was the latest stage won by Mikhail Ignatiev? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"stage\") FROM \"classification_leadership\" WHERE \"winner\"='Mikhail Ignatiev';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25815180_1\" (\n \"sec\" real,\n \"offence\" text,\n \"definition_example_or_notes\" text,\n \"civilian\" text,\n \"summary_hearing\" text,\n \"max_sentence_at_court_martial\" text\n);\n\nQuestion: What is the summmary hearing when the definiton is listed at flying an aircraft so as to annoy any person?"
},
{
"role": "assistant",
"content": "SELECT \"summary_hearing\" FROM \"table1_25815180_1\" WHERE \"definition_example_or_notes\"='Flying an aircraft so as to annoy any person';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.