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 \"season_13_num_dream_bigger\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: What is the number of external links with a coach named Katie Kansas?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"external_link\") FROM \"season_13_num_dream_bigger\" WHERE \"coach\"='Katie Kansas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_13_num_dream_bigger\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: What is the minimum number of seasons?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"season\") FROM \"season_13_num_dream_bigger\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_13_num_dream_bigger\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: What is the episode summary for episode 5?"
},
{
"role": "assistant",
"content": "SELECT \"episode_summary\" FROM \"season_13_num_dream_bigger\" WHERE \"episode\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_13_num_dream_bigger\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: What is the summary for the episode with a coach named Rebecca Star?"
},
{
"role": "assistant",
"content": "SELECT \"episode_summary\" FROM \"season_13_num_dream_bigger\" WHERE \"coach\"='Rebecca Star';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2140071_10\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: Name the episode with maritza reveron"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_2140071_10\" WHERE \"coach\"='Maritza Reveron';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2140071_10\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: Name the season for august 16, 2010"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"table1_2140071_10\" WHERE \"premier_date\"='August 16, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2140071_10\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: Name the number of episode summary for jesse csincsak"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode_summary\") FROM \"table1_2140071_10\" WHERE \"coach\"='Jesse Csincsak';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2140071_10\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: Name the number of coach for full episode deshunae is made into a volleyball player."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"coach\") FROM \"table1_2140071_10\" WHERE \"external_link\"='Full Episode' AND \"episode_summary\"='Deshunae is made into a volleyball player.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2140071_10\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: Name the coach for may 20, 2010"
},
{
"role": "assistant",
"content": "SELECT \"coach\" FROM \"table1_2140071_10\" WHERE \"premier_date\"='May 20, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2139390_2\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the team for june 20"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_2139390_2\" WHERE \"date\"='June 20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2139390_2\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the race time for 2002"
},
{
"role": "assistant",
"content": "SELECT \"race_time\" FROM \"table1_2139390_2\" WHERE \"year\"=2002;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: How many seasons have a premier date of January 6, 2005? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"season_5\" WHERE \"premier_date\"='January 6, 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: What is the last season? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"season_5\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_5\" (\n \"season\" real,\n \"episode\" real,\n \"episode_summary\" text,\n \"premier_date\" text,\n \"external_link\" text,\n \"coach\" text\n);\n\nQuestion: What date did the episode, with John O'Connell as the coach, premier? "
},
{
"role": "assistant",
"content": "SELECT \"premier_date\" FROM \"season_5\" WHERE \"coach\"='John O''Connell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Name the result for total attendance-regular season"
},
{
"role": "assistant",
"content": "SELECT \"result_games\" FROM \"canadian_football_league_attendance\" WHERE \"type_of_record\"='Total Attendance-Regular season';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Name the result/games for 52521"
},
{
"role": "assistant",
"content": "SELECT \"result_games\" FROM \"canadian_football_league_attendance\" WHERE \"attendance\"=52521;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Name the result/games for 54530"
},
{
"role": "assistant",
"content": "SELECT \"result_games\" FROM \"canadian_football_league_attendance\" WHERE \"attendance\"=54530;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Name the stadium for regular season game"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"canadian_football_league_attendance\" WHERE \"type_of_record\"='Regular season game';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Name the result/games for 54741"
},
{
"role": "assistant",
"content": "SELECT \"result_games\" FROM \"canadian_football_league_attendance\" WHERE \"attendance\"=54741;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: state team #2 in the match of first leg score 0-1"
},
{
"role": "assistant",
"content": "SELECT \"team_num2\" FROM \"first_round\" WHERE \"1st_leg\"='0-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: give the 1st leg score against ilisiakos"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"first_round\" WHERE \"team_num2\"='Ilisiakos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: which team #1 played again chalkida"
},
{
"role": "assistant",
"content": "SELECT \"team_num1\" FROM \"first_round\" WHERE \"team_num2\"='Chalkida';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_num1\" text,\n \"agg_score\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: which team#2 played against poseidon neoi porroi"
},
{
"role": "assistant",
"content": "SELECT \"team_num2\" FROM \"first_round\" WHERE \"team_num1\"='Poseidon Neoi Porroi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21436373_10\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: When was the pre-season game record achieved?"
},
{
"role": "assistant",
"content": "SELECT \"date_year\" FROM \"table1_21436373_10\" WHERE \"type_of_record\"='Pre-season game';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21436373_10\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What is the maximal number of people that attended any of these games?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"table1_21436373_10\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: what is the attendance in 2011 records"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"canadian_football_league_attendance\" WHERE \"date_year\"='2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: what type of record was made where result/games is 10 games (29,606 avg.)"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='10 games (29,606 avg.)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: where was the total attendance-regular season record made"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"canadian_football_league_attendance\" WHERE \"type_of_record\"='Total Attendance-Regular season';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: where was sun 09/12/93 record made"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"canadian_football_league_attendance\" WHERE \"date_year\"='Sun 09/12/93';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: how many records had result/games: 10 games (29,606 avg.)"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"type_of_record\") FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='10 games (29,606 avg.)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: what is the highest attendance for a total attendance-regular season record"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"canadian_football_league_attendance\" WHERE \"type_of_record\"='Total Attendance-Regular season';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: When 2005 is the date/year how many measurements of attendance are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"canadian_football_league_attendance\" WHERE \"date_year\"='2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: When 27585 is the attendance what are the results of the games?"
},
{
"role": "assistant",
"content": "SELECT \"result_games\" FROM \"canadian_football_league_attendance\" WHERE \"attendance\"=27585;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: When 9 games (28,002 avg.) is the results of the games what is the date/year?"
},
{
"role": "assistant",
"content": "SELECT \"date_year\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='9 games (28,002 avg.)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: When 255627 is the attendance what is the stadium?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"canadian_football_league_attendance\" WHERE \"attendance\"=255627;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What record was set on Tue 11/02/75?"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"canadian_football_league_attendance\" WHERE \"date_year\"='Tue 11/02/75';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What record was set when the result/game was equal to 9 games (28,595 avg.)"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='9 games (28,595 avg.)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What record was set when the result/game was montreal 20 @ ottawa 10?"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='Montreal 20 @ Ottawa 10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Which stadium had the result/game montreal 20 @ ottawa 10?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='Montreal 20 @ Ottawa 10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21436373_5\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: For what year is the type of record 'total attendance-regular season?"
},
{
"role": "assistant",
"content": "SELECT \"date_year\" FROM \"table1_21436373_5\" WHERE \"type_of_record\"='Total Attendance-Regular season';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21436373_5\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What type of record is the result of the game Montreal 31 @ Calgary 32?"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"table1_21436373_5\" WHERE \"result_games\"='Montreal 31 @ Calgary 32';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21436373_5\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: On what date/s has attendance been 45010?"
},
{
"role": "assistant",
"content": "SELECT \"date_year\" FROM \"table1_21436373_5\" WHERE \"attendance\"=45010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What is the number of attendance with the pre-season game as the type of record?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"canadian_football_league_attendance\" WHERE \"type_of_record\"='Pre-season game';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Which type of record has result/games of 9 games (57,144 avg.)"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='9 games (57,144 avg.)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: What is the result/games of Sun 11/28/10 as the date/year?"
},
{
"role": "assistant",
"content": "SELECT \"result_games\" FROM \"canadian_football_league_attendance\" WHERE \"date_year\"='Sun 11/28/10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Which stadium has the date/year of Fri 06/25/82?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"canadian_football_league_attendance\" WHERE \"date_year\"='Fri 06/25/82';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"canadian_football_league_attendance\" (\n \"type_of_record\" text,\n \"attendance\" real,\n \"date_year\" text,\n \"stadium\" text,\n \"result_games\" text\n);\n\nQuestion: Which type of record has result/games of b.c. 16 @ edmonton 22?"
},
{
"role": "assistant",
"content": "SELECT \"type_of_record\" FROM \"canadian_football_league_attendance\" WHERE \"result_games\"='B.C. 16 @ Edmonton 22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"barangay_fiesta\" text\n);\n\nQuestion: What was the populati in 2000 for Panlicsian? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"population_2000\") FROM \"barangays\" WHERE \"barangay\"='Panlicsian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"barangay_fiesta\" text\n);\n\nQuestion: What was the population in 2010 for Minane"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_2010\") FROM \"barangays\" WHERE \"barangay\"='Minane';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"barangay_fiesta\" text\n);\n\nQuestion: What is the 2007 population for Corazon de Jesus? "
},
{
"role": "assistant",
"content": "SELECT \"population_2007\" FROM \"barangays\" WHERE \"barangay\"='Corazon De Jesus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"barangay_fiesta\" text\n);\n\nQuestion: What is the 2010 population when the 2000 population is 5720? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_2010\") FROM \"barangays\" WHERE \"population_2000\"=5720;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pocket_monsters_diamond_pearl_series\" (\n \"num\" real,\n \"japanese_title\" text,\n \"r_maji\" text,\n \"japanese_translation\" text,\n \"vocalist\" text,\n \"episodes_used\" text\n);\n\nQuestion: Name the romaji by your side ~hikari's theme~ (popup.version)"
},
{
"role": "assistant",
"content": "SELECT \"r_maji\" FROM \"pocket_monsters_diamond_pearl_series\" WHERE \"japanese_translation\"='By Your Side ~Hikari''s Theme~ (PopUp.Version)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pocket_monsters_diamond_pearl_series\" (\n \"num\" real,\n \"japanese_title\" text,\n \"r_maji\" text,\n \"japanese_translation\" text,\n \"vocalist\" text,\n \"episodes_used\" text\n);\n\nQuestion: Name the vocalist for kaze no mess\u0113ji (pokapoka-version)"
},
{
"role": "assistant",
"content": "SELECT \"vocalist\" FROM \"pocket_monsters_diamond_pearl_series\" WHERE \"r_maji\"='Kaze no Mess\u0113ji (PokaPoka-Version)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pocket_monsters_diamond_pearl_series\" (\n \"num\" real,\n \"japanese_title\" text,\n \"r_maji\" text,\n \"japanese_translation\" text,\n \"vocalist\" text,\n \"episodes_used\" text\n);\n\nQuestion: Name the least number for \u541b\u306e\u305d\u3070\u3067\uff5e\u30d2\u30ab\u30ea\u306e\u30c6\u30fc\u30de\uff5e(popup.version)"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"pocket_monsters_diamond_pearl_series\" WHERE \"japanese_title\"='\u541b\u306e\u305d\u3070\u3067\uff5e\u30d2\u30ab\u30ea\u306e\u30c6\u30fc\u30de\uff5e(PopUp.Version)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pocket_monsters_diamond_pearl_series\" (\n \"num\" real,\n \"japanese_title\" text,\n \"r_maji\" text,\n \"japanese_translation\" text,\n \"vocalist\" text,\n \"episodes_used\" text\n);\n\nQuestion: Name the number of vocalists for which one ~ is it?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"vocalist\") FROM \"pocket_monsters_diamond_pearl_series\" WHERE \"japanese_translation\"='Which One ~ Is It?';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"alpg_tour_6\" (\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: Name the to par for 20 feb 2005"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"alpg_tour_6\" WHERE \"date\"='20 Feb 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"alpg_tour_6\" (\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: Name the number for margin of victory being 3 strokes"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"alpg_tour_6\" WHERE \"margin_of_victory\"='3 strokes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"alpg_tour_6\" (\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: Name the winning score for 8 feb 2009"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"winning_score\") FROM \"alpg_tour_6\" WHERE \"date\"='8 Feb 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21458142_1\" (\n \"title\" text,\n \"total_copies_sold\" text,\n \"sales_breakdown\" text,\n \"genre\" text,\n \"release_date\" text,\n \"developer\" text,\n \"publisher\" text\n);\n\nQuestion: Who published the title in the pet-raising simulator genre?"
},
{
"role": "assistant",
"content": "SELECT \"publisher\" FROM \"table1_21458142_1\" WHERE \"genre\"='Pet-raising simulator';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21458142_1\" (\n \"title\" text,\n \"total_copies_sold\" text,\n \"sales_breakdown\" text,\n \"genre\" text,\n \"release_date\" text,\n \"developer\" text,\n \"publisher\" text\n);\n\nQuestion: What's the sales breakdown for Nintendo's Mario Kart DS?"
},
{
"role": "assistant",
"content": "SELECT \"sales_breakdown\" FROM \"table1_21458142_1\" WHERE \"publisher\"='Nintendo' AND \"title\"='Mario Kart DS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21458142_1\" (\n \"title\" text,\n \"total_copies_sold\" text,\n \"sales_breakdown\" text,\n \"genre\" text,\n \"release_date\" text,\n \"developer\" text,\n \"publisher\" text\n);\n\nQuestion: How many copies were sold of the game released on october 23, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"total_copies_sold\" FROM \"table1_21458142_1\" WHERE \"release_date\"='October 23, 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21458142_1\" (\n \"title\" text,\n \"total_copies_sold\" text,\n \"sales_breakdown\" text,\n \"genre\" text,\n \"release_date\" text,\n \"developer\" text,\n \"publisher\" text\n);\n\nQuestion: What's the sales breakdown of the Nintendo game released on May 15, 2006?"
},
{
"role": "assistant",
"content": "SELECT \"sales_breakdown\" FROM \"table1_21458142_1\" WHERE \"publisher\"='Nintendo' AND \"release_date\"='May 15, 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"total_pts\" text,\n \"ranking\" real\n);\n\nQuestion: Name the most races"
},
{
"role": "assistant",
"content": "SELECT MAX(\"races\") FROM \"round_robin\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"total_pts\" text,\n \"ranking\" real\n);\n\nQuestion: Name the most races"
},
{
"role": "assistant",
"content": "SELECT MAX(\"races\") FROM \"round_robin\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"total_pts\" text,\n \"ranking\" real\n);\n\nQuestion: Name the most rr 1 pts"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rr1_pts\") FROM \"round_robin\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"total_pts\" text,\n \"ranking\" real\n);\n\nQuestion: Name the number of total pts for gbr challenge"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_pts\") FROM \"round_robin\" WHERE \"team_name\"='GBR Challenge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rank_by_number_of_wins\" (\n \"city_nation\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: What is the total number of second place finishes when the city & nation was Chicago, USA?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"second_place\") FROM \"rank_by_number_of_wins\" WHERE \"city_nation\"='Chicago, USA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rank_by_number_of_wins\" (\n \"city_nation\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: What is the total number of third place finishes when the city & nation was Vancouver, Canada?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"third_place\") FROM \"rank_by_number_of_wins\" WHERE \"city_nation\"='Vancouver, Canada';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rank_by_number_of_wins\" (\n \"city_nation\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: What is the largest third place finish when first place winning year(s) (if applicable) was n/a?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"third_place\") FROM \"rank_by_number_of_wins\" WHERE \"first_place_winning_year_s_if_applicable\"='N/A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rank_by_number_of_wins\" (\n \"city_nation\" text,\n \"first_place\" real,\n \"second_place\" real,\n \"third_place\" real,\n \"total_top_3_placements\" real,\n \"first_place_winning_year_s_if_applicable\" text\n);\n\nQuestion: What is the smallest third place finish?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"third_place\") FROM \"rank_by_number_of_wins\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: What change caused a change of staff in March 9, 1865?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_2147588_3\" WHERE \"date_of_successors_formal_installation\"='March 9, 1865';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: Who was the successor for the new seat?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2147588_3\" WHERE \"vacator\"='New seat';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: What was the reason for change in staff in formal installations on March 15, 1865?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_2147588_3\" WHERE \"date_of_successors_formal_installation\"='March 15, 1865';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: Who was the successor for the new seat?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2147588_3\" WHERE \"vacator\"='New seat';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: When nathaniel g. taylor (u) is the successor what is the vacator?"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"table1_2147588_4\" WHERE \"successor\"='Nathaniel G. Taylor (U)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: When william b. campbell (u) is the successor what is the district?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"table1_2147588_4\" WHERE \"successor\"='William B. Campbell (U)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: When james brooks (d) is the vacator what is the date the successor was seated?"
},
{
"role": "assistant",
"content": "SELECT \"date_successor_seated\" FROM \"table1_2147588_4\" WHERE \"vacator\"='James Brooks (D)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: When john w. leftwich (uu) is the successor what is the date the successor was seated?"
},
{
"role": "assistant",
"content": "SELECT \"date_successor_seated\" FROM \"table1_2147588_4\" WHERE \"successor\"='John W. Leftwich (UU)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2147588_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: When new york 8th is teh district who is the successor?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_2147588_4\" WHERE \"district\"='New York 8th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"rr3_pts\" real,\n \"rr4_pts\" text,\n \"total_pts\" real,\n \"ranking\" real\n);\n\nQuestion: When 20 is the rr4 points what is the lowest rr3 points?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rr3_pts\") FROM \"round_robin\" WHERE \"rr4_pts\"='20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"rr3_pts\" real,\n \"rr4_pts\" text,\n \"total_pts\" real,\n \"ranking\" real\n);\n\nQuestion: When 70 is the total points what is the rr4 points?"
},
{
"role": "assistant",
"content": "SELECT \"rr4_pts\" FROM \"round_robin\" WHERE \"total_pts\"=70;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"rr3_pts\" real,\n \"rr4_pts\" text,\n \"total_pts\" real,\n \"ranking\" real\n);\n\nQuestion: When 3 is the rr1 points what is won score?"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"round_robin\" WHERE \"rr1_pts\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"team_name\" text,\n \"races\" real,\n \"won\" real,\n \"rr1_pts\" real,\n \"rr2_pts\" real,\n \"rr3_pts\" real,\n \"rr4_pts\" text,\n \"total_pts\" real,\n \"ranking\" real\n);\n\nQuestion: When spanish challenge is the team name what are the rr1 points?"
},
{
"role": "assistant",
"content": "SELECT \"rr1_pts\" FROM \"round_robin\" WHERE \"team_name\"='Spanish Challenge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"career\" text,\n \"matches\" real,\n \"innings\" real,\n \"not_out\" real,\n \"runs_scored\" real,\n \"high_score\" text,\n \"50s\" real,\n \"100s\" real,\n \"average\" text\n);\n\nQuestion: Name the innings for 5088 runs scored"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"innings\") FROM \"references\" WHERE \"runs_scored\"=5088;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"career\" text,\n \"matches\" real,\n \"innings\" real,\n \"not_out\" real,\n \"runs_scored\" real,\n \"high_score\" text,\n \"50s\" real,\n \"100s\" real,\n \"average\" text\n);\n\nQuestion: Name the matches for mark taylor category:articles with hcards"
},
{
"role": "assistant",
"content": "SELECT MAX(\"matches\") FROM \"references\" WHERE \"name\"='Mark Taylor Category:Articles with hCards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"career\" text,\n \"matches\" real,\n \"innings\" real,\n \"not_out\" real,\n \"runs_scored\" real,\n \"high_score\" text,\n \"50s\" real,\n \"100s\" real,\n \"average\" text\n);\n\nQuestion: Name the most runs scored"
},
{
"role": "assistant",
"content": "SELECT MAX(\"runs_scored\") FROM \"references\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"career\" text,\n \"matches\" real,\n \"innings\" real,\n \"not_out\" real,\n \"runs_scored\" real,\n \"high_score\" text,\n \"50s\" real,\n \"100s\" real,\n \"average\" text\n);\n\nQuestion: Name the least matches for not out being 44"
},
{
"role": "assistant",
"content": "SELECT MIN(\"matches\") FROM \"references\" WHERE \"not_out\"=44;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2150068_1\" (\n \"satellite\" text,\n \"launch_date_utc\" text,\n \"decay\" text,\n \"mass_kg\" text,\n \"diameter_m\" text,\n \"nssdc_id\" text,\n \"nation\" text,\n \"usage\" text\n);\n\nQuestion: What nation was Pageos 1 from?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"table1_2150068_1\" WHERE \"satellite\"='PAGEOS 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2150068_1\" (\n \"satellite\" text,\n \"launch_date_utc\" text,\n \"decay\" text,\n \"mass_kg\" text,\n \"diameter_m\" text,\n \"nssdc_id\" text,\n \"nation\" text,\n \"usage\" text\n);\n\nQuestion: What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?"
},
{
"role": "assistant",
"content": "SELECT \"launch_date_utc\" FROM \"table1_2150068_1\" WHERE \"usage\"='ado' AND \"mass_kg\"='4' AND \"diameter_m\"='3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2150068_1\" (\n \"satellite\" text,\n \"launch_date_utc\" text,\n \"decay\" text,\n \"mass_kg\" text,\n \"diameter_m\" text,\n \"nssdc_id\" text,\n \"nation\" text,\n \"usage\" text\n);\n\nQuestion: What was the decay for the sattelite that was 180 kg?"
},
{
"role": "assistant",
"content": "SELECT \"decay\" FROM \"table1_2150068_1\" WHERE \"mass_kg\"='180';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2150068_1\" (\n \"satellite\" text,\n \"launch_date_utc\" text,\n \"decay\" text,\n \"mass_kg\" text,\n \"diameter_m\" text,\n \"nssdc_id\" text,\n \"nation\" text,\n \"usage\" text\n);\n\nQuestion: What is the nssdc id for Echo 1?"
},
{
"role": "assistant",
"content": "SELECT \"nssdc_id\" FROM \"table1_2150068_1\" WHERE \"satellite\"='Echo 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2150068_1\" (\n \"satellite\" text,\n \"launch_date_utc\" text,\n \"decay\" text,\n \"mass_kg\" text,\n \"diameter_m\" text,\n \"nssdc_id\" text,\n \"nation\" text,\n \"usage\" text\n);\n\nQuestion: What is the launch date for the sattelite with a nssdc id of 1960-009a?"
},
{
"role": "assistant",
"content": "SELECT \"launch_date_utc\" FROM \"table1_2150068_1\" WHERE \"nssdc_id\"='1960-009A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2150068_1\" (\n \"satellite\" text,\n \"launch_date_utc\" text,\n \"decay\" text,\n \"mass_kg\" text,\n \"diameter_m\" text,\n \"nssdc_id\" text,\n \"nation\" text,\n \"usage\" text\n);\n\nQuestion: What is the decay for the sattelite with an id that is 1990-081c?"
},
{
"role": "assistant",
"content": "SELECT \"decay\" FROM \"table1_2150068_1\" WHERE \"nssdc_id\"='1990-081C';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"soundtrack\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"genre\" text,\n \"original_game\" text,\n \"band_tier_venue\" text,\n \"exportable_to_gh5_bh\" text\n);\n\nQuestion: How many song titles belong to the artist Ratt?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"song_title\") FROM \"soundtrack\" WHERE \"artist\"='Ratt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"soundtrack\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"genre\" text,\n \"original_game\" text,\n \"band_tier_venue\" text,\n \"exportable_to_gh5_bh\" text\n);\n\nQuestion: What is every original game for the artist Lynyrd Skynyrd?"
},
{
"role": "assistant",
"content": "SELECT \"original_game\" FROM \"soundtrack\" WHERE \"artist\"='Lynyrd Skynyrd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"soundtrack\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"genre\" text,\n \"original_game\" text,\n \"band_tier_venue\" text,\n \"exportable_to_gh5_bh\" text\n);\n\nQuestion: What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?"
},
{
"role": "assistant",
"content": "SELECT \"song_title\" FROM \"soundtrack\" WHERE \"genre\"='Rock' AND \"original_game\"='Guitar Hero' AND \"artist\"='Queens of the Stone Age';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"soundtrack\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"genre\" text,\n \"original_game\" text,\n \"band_tier_venue\" text,\n \"exportable_to_gh5_bh\" text\n);\n\nQuestion: What is every song title for 2007?"
},
{
"role": "assistant",
"content": "SELECT \"song_title\" FROM \"soundtrack\" WHERE \"year\"=2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21501511_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: What was Lambert's song choice in the top 13?"
},
{
"role": "assistant",
"content": "SELECT \"song_choice\" FROM \"table1_21501511_1\" WHERE \"week_num\"='Top 13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21501511_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: What order did Lambert perform in the top 11?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"table1_21501511_1\" WHERE \"week_num\"='Top 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_21501511_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: What week was themed disco?"
},
{
"role": "assistant",
"content": "SELECT \"week_num\" FROM \"table1_21501511_1\" WHERE \"theme\"='Disco';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.