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_1949994_7\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" text,\n \"premiere_air_dates\" text\n);\n\nQuestion: Where was the season that ended on June 25 located?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"table1_1949994_7\" WHERE \"end_date\"='June 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_7\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" text,\n \"premiere_air_dates\" text\n);\n\nQuestion: When did the season that end in July ? start?"
},
{
"role": "assistant",
"content": "SELECT \"start_date\" FROM \"table1_1949994_7\" WHERE \"end_date\"='July ?';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_7\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" text,\n \"premiere_air_dates\" text\n);\n\nQuestion: When did the season with 1 team format premiere?"
},
{
"role": "assistant",
"content": "SELECT \"premiere_air_dates\" FROM \"table1_1949994_7\" WHERE \"format\"='1 Team';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_7\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" text,\n \"premiere_air_dates\" text\n);\n\nQuestion: What's the format of the season that ended on June 25?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"table1_1949994_7\" WHERE \"end_date\"='June 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_7\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" text,\n \"premiere_air_dates\" text\n);\n\nQuestion: What's season 3's premiere date?"
},
{
"role": "assistant",
"content": "SELECT \"premiere_air_dates\" FROM \"table1_1949994_7\" WHERE \"no\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_7\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" text,\n \"premiere_air_dates\" text\n);\n\nQuestion: When did the season located in the Netherlands premier?"
},
{
"role": "assistant",
"content": "SELECT \"premiere_air_dates\" FROM \"table1_1949994_7\" WHERE \"country\"='The Netherlands';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19501664_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: Name the viewers for the episode directed by tony phelan"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_19501664_1\" WHERE \"directed_by\"='Tony Phelan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19501664_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: Name the original air date for 15.74 viewers"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_19501664_1\" WHERE \"u_s_viewers_millions\"='15.74';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19501664_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: Name the title for us viewers being 18.29"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_19501664_1\" WHERE \"u_s_viewers_millions\"='18.29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19495707_1\" (\n \"application\" text,\n \"latest_release_date_and_version\" text,\n \"developed_by\" text,\n \"platforms\" text,\n \"mainly_used_for\" text,\n \"license\" text\n);\n\nQuestion: Name the platforms for cityengine"
},
{
"role": "assistant",
"content": "SELECT \"platforms\" FROM \"table1_19495707_1\" WHERE \"application\"='CityEngine';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19495707_1\" (\n \"application\" text,\n \"latest_release_date_and_version\" text,\n \"developed_by\" text,\n \"platforms\" text,\n \"mainly_used_for\" text,\n \"license\" text\n);\n\nQuestion: Name the license for e-on vue"
},
{
"role": "assistant",
"content": "SELECT \"license\" FROM \"table1_19495707_1\" WHERE \"application\"='E-on Vue';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19495707_1\" (\n \"application\" text,\n \"latest_release_date_and_version\" text,\n \"developed_by\" text,\n \"platforms\" text,\n \"mainly_used_for\" text,\n \"license\" text\n);\n\nQuestion: Name the number of developed by for solid edge"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"developed_by\") FROM \"table1_19495707_1\" WHERE \"application\"='Solid Edge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19495707_1\" (\n \"application\" text,\n \"latest_release_date_and_version\" text,\n \"developed_by\" text,\n \"platforms\" text,\n \"mainly_used_for\" text,\n \"license\" text\n);\n\nQuestion: Name the license for 2009-05-25 v 7.61"
},
{
"role": "assistant",
"content": "SELECT \"license\" FROM \"table1_19495707_1\" WHERE \"latest_release_date_and_version\"='2009-05-25 v 7.61';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19495707_1\" (\n \"application\" text,\n \"latest_release_date_and_version\" text,\n \"developed_by\" text,\n \"platforms\" text,\n \"mainly_used_for\" text,\n \"license\" text\n);\n\nQuestion: Name the number of application for modeling, computer aided design, animation"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"application\") FROM \"table1_19495707_1\" WHERE \"mainly_used_for\"='Modeling, Computer Aided Design, Animation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19495707_1\" (\n \"application\" text,\n \"latest_release_date_and_version\" text,\n \"developed_by\" text,\n \"platforms\" text,\n \"mainly_used_for\" text,\n \"license\" text\n);\n\nQuestion: Name the application for caligari corporation"
},
{
"role": "assistant",
"content": "SELECT \"application\" FROM \"table1_19495707_1\" WHERE \"developed_by\"='Caligari Corporation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_8\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" real,\n \"premiere_air_dates\" text\n);\n\nQuestion: What series number started production on June 6?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"table1_1949994_8\" WHERE \"start_date\"='June 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_8\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" real,\n \"premiere_air_dates\" text\n);\n\nQuestion: What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"table1_1949994_8\" WHERE \"local_title\"='Fort Boyard: Ultimate Challenge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_8\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" real,\n \"premiere_air_dates\" text\n);\n\nQuestion: What were the television air dates for the series that had a production start date of June 16?"
},
{
"role": "assistant",
"content": "SELECT \"premiere_air_dates\" FROM \"table1_1949994_8\" WHERE \"start_date\"='June 16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_8\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" real,\n \"premiere_air_dates\" text\n);\n\nQuestion: What series number had the local title of Fort Boyard?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no\") FROM \"table1_1949994_8\" WHERE \"local_title\"='Fort Boyard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1949994_8\" (\n \"no\" real,\n \"country\" text,\n \"local_title\" text,\n \"format\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"episodes\" real,\n \"premiere_air_dates\" text\n);\n\nQuestion: What was the minimum number of episodes in any of the series? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"episodes\") FROM \"table1_1949994_8\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19508635_1\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Name the week number for the beatles"
},
{
"role": "assistant",
"content": "SELECT \"week_num\" FROM \"table1_19508635_1\" WHERE \"theme\"='The Beatles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19508635_1\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Name the result for 1980s"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"table1_19508635_1\" WHERE \"theme\"='1980s';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19508635_1\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Name the order number for 1960s"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"table1_19508635_1\" WHERE \"theme\"='1960s';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19508635_1\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Name the result for dolly parton"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"table1_19508635_1\" WHERE \"original_artist\"='Dolly Parton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19508635_1\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Name the song choice for michael jackson"
},
{
"role": "assistant",
"content": "SELECT \"song_choice\" FROM \"table1_19508635_1\" WHERE \"original_artist\"='Michael Jackson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_three_2011\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What is the largest series number? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"series_num\") FROM \"season_three_2011\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_three_2011\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What is the latest episode number with the title of Jerusalem? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"episode_num\") FROM \"season_three_2011\" WHERE \"title\"='Jerusalem';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_three_2011\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What was the original air date of the episode written by Michelle Offen?"
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"season_three_2011\" WHERE \"written_by\"='Michelle Offen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_three_2011\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What is the title of the episode written by Vanessa Bates? "
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"season_three_2011\" WHERE \"written_by\"='Vanessa Bates';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_three_2011\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What was the original air date for the episode Calle, The Transit of Venus? "
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"season_three_2011\" WHERE \"title\"='The Transit of Venus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_games_of_400_or_more_yards_by_cat\" (\n \"rank\" text,\n \"rating\" text,\n \"completion_percentage\" text,\n \"touchdown_percentage\" text,\n \"yards_per_attempt\" text,\n \"total_yards\" text\n);\n\nQuestion: What is the completion percentage when yards per attempt was done by Steve McNair : 2003?"
},
{
"role": "assistant",
"content": "SELECT \"completion_percentage\" FROM \"top_10_games_of_400_or_more_yards_by_cat\" WHERE \"yards_per_attempt\"='Steve McNair : 2003';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_games_of_400_or_more_yards_by_cat\" (\n \"rank\" text,\n \"rating\" text,\n \"completion_percentage\" text,\n \"touchdown_percentage\" text,\n \"yards_per_attempt\" text,\n \"total_yards\" text\n);\n\nQuestion: What rank has a rating of 146.8? "
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"top_10_games_of_400_or_more_yards_by_cat\" WHERE \"rating\"='146.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_10_games_of_400_or_more_yards_by_cat\" (\n \"rank\" text,\n \"rating\" text,\n \"completion_percentage\" text,\n \"touchdown_percentage\" text,\n \"yards_per_attempt\" text,\n \"total_yards\" text\n);\n\nQuestion: How many yards per attempt were there when total yards were 513?"
},
{
"role": "assistant",
"content": "SELECT \"yards_per_attempt\" FROM \"top_10_games_of_400_or_more_yards_by_cat\" WHERE \"total_yards\"='513';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_two_2009\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What is the series number for the episode written by Kristen Dunphy and David Ogilvy?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"series_num\") FROM \"season_two_2009\" WHERE \"written_by\"='Kristen Dunphy and David Ogilvy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_two_2009\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: If the title if the Lost Boy, how many directors were there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"season_two_2009\" WHERE \"title\"='The Lost Boy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_two_2009\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"viewers\" real,\n \"original_airdate\" text\n);\n\nQuestion: What is the title for the episode that written by Michael Miller?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"season_two_2009\" WHERE \"written_by\"='Michael Miller';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"total_playoff_berths_while_in_the_afl_af\" (\n \"team\" text,\n \"division_titles\" real,\n \"playoff_berths\" real,\n \"afl_titles\" real,\n \"afc_championships\" real,\n \"super_bowl_championships\" real\n);\n\nQuestion: If the playoff berth is 17, what is the AFC championship number?"
},
{
"role": "assistant",
"content": "SELECT \"afc_championships\" FROM \"total_playoff_berths_while_in_the_afl_af\" WHERE \"playoff_berths\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"total_playoff_berths_while_in_the_afl_af\" (\n \"team\" text,\n \"division_titles\" real,\n \"playoff_berths\" real,\n \"afl_titles\" real,\n \"afc_championships\" real,\n \"super_bowl_championships\" real\n);\n\nQuestion: If the team in the New England Patriots, what is the super bowl championship minimum number?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"super_bowl_championships\") FROM \"total_playoff_berths_while_in_the_afl_af\" WHERE \"team\"='New England Patriots';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"total_playoff_berths_while_in_the_afl_af\" (\n \"team\" text,\n \"division_titles\" real,\n \"playoff_berths\" real,\n \"afl_titles\" real,\n \"afc_championships\" real,\n \"super_bowl_championships\" real\n);\n\nQuestion: What is the maximum number of AFC championships?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"afc_championships\") FROM \"total_playoff_berths_while_in_the_afl_af\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19523708_1\" (\n \"draw\" real,\n \"artist\" text,\n \"original\" text,\n \"english_meaning\" text,\n \"language\" text,\n \"authors\" text\n);\n\nQuestion: How many authors are present when the original was Carry On?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"authors\") FROM \"table1_19523708_1\" WHERE \"original\"='Carry On';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19523708_1\" (\n \"draw\" real,\n \"artist\" text,\n \"original\" text,\n \"english_meaning\" text,\n \"language\" text,\n \"authors\" text\n);\n\nQuestion: What was the draw for the english meaning Eyes that Never Lie?"
},
{
"role": "assistant",
"content": "SELECT \"draw\" FROM \"table1_19523708_1\" WHERE \"language\"='English' AND \"english_meaning\"='Eyes That Never Lie';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19523708_1\" (\n \"draw\" real,\n \"artist\" text,\n \"original\" text,\n \"english_meaning\" text,\n \"language\" text,\n \"authors\" text\n);\n\nQuestion: What is the highest draw represented?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"draw\") FROM \"table1_19523708_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19523708_1\" (\n \"draw\" real,\n \"artist\" text,\n \"original\" text,\n \"english_meaning\" text,\n \"language\" text,\n \"authors\" text\n);\n\nQuestion: Who was the artist for the origin Shake it, Europe?"
},
{
"role": "assistant",
"content": "SELECT \"artist\" FROM \"table1_19523708_1\" WHERE \"original\"='Shake It, Europe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season_2007_2008\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"arena_capacity\") FROM \"teams\" WHERE \"head_coach\"='Yuriy Korotkevich';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season_2007_2008\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti?"
},
{
"role": "assistant",
"content": "SELECT \"arena_capacity\" FROM \"teams\" WHERE \"head_coach\"='Roberto Serniotti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season_2007_2008\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: Who are the foreign players on team/s that play in Moscow?"
},
{
"role": "assistant",
"content": "SELECT \"foreign_players_max_2\" FROM \"teams\" WHERE \"town\"='Moscow';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams\" (\n \"previous_season_2007_2008\" text,\n \"team\" text,\n \"town\" text,\n \"arena_capacity\" text,\n \"website\" text,\n \"head_coach\" text,\n \"foreign_players_max_2\" text\n);\n\nQuestion: What are the previous season ranks of teams whose website is www.novavolley.narod.ru?"
},
{
"role": "assistant",
"content": "SELECT \"previous_season_2007_2008\" FROM \"teams\" WHERE \"website\"='www.novavolley.narod.ru';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_national_color_guard_competition_re\" (\n \"region\" text,\n \"wing\" text,\n \"inspection\" real,\n \"standard\" real,\n \"indoor\" real,\n \"outdoor\" real,\n \"written\" real,\n \"panel_quiz\" real,\n \"mile_run\" real,\n \"points\" real,\n \"overall\" text\n);\n\nQuestion: What are the minimum indoor results that have a 5 for inspection? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"indoor\") FROM \"2013_national_color_guard_competition_re\" WHERE \"inspection\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_national_color_guard_competition_re\" (\n \"region\" text,\n \"wing\" text,\n \"inspection\" real,\n \"standard\" real,\n \"indoor\" real,\n \"outdoor\" real,\n \"written\" real,\n \"panel_quiz\" real,\n \"mile_run\" real,\n \"points\" real,\n \"overall\" text\n);\n\nQuestion: What was the maximum number in written when the standard was 2? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"written\") FROM \"2013_national_color_guard_competition_re\" WHERE \"standard\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_national_color_guard_competition_re\" (\n \"region\" text,\n \"wing\" text,\n \"inspection\" real,\n \"standard\" real,\n \"indoor\" real,\n \"outdoor\" real,\n \"written\" real,\n \"panel_quiz\" real,\n \"mile_run\" real,\n \"points\" real,\n \"overall\" text\n);\n\nQuestion: How many point categories are there for the 3 mile run? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"2013_national_color_guard_competition_re\" WHERE \"mile_run\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_national_color_guard_competition_re\" (\n \"region\" text,\n \"wing\" text,\n \"inspection\" real,\n \"standard\" real,\n \"indoor\" real,\n \"outdoor\" real,\n \"written\" real,\n \"panel_quiz\" real,\n \"mile_run\" real,\n \"points\" real,\n \"overall\" text\n);\n\nQuestion: What is the indoor number for the NJ wing/ "
},
{
"role": "assistant",
"content": "SELECT \"indoor\" FROM \"2013_national_color_guard_competition_re\" WHERE \"wing\"='NJ';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_national_color_guard_competition_re\" (\n \"region\" text,\n \"wing\" text,\n \"inspection\" real,\n \"standard\" real,\n \"indoor\" real,\n \"outdoor\" real,\n \"written\" real,\n \"panel_quiz\" real,\n \"mile_run\" real,\n \"points\" real,\n \"overall\" text\n);\n\nQuestion: What is the indoor number for the NER region? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"indoor\") FROM \"2013_national_color_guard_competition_re\" WHERE \"region\"='NER';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_criteria\" (\n \"rank\" text,\n \"name\" text,\n \"lifespan\" text,\n \"country\" text,\n \"wins\" real,\n \"majors\" real,\n \"winning_span\" text,\n \"span_years\" real\n);\n\nQuestion: What is the winning span of the name martin kaymer?"
},
{
"role": "assistant",
"content": "SELECT \"winning_span\" FROM \"detailed_criteria\" WHERE \"name\"='Martin Kaymer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_criteria\" (\n \"rank\" text,\n \"name\" text,\n \"lifespan\" text,\n \"country\" text,\n \"wins\" real,\n \"majors\" real,\n \"winning_span\" text,\n \"span_years\" real\n);\n\nQuestion: What is the winning span in the country of England with the name of paul casey?"
},
{
"role": "assistant",
"content": "SELECT \"winning_span\" FROM \"detailed_criteria\" WHERE \"country\"='England' AND \"name\"='Paul Casey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_criteria\" (\n \"rank\" text,\n \"name\" text,\n \"lifespan\" text,\n \"country\" text,\n \"wins\" real,\n \"majors\" real,\n \"winning_span\" text,\n \"span_years\" real\n);\n\nQuestion: What is the winning span for the name of bernard gallacher?"
},
{
"role": "assistant",
"content": "SELECT \"winning_span\" FROM \"detailed_criteria\" WHERE \"name\"='Bernard Gallacher';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"detailed_criteria\" (\n \"rank\" text,\n \"name\" text,\n \"lifespan\" text,\n \"country\" text,\n \"wins\" real,\n \"majors\" real,\n \"winning_span\" text,\n \"span_years\" real\n);\n\nQuestion: What is the winning span with the rank of 5?"
},
{
"role": "assistant",
"content": "SELECT \"winning_span\" FROM \"detailed_criteria\" WHERE \"rank\"='5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19576091_1\" (\n \"scorecard\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: How many scorecards are there for the match on October 28? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"scorecard\") FROM \"table1_19576091_1\" WHERE \"date\"='October 28';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19576091_1\" (\n \"scorecard\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: How many venues were there for the match on November 6? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"venue\") FROM \"table1_19576091_1\" WHERE \"date\"='November 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19576091_1\" (\n \"scorecard\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What was the venue for the match on October 10? "
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"table1_19576091_1\" WHERE \"date\"='October 10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19576091_1\" (\n \"scorecard\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: Who was the man of the match when the Rockets won by 9 wickets? "
},
{
"role": "assistant",
"content": "SELECT \"man_of_the_match\" FROM \"table1_19576091_1\" WHERE \"result\"='Rockets won by 9 wickets';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1958768_3\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Name the vacator for wisconsin 1st"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"table1_1958768_3\" WHERE \"district\"='Wisconsin 1st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1958768_3\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Name the successor for pennsylvania 15th"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_1958768_3\" WHERE \"district\"='Pennsylvania 15th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19598014_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lmp1_winning_team\" text,\n \"lmp2_winning_team\" text,\n \"gt2_winning_team\" text,\n \"challenge_winning_team\" text,\n \"results\" text\n);\n\nQuestion: Name the circuit for #47 orbit racing "
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"table1_19598014_2\" WHERE \"challenge_winning_team\"='#47 Orbit Racing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19598014_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lmp1_winning_team\" text,\n \"lmp2_winning_team\" text,\n \"gt2_winning_team\" text,\n \"challenge_winning_team\" text,\n \"results\" text\n);\n\nQuestion: Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin"
},
{
"role": "assistant",
"content": "SELECT \"gt2_winning_team\" FROM \"table1_19598014_2\" WHERE \"lmp2_winning_team\"='Butch Leitzinger Marino Franchitti Ben Devlin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19598014_2\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lmp1_winning_team\" text,\n \"lmp2_winning_team\" text,\n \"gt2_winning_team\" text,\n \"challenge_winning_team\" text,\n \"results\" text\n);\n\nQuestion: Name the lmp 1 winning team for rnd being 2 and adrian fern\u00e1ndez luis d\u00edaz"
},
{
"role": "assistant",
"content": "SELECT \"lmp1_winning_team\" FROM \"table1_19598014_2\" WHERE \"rnd\"=2 AND \"lmp2_winning_team\"='Adrian Fern\u00e1ndez Luis D\u00edaz';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density_per_km\" real,\n \"hdi_2011\" text,\n \"capital\" text\n);\n\nQuestion: Which capitals have an area of exactly 377930 square km?"
},
{
"role": "assistant",
"content": "SELECT \"capital\" FROM \"demographics\" WHERE \"area_km\"=377930;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density_per_km\" real,\n \"hdi_2011\" text,\n \"capital\" text\n);\n\nQuestion: What is the total number of capitals that have an area of exactly 1104 square km?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"capital\") FROM \"demographics\" WHERE \"area_km\"=1104;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density_per_km\" real,\n \"hdi_2011\" text,\n \"capital\" text\n);\n\nQuestion: What capital has a population of exactly 1339724852?"
},
{
"role": "assistant",
"content": "SELECT \"capital\" FROM \"demographics\" WHERE \"population\"=1339724852;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"country\" text,\n \"area_km\" real,\n \"population\" real,\n \"population_density_per_km\" real,\n \"hdi_2011\" text,\n \"capital\" text\n);\n\nQuestion: How many populations have a capital of Hong Kong?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population\") FROM \"demographics\" WHERE \"capital\"='Hong Kong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wise_district_demographics_http_gov_bih_\" (\n \"districts_of_bihar\" text,\n \"total_population_2001\" real,\n \"male_population_2001\" real,\n \"female_population_2001\" real,\n \"growth_rate_1981_91\" text,\n \"growth_rate_1991_01\" text,\n \"sex_ratio_1991\" real,\n \"sex_ratio_2001\" real,\n \"population_density_1991\" real,\n \"population_density_2001\" real\n);\n\nQuestion: What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?"
},
{
"role": "assistant",
"content": "SELECT \"male_population_2001\" FROM \"wise_district_demographics_http_gov_bih_\" WHERE \"growth_rate_1991_01\"='36.16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wise_district_demographics_http_gov_bih_\" (\n \"districts_of_bihar\" text,\n \"total_population_2001\" real,\n \"male_population_2001\" real,\n \"female_population_2001\" real,\n \"growth_rate_1981_91\" text,\n \"growth_rate_1991_01\" text,\n \"sex_ratio_1991\" real,\n \"sex_ratio_2001\" real,\n \"population_density_1991\" real,\n \"population_density_2001\" real\n);\n\nQuestion: What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_population_2001\") FROM \"wise_district_demographics_http_gov_bih_\" WHERE \"growth_rate_1991_01\"='33.08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wise_district_demographics_http_gov_bih_\" (\n \"districts_of_bihar\" text,\n \"total_population_2001\" real,\n \"male_population_2001\" real,\n \"female_population_2001\" real,\n \"growth_rate_1981_91\" text,\n \"growth_rate_1991_01\" text,\n \"sex_ratio_1991\" real,\n \"sex_ratio_2001\" real,\n \"population_density_1991\" real,\n \"population_density_2001\" real\n);\n\nQuestion: What are all values for male population in 2001 when sex ratio in 1991 is 896?"
},
{
"role": "assistant",
"content": "SELECT \"male_population_2001\" FROM \"wise_district_demographics_http_gov_bih_\" WHERE \"sex_ratio_1991\"=896;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wise_district_demographics_http_gov_bih_\" (\n \"districts_of_bihar\" text,\n \"total_population_2001\" real,\n \"male_population_2001\" real,\n \"female_population_2001\" real,\n \"growth_rate_1981_91\" text,\n \"growth_rate_1991_01\" text,\n \"sex_ratio_1991\" real,\n \"sex_ratio_2001\" real,\n \"population_density_1991\" real,\n \"population_density_2001\" real\n);\n\nQuestion: What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?"
},
{
"role": "assistant",
"content": "SELECT \"growth_rate_1991_01\" FROM \"wise_district_demographics_http_gov_bih_\" WHERE \"sex_ratio_2001\"=937;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wise_district_demographics_http_gov_bih_\" (\n \"districts_of_bihar\" text,\n \"total_population_2001\" real,\n \"male_population_2001\" real,\n \"female_population_2001\" real,\n \"growth_rate_1981_91\" text,\n \"growth_rate_1991_01\" text,\n \"sex_ratio_1991\" real,\n \"sex_ratio_2001\" real,\n \"population_density_1991\" real,\n \"population_density_2001\" real\n);\n\nQuestion: What districts of Bihar have a sex ratio in 1991 of 864?"
},
{
"role": "assistant",
"content": "SELECT \"districts_of_bihar\" FROM \"wise_district_demographics_http_gov_bih_\" WHERE \"sex_ratio_1991\"=864;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"marriage_statistics\" (\n \"year\" text,\n \"marriages_between_men\" real,\n \"marriages_between_women\" real,\n \"same_sex_marriages\" real,\n \"total_marriages\" real,\n \"pct_same_sex_marriages\" text\n);\n\nQuestion: How many marriages between women have % same-sex marriages of 1.06?"
},
{
"role": "assistant",
"content": "SELECT \"marriages_between_women\" FROM \"marriage_statistics\" WHERE \"pct_same_sex_marriages\"='1.06';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"marriage_statistics\" (\n \"year\" text,\n \"marriages_between_men\" real,\n \"marriages_between_women\" real,\n \"same_sex_marriages\" real,\n \"total_marriages\" real,\n \"pct_same_sex_marriages\" text\n);\n\nQuestion: What is the % of same-sex marriages for the year of 2011?"
},
{
"role": "assistant",
"content": "SELECT \"pct_same_sex_marriages\" FROM \"marriage_statistics\" WHERE \"year\"='2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"marriage_statistics\" (\n \"year\" text,\n \"marriages_between_men\" real,\n \"marriages_between_women\" real,\n \"same_sex_marriages\" real,\n \"total_marriages\" real,\n \"pct_same_sex_marriages\" text\n);\n\nQuestion: How many % same-sex marriages are there for the year 2008?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pct_same_sex_marriages\") FROM \"marriage_statistics\" WHERE \"year\"='2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"marriage_statistics\" (\n \"year\" text,\n \"marriages_between_men\" real,\n \"marriages_between_women\" real,\n \"same_sex_marriages\" real,\n \"total_marriages\" real,\n \"pct_same_sex_marriages\" text\n);\n\nQuestion: How many % same-sex marriages are marriages between men for 923? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pct_same_sex_marriages\") FROM \"marriage_statistics\" WHERE \"marriages_between_men\"=923;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19632728_1\" (\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: When was the episode number 2 originally aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_19632728_1\" WHERE \"episode_num\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19632728_1\" (\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: When was the episode titled \"The Parachute of Healing\" originally aired?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_19632728_1\" WHERE \"title\"='\\\"The Parachute of Healing\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19632728_1\" (\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: Who was the writer of the episode titled \"The Parachute of Healing\"?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"table1_19632728_1\" WHERE \"title\"='\\\"The Parachute of Healing\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19632728_1\" (\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: What was the highest season number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season_num\") FROM \"table1_19632728_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the margin of victory of Steve Stricker as a runner up?"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"pga_tour_wins_8\" WHERE \"runner_s_up\"='Steve Stricker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: How many to par has the winning score of 69-66-68=203."
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"pga_tour_wins_8\" WHERE \"winning_score\"='69-66-68=203';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the minimum number of the bmw championship tournament."
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"pga_tour_wins_8\" WHERE \"tournament\"='BMW Championship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_8\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the total number of John Merrick as a runner up?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"pga_tour_wins_8\" WHERE \"runner_s_up\"='John Merrick';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"competitors_and_betting\" (\n \"sp\" text,\n \"number\" real,\n \"horse\" text,\n \"age\" real,\n \"handicap_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text,\n \"finishing_position\" text\n);\n\nQuestion: What horses does r. a. Scott own?"
},
{
"role": "assistant",
"content": "SELECT \"horse\" FROM \"competitors_and_betting\" WHERE \"owner\"='R. A. Scott';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"competitors_and_betting\" (\n \"sp\" text,\n \"number\" real,\n \"horse\" text,\n \"age\" real,\n \"handicap_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text,\n \"finishing_position\" text\n);\n\nQuestion: How many numbers have sp of 20/1 and a finishing position of fence 19?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"number\") FROM \"competitors_and_betting\" WHERE \"sp\"='20/1' AND \"finishing_position\"='Fence 19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"competitors_and_betting\" (\n \"sp\" text,\n \"number\" real,\n \"horse\" text,\n \"age\" real,\n \"handicap_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text,\n \"finishing_position\" text\n);\n\nQuestion: Which handicap has the horse knowhere?"
},
{
"role": "assistant",
"content": "SELECT \"handicap_st_lb\" FROM \"competitors_and_betting\" WHERE \"horse\"='Knowhere';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"competitors_and_betting\" (\n \"sp\" text,\n \"number\" real,\n \"horse\" text,\n \"age\" real,\n \"handicap_st_lb\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"owner\" text,\n \"colours\" text,\n \"finishing_position\" text\n);\n\nQuestion: What colors does David Langdon use?"
},
{
"role": "assistant",
"content": "SELECT \"colours\" FROM \"competitors_and_betting\" WHERE \"owner\"='David Langdon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"persian_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: If the film title nominated is Baran, what was the result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='Baran';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"persian_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: For the Persian Title \u0645\u06cc\u0645 \u0645\u062b\u0644 \u0645\u0627\u062f\u0631, what were the results?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"submissions\" WHERE \"persian_title\"='\u0645\u06cc\u0645 \u0645\u062b\u0644 \u0645\u0627\u062f\u0631';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"persian_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: For the Persian title \u06af\u0628\u0647, What was the film title used for the nomination?"
},
{
"role": "assistant",
"content": "SELECT \"film_title_used_in_nomination\" FROM \"submissions\" WHERE \"persian_title\"='\u06af\u0628\u0647';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"fleet_num\" text,\n \"year\" real,\n \"manufacture\" text,\n \"model\" text,\n \"length_ft\" real,\n \"engine\" text,\n \"transmission\" text\n);\n\nQuestion: What year had an Allison B400R transmission and a model of BRT?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"buses\" WHERE \"transmission\"='Allison B400R' AND \"model\"='BRT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"fleet_num\" text,\n \"year\" real,\n \"manufacture\" text,\n \"model\" text,\n \"length_ft\" real,\n \"engine\" text,\n \"transmission\" text\n);\n\nQuestion: What is the fleet number when the length (ft) is 30?"
},
{
"role": "assistant",
"content": "SELECT \"fleet_num\" FROM \"buses\" WHERE \"length_ft\"=30;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"fleet_num\" text,\n \"year\" real,\n \"manufacture\" text,\n \"model\" text,\n \"length_ft\" real,\n \"engine\" text,\n \"transmission\" text\n);\n\nQuestion: What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL?"
},
{
"role": "assistant",
"content": "SELECT \"fleet_num\" FROM \"buses\" WHERE \"transmission\"='Voith D863.4' AND \"engine\"='Cummins ISL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"buses\" (\n \"fleet_num\" text,\n \"year\" real,\n \"manufacture\" text,\n \"model\" text,\n \"length_ft\" real,\n \"engine\" text,\n \"transmission\" text\n);\n\nQuestion: Which year had a transmission of Voith D863.4 and a Cummins ISM engine?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"buses\" WHERE \"transmission\"='Voith D863.4' AND \"engine\"='Cummins ISM';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the college/junior club team for ian turnbull"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team\" FROM \"round_one\" WHERE \"player\"='Ian Turnbull';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the position for nhl team being los angeles kings"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_three\" WHERE \"nhl_team\"='Los Angeles Kings';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Name the nhl times for jeff jacques"
},
{
"role": "assistant",
"content": "SELECT \"nhl_team\" FROM \"round_three\" WHERE \"player\"='Jeff Jacques';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.