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 \"december\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: How many people attended the game with a final score of 75-90?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"december\" WHERE \"score\"='75-90';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is Mike Weir's To par?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round_sunday\" WHERE \"player\"='mike weir';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: From Country is Vijay Singh?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_round_sunday\" WHERE \"player\"='vijay singh';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is the Player in T5 Place?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round_sunday\" WHERE \"place\"='t5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round_sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is the Place of the Player with a Score of 73-73-65-73=284?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_round_sunday\" WHERE \"score\"='73-73-65-73=284';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia_in_england_1902\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Who was the Home captain that played at the venue Oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_captain\" FROM \"australia_in_england_1902\" WHERE \"venue\"='oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia_in_england_1902\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Who was the Away captain that played on 12,13,14 Jun 1902 which resulted in a draw?"
},
{
"role": "assistant",
"content": "SELECT \"away_captain\" FROM \"australia_in_england_1902\" WHERE \"result\"='draw' AND \"date\"='12,13,14 jun 1902';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia_in_england_1902\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Who is the Away captain that played on 11,12,13 Aug 1902?"
},
{
"role": "assistant",
"content": "SELECT \"away_captain\" FROM \"australia_in_england_1902\" WHERE \"date\"='11,12,13 aug 1902';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia_in_england_1902\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the game that was played on 29,30\u201331 May 1902?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"australia_in_england_1902\" WHERE \"date\"='29,30\u201331 may 1902';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia_in_england_1902\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the game that was played on 3,4,5 Jul 1902?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"australia_in_england_1902\" WHERE \"date\"='3,4,5 jul 1902';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"locale\" text,\n \"skip\" text,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ends_lost\") FROM \"standings\" WHERE \"blank_ends\"=15 AND \"stolen_ends\"<14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"locale\" text,\n \"skip\" text,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"blank_ends\") FROM \"standings\" WHERE \"stolen_ends\"=17 AND \"skip\"='jennifer jones' AND \"shot_pct\">83;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the average Wins, when F/Laps is greater than 1, and when Points is 80?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"wins\") FROM \"career_summary\" WHERE \"f_laps\">1 AND \"points\"='80';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"races\") FROM \"career_summary\" WHERE \"podiums\"<3 AND \"wins\"=0 AND \"season\">2001 AND \"points\"='32';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the average Season, when F/Laps is 1, and when Poles is less than 0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"season\") FROM \"career_summary\" WHERE \"f_laps\"=1 AND \"poles\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the highest Poles, when Series is Ginetta Championship, and when Season is before 2007?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"poles\") FROM \"career_summary\" WHERE \"series\"='ginetta championship' AND \"season\"<2007;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ranking_movement\" (\n \"poll\" text,\n \"wk_2\" real,\n \"wk_3\" real,\n \"wk_4\" real,\n \"wk_5\" real,\n \"wk_6\" real,\n \"wk_7\" real,\n \"wk_8\" real,\n \"wk_9\" real,\n \"wk_10\" real,\n \"wk_11\" real,\n \"wk_12\" real,\n \"wk_13\" text,\n \"wk_14\" text,\n \"final\" text\n);\n\nQuestion: What is the lowest wk 7 with a wk 3 value of 12, a wk 4 less than 9, and a wk 2 greater than 11?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wk_7\") FROM \"ranking_movement\" WHERE \"wk_3\"=12 AND \"wk_4\"<9 AND \"wk_2\">11;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ranking_movement\" (\n \"poll\" text,\n \"wk_2\" real,\n \"wk_3\" real,\n \"wk_4\" real,\n \"wk_5\" real,\n \"wk_6\" real,\n \"wk_7\" real,\n \"wk_8\" real,\n \"wk_9\" real,\n \"wk_10\" real,\n \"wk_11\" real,\n \"wk_12\" real,\n \"wk_13\" text,\n \"wk_14\" text,\n \"final\" text\n);\n\nQuestion: What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wk_3\") FROM \"ranking_movement\" WHERE \"wk_14\"='n/r' AND \"wk_2\"=7 AND \"wk_11\">18;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1980s\" (\n \"spoofed_title\" text,\n \"actual_title\" text,\n \"writer\" text,\n \"artist\" text,\n \"issue\" real,\n \"date\" text\n);\n\nQuestion: What is the Date for the actual title archie bunker's place?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1980s\" WHERE \"actual_title\"='archie bunker''s place';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1980s\" (\n \"spoofed_title\" text,\n \"actual_title\" text,\n \"writer\" text,\n \"artist\" text,\n \"issue\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the Artist for the Spoofed Title of the moron downer jr. show?"
},
{
"role": "assistant",
"content": "SELECT \"artist\" FROM \"1980s\" WHERE \"spoofed_title\"='the moron downer jr. show';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1980s\" (\n \"spoofed_title\" text,\n \"actual_title\" text,\n \"writer\" text,\n \"artist\" text,\n \"issue\" real,\n \"date\" text\n);\n\nQuestion: What issue was the Spoofed Title of the crockford files in?"
},
{
"role": "assistant",
"content": "SELECT \"issue\" FROM \"1980s\" WHERE \"spoofed_title\"='the crockford files';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1980s\" (\n \"spoofed_title\" text,\n \"actual_title\" text,\n \"writer\" text,\n \"artist\" text,\n \"issue\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the writer for issue 224?"
},
{
"role": "assistant",
"content": "SELECT \"writer\" FROM \"1980s\" WHERE \"issue\"=224;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the smallest amount of points had a lost number of 2 when the position was less than 1?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"campeonato_paulista\" WHERE \"lost\"=2 AND \"position\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the mean number of against when the position is less than 1?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"against\") FROM \"campeonato_paulista\" WHERE \"position\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the mean number of played when there are less than 18 points and the position is less than 8?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"played\") FROM \"campeonato_paulista\" WHERE \"points\"<18 AND \"position\"<8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lost\") FROM \"campeonato_paulista\" WHERE \"against\"<37 AND \"drawn\">2 AND \"played\">20;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography\" (\n \"name\" text,\n \"seat\" text,\n \"population_2011\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real\n);\n\nQuestion: What is the total area of drakenstein and a population less than 251,262?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"area_km_2\") FROM \"geography\" WHERE \"name\"='drakenstein' AND \"population_2011\"<'251,262';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography\" (\n \"name\" text,\n \"seat\" text,\n \"population_2011\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real\n);\n\nQuestion: For Stellenbosch, which has a population larger than 155,733, what is the average area?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"area_km_2\") FROM \"geography\" WHERE \"name\"='stellenbosch' AND \"population_2011\">'155,733';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"geography\" (\n \"name\" text,\n \"seat\" text,\n \"population_2011\" real,\n \"area_km_2\" real,\n \"density_inhabitants_km_2\" real\n);\n\nQuestion: What is the lowest population for the area that has a density of 36.7?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"population_2011\") FROM \"geography\" WHERE \"density_inhabitants_km_2\"=36.7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pool_4\" (\n \"team\" text,\n \"tries_for\" real,\n \"tries_against\" real,\n \"try_diff\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"points_diff\" text\n);\n\nQuestion: How many points against has team Cardiff had when there were less than 7 tries?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_against\") FROM \"pool_4\" WHERE \"team\"='cardiff' AND \"tries_against\"<7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_meteorological_data_at_for\" (\n \"sunshine_hrs_year\" text,\n \"rain_mm_year\" text,\n \"snow_days_year\" real,\n \"storms_days_year\" real,\n \"fog_days_year\" real\n);\n\nQuestion: What is the amount of fog where the rain is 1 109?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"fog_days_year\") FROM \"comparison_of_meteorological_data_at_for\" WHERE \"rain_mm_year\"='1 109';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_meteorological_data_at_for\" (\n \"sunshine_hrs_year\" text,\n \"rain_mm_year\" text,\n \"snow_days_year\" real,\n \"storms_days_year\" real,\n \"fog_days_year\" real\n);\n\nQuestion: What is the amount of snow where the days for storms are 31?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"snow_days_year\") FROM \"comparison_of_meteorological_data_at_for\" WHERE \"storms_days_year\"=31;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_meteorological_data_at_for\" (\n \"sunshine_hrs_year\" text,\n \"rain_mm_year\" text,\n \"snow_days_year\" real,\n \"storms_days_year\" real,\n \"fog_days_year\" real\n);\n\nQuestion: What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"snow_days_year\") FROM \"comparison_of_meteorological_data_at_for\" WHERE \"sunshine_hrs_year\"='1 633' AND \"storms_days_year\"<29;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison_of_meteorological_data_at_for\" (\n \"sunshine_hrs_year\" text,\n \"rain_mm_year\" text,\n \"snow_days_year\" real,\n \"storms_days_year\" real,\n \"fog_days_year\" real\n);\n\nQuestion: What are the number of storms where fog is lower than 74, and sunshine is 2 668?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"storms_days_year\") FROM \"comparison_of_meteorological_data_at_for\" WHERE \"fog_days_year\"<74 AND \"sunshine_hrs_year\"='2 668';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"last_five_head_to_head_fixtures\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"competition\" text\n);\n\nQuestion: Who is the away team for the tome team Leeds United, at the League Cup Competition?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"last_five_head_to_head_fixtures\" WHERE \"home_team\"='leeds united' AND \"competition\"='league cup';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" real,\n \"finish\" real,\n \"entrant\" text\n);\n\nQuestion: What chassis has patrick racing as an entrant, with a start greater than 6?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"indianapolis_500\" WHERE \"entrant\"='patrick racing' AND \"start\">6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" real,\n \"finish\" real,\n \"entrant\" text\n);\n\nQuestion: What is the average finish that has 24 as the start, with a year after 1987?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"finish\") FROM \"indianapolis_500\" WHERE \"start\"=24 AND \"year\">1987;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" real,\n \"finish\" real,\n \"entrant\" text\n);\n\nQuestion: What is the lowest year that has lola t93/00 as the chassis with a start leas than 14?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"indianapolis_500\" WHERE \"chassis\"='lola t93/00' AND \"start\"<14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" real,\n \"finish\" real,\n \"entrant\" text\n);\n\nQuestion: What is the lowest finish that has a start greater than 27, with a year after 1985?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"finish\") FROM \"indianapolis_500\" WHERE \"start\">27 AND \"year\">1985;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_500\" (\n \"year\" real,\n \"chassis\" text,\n \"engine\" text,\n \"start\" real,\n \"finish\" real,\n \"entrant\" text\n);\n\nQuestion: What start has a ford cosworth dfx as the engine, a year later than 1981, and kraco enterprises as the entrant?"
},
{
"role": "assistant",
"content": "SELECT \"start\" FROM \"indianapolis_500\" WHERE \"engine\"='ford cosworth dfx' AND \"year\">1981 AND \"entrant\"='kraco enterprises';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text,\n \"team_record\" text,\n \"game_site\" text\n);\n\nQuestion: What is the Date, when the Team Record is 2-0?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"season_schedule\" WHERE \"team_record\"='2-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text,\n \"team_record\" text,\n \"game_site\" text\n);\n\nQuestion: What is the Team Record, when the Result is l 0\u201324?"
},
{
"role": "assistant",
"content": "SELECT \"team_record\" FROM \"season_schedule\" WHERE \"result\"='l 0\u201324';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text,\n \"team_record\" text,\n \"game_site\" text\n);\n\nQuestion: What is Team Record, when Attendance is 16,151?"
},
{
"role": "assistant",
"content": "SELECT \"team_record\" FROM \"season_schedule\" WHERE \"attendance\"='16,151';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_league\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: What is the highest draw that has points greater than 4, with a match greater than 5?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"draw\") FROM \"first_league\" WHERE \"points\">4 AND \"match\">5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_league\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"draw\") FROM \"first_league\" WHERE \"lost\"<4 AND \"team\"='gwardia bydgoszcz' AND \"match\">5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_league\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: What is the lowest match that has a lost greater than 3, and kolejarz rawicz as the team?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"match\") FROM \"first_league\" WHERE \"lost\">3 AND \"team\"='kolejarz rawicz';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_league\" (\n \"team\" text,\n \"match\" real,\n \"points\" real,\n \"draw\" real,\n \"lost\" real\n);\n\nQuestion: How many matches have 0 as the lost?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"match\") FROM \"first_league\" WHERE \"lost\"=0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the sum of Game with a Score that is w 104\u201390 (ot)?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"game\") FROM \"game_log\" WHERE \"score\"='w 104\u201390 (ot)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the High rebounds of a Game with 56?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=56;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"entertainment\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What was the option from Italy with general television content, and the Cielo television service?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"entertainment\" WHERE \"country\"='italy' AND \"content\"='general television' AND \"television_service\"='cielo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"entertainment\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What country has Tematico Content, and a package with sky TV and the Lei television service?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"entertainment\" WHERE \"content\"='tematico' AND \"package_option\"='sky tv' AND \"television_service\"='lei';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"entertainment\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What is the television service that has package with sky tv, and it in Italian English?"
},
{
"role": "assistant",
"content": "SELECT \"television_service\" FROM \"entertainment\" WHERE \"package_option\"='sky tv' AND \"language\"='italian english';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"entertainment\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What language is the Tematico content with a sky tv package, and Fox Crime television service?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"entertainment\" WHERE \"content\"='tematico' AND \"package_option\"='sky tv' AND \"television_service\"='fox crime';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"entertainment\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What country has a television service with Cartello Promozionale sky hd?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"entertainment\" WHERE \"television_service\"='cartello promozionale sky hd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"entertainment\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What country has a Fox television service?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"entertainment\" WHERE \"television_service\"='fox';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_series_results\" (\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Who drove for Mathiasen Motorsports with dane cameron as pole position?"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"full_series_results\" WHERE \"winning_team\"='mathiasen motorsports' AND \"pole_position\"='dane cameron';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_series_results\" (\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: What winning team did Jonathan bomarito drive for when jonathan summerton had the fastest lap?"
},
{
"role": "assistant",
"content": "SELECT \"winning_team\" FROM \"full_series_results\" WHERE \"winning_driver\"='jonathan bomarito' AND \"fastest_lap\"='jonathan summerton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_series_results\" (\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When Douglas Soares had the fastest lap, what was the report?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"full_series_results\" WHERE \"fastest_lap\"='douglas soares';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_series_results\" (\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When the winning team of mathiasen motorsports has a pole position of jonathan bomarito, who has the fastest lap?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"full_series_results\" WHERE \"winning_team\"='mathiasen motorsports' AND \"pole_position\"='jonathan bomarito';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"full_series_results\" (\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"full_series_results\" WHERE \"winning_driver\"='jonathan summerton' AND \"fastest_lap\"='dane cameron';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"notes\" text\n);\n\nQuestion: Which Year has a Competition of olympic games, and a Venue of atlanta, united states?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"achievements\" WHERE \"competition\"='olympic games' AND \"venue\"='atlanta, united states';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"notes\" text\n);\n\nQuestion: Which Competition has a Year of 1993?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"achievements\" WHERE \"year\"=1993;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"notes\" text\n);\n\nQuestion: Which Notes has a Competition of venice marathon?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"achievements\" WHERE \"competition\"='venice marathon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"notes\" text\n);\n\nQuestion: Which Year has a Venue of atlanta, united states?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"achievements\" WHERE \"venue\"='atlanta, united states';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"notes\" text\n);\n\nQuestion: Which Notes has a Venue of barcelona, spain?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"achievements\" WHERE \"venue\"='barcelona, spain';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"notes\" text\n);\n\nQuestion: Which Event has a Year of 1986?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"achievements\" WHERE \"year\"=1986;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode\" text,\n \"rating\" real,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" real,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"share\") FROM \"u_s_nielsen_ratings\" WHERE \"viewers_millions\">7.82 AND \"rank_timeslot\"='3' AND \"rank_week\"='54';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode\" text,\n \"rating\" real,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" real,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?"
},
{
"role": "assistant",
"content": "SELECT \"rank_week\" FROM \"u_s_nielsen_ratings\" WHERE \"share\">7 AND \"rating_share_18_49\"='2.3/7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_ratings\" (\n \"episode\" text,\n \"rating\" real,\n \"share\" real,\n \"rating_share_18_49\" text,\n \"viewers_millions\" real,\n \"rank_timeslot\" text,\n \"rank_night\" text,\n \"rank_week\" text\n);\n\nQuestion: What is the weekly rank of the episode with more than 7.14mil viewers, a nightly rank of 5, and a rating/share of 2.9/10?"
},
{
"role": "assistant",
"content": "SELECT \"rank_week\" FROM \"u_s_nielsen_ratings\" WHERE \"viewers_millions\">7.14 AND \"rank_night\"='5' AND \"rating_share_18_49\"='2.9/10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" text,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"gain\") FROM \"rushing\" WHERE \"long\"<4 AND \"name\"='brandon mcrae' AND \"avg_g\"<-0.1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" text,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"long\") FROM \"rushing\" WHERE \"gp_gs\"='11-8' AND \"gain\"<228;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" text,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the lowest gain with an 18 long, and a loss less than 191?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"gain\") FROM \"rushing\" WHERE \"long\"=18 AND \"loss\"<191;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relief\" (\n \"table_2_depression_data\" text,\n \"1929\" real,\n \"1931\" real,\n \"1933\" real,\n \"1937\" real,\n \"1938\" real,\n \"1940\" real\n);\n\nQuestion: What is the sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"1938\") FROM \"relief\" WHERE \"1933\"<68.3 AND \"1940\"<4.02;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relief\" (\n \"table_2_depression_data\" text,\n \"1929\" real,\n \"1931\" real,\n \"1933\" real,\n \"1937\" real,\n \"1938\" real,\n \"1940\" real\n);\n\nQuestion: What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"1940\") FROM \"relief\" WHERE \"1929\"=101.4 AND \"1933\">68.3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relief\" (\n \"table_2_depression_data\" text,\n \"1929\" real,\n \"1931\" real,\n \"1933\" real,\n \"1937\" real,\n \"1938\" real,\n \"1940\" real\n);\n\nQuestion: What is the highest 1937 value that has a 1940 value over 126?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"1937\") FROM \"relief\" WHERE \"1940\">126;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"telenovelas_currently_broadcasting\" (\n \"country\" text,\n \"telenovela\" text,\n \"translation\" text,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"weekly_schedule\" text,\n \"timeslot\" text\n);\n\nQuestion: At what time is the \u10d1\u10e0\u10d0\u10d6\u10d8\u10da\u10d8\u10d8\u10e1 \u10e3\u10d1\u10d0\u10dc\u10d8 shown?"
},
{
"role": "assistant",
"content": "SELECT \"timeslot\" FROM \"telenovelas_currently_broadcasting\" WHERE \"translation\"='\u10d1\u10e0\u10d0\u10d6\u10d8\u10da\u10d8\u10d8\u10e1 \u10e3\u10d1\u10d0\u10dc\u10d8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"telenovelas_currently_broadcasting\" (\n \"country\" text,\n \"telenovela\" text,\n \"translation\" text,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"weekly_schedule\" text,\n \"timeslot\" text\n);\n\nQuestion: What country was the series finale present and was shown Monday to Sunday at 18:45-21:00?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"telenovelas_currently_broadcasting\" WHERE \"series_finale\"='present' AND \"weekly_schedule\"='monday to sunday' AND \"timeslot\"='18:45-21:00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"telenovelas_currently_broadcasting\" (\n \"country\" text,\n \"telenovela\" text,\n \"translation\" text,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"weekly_schedule\" text,\n \"timeslot\" text\n);\n\nQuestion: What series finale has the translation \u10dd\u10f0 \u10d4\u10e1 \u10ea\u10e0\u10d4\u10db\u10da\u10d4\u10d1\u10d8 / \u10de\u10d0\u10e0\u10d0\u10da\u10d4\u10da\u10e3\u10e0\u10d8 \u10e1\u10d0\u10d8\u10d3\u10e3\u10db\u10da\u10dd?"
},
{
"role": "assistant",
"content": "SELECT \"series_finale\" FROM \"telenovelas_currently_broadcasting\" WHERE \"translation\"='\u10dd\u10f0 \u10d4\u10e1 \u10ea\u10e0\u10d4\u10db\u10da\u10d4\u10d1\u10d8 / \u10de\u10d0\u10e0\u10d0\u10da\u10d4\u10da\u10e3\u10e0\u10d8 \u10e1\u10d0\u10d8\u10d3\u10e3\u10db\u10da\u10dd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"telenovelas_currently_broadcasting\" (\n \"country\" text,\n \"telenovela\" text,\n \"translation\" text,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"weekly_schedule\" text,\n \"timeslot\" text\n);\n\nQuestion: What days of the week is the show aired on that runs at 16:45?"
},
{
"role": "assistant",
"content": "SELECT \"weekly_schedule\" FROM \"telenovelas_currently_broadcasting\" WHERE \"timeslot\"='16:45';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"telenovelas_currently_broadcasting\" (\n \"country\" text,\n \"telenovela\" text,\n \"translation\" text,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"weekly_schedule\" text,\n \"timeslot\" text\n);\n\nQuestion: Which days of the week does the telenovela play that is aired at 11:00?"
},
{
"role": "assistant",
"content": "SELECT \"weekly_schedule\" FROM \"telenovelas_currently_broadcasting\" WHERE \"timeslot\"='11:00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"runners_up\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament was on 2 October 2006?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"runners_up\" WHERE \"date\"='2 october 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"runners_up\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Who is the Opponent in the final on 4 April 2011?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_the_final\" FROM \"runners_up\" WHERE \"date\"='4 april 2011';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"runners_up\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What Surface was used on 2 June 2003?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"runners_up\" WHERE \"date\"='2 june 2003';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"recipient\" text,\n \"result\" text\n);\n\nQuestion: Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?"
},
{
"role": "assistant",
"content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"category\"='teen pick show: comedy';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"recipient\" text,\n \"result\" text\n);\n\nQuestion: Which award show nominated Cole Sprouse for the Favorite TV Actor category?"
},
{
"role": "assistant",
"content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"category\"='favorite tv actor' AND \"recipient\"='cole sprouse';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"recipient\" text,\n \"result\" text\n);\n\nQuestion: What category was The Suite Life on Deck nominated for later than 2010?"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"awards_and_nominations\" WHERE \"recipient\"='the suite life on deck' AND \"year\">2010;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"recipient\" text,\n \"result\" text\n);\n\nQuestion: Who won the 2010 Kids' Choice Awards?"
},
{
"role": "assistant",
"content": "SELECT \"recipient\" FROM \"awards_and_nominations\" WHERE \"award\"='2010 kids'' choice awards' AND \"result\"='won';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"boxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"type\" text,\n \"rd_time\" text,\n \"date\" text,\n \"location\" text\n);\n\nQuestion: What was the Rd. Time for October 3, 2009?"
},
{
"role": "assistant",
"content": "SELECT \"rd_time\" FROM \"boxing_record\" WHERE \"date\"='october 3, 2009';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"boxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"type\" text,\n \"rd_time\" text,\n \"date\" text,\n \"location\" text\n);\n\nQuestion: When was the Rd., Time 12 (12), 1:24?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"boxing_record\" WHERE \"rd_time\"='12 (12), 1:24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"apea_s_campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the greatest lost where played is less than 9?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"lost\") FROM \"apea_s_campeonato_paulista\" WHERE \"played\"<9;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"apea_s_campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the greatest played with a drawn less than 1 and a position of less than 1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"played\") FROM \"apea_s_campeonato_paulista\" WHERE \"drawn\"<1 AND \"position\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"apea_s_campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the smallest drawn when the points are less than 7 and the against greater than 31?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"drawn\") FROM \"apea_s_campeonato_paulista\" WHERE \"points\"<7 AND \"against\">31;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"apea_s_campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: What is the name of the team that has 13 points?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"apea_s_campeonato_paulista\" WHERE \"points\"=13;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: What was the Nominated Work earlier than 2003?"
},
{
"role": "assistant",
"content": "SELECT \"nominated_work\" FROM \"awards_and_nominations\" WHERE \"year\"<2003;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: What was the Nominated Work earlier than 2003?"
},
{
"role": "assistant",
"content": "SELECT \"nominated_work\" FROM \"awards_and_nominations\" WHERE \"year\"<2003;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"nominated_work\" text,\n \"result\" text\n);\n\nQuestion: What was the Nominated Work earlier than 2003?"
},
{
"role": "assistant",
"content": "SELECT \"nominated_work\" FROM \"awards_and_nominations\" WHERE \"year\"<2003;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real\n);\n\nQuestion: Which method's event was flawless fighting championship 1: the beginning?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='flawless fighting championship 1: the beginning';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real\n);\n\nQuestion: Which method's opponent was chris clark?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='chris clark';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real\n);\n\nQuestion: Which record's round was 3 when the event was fight festival 27?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=3 AND \"event\"='fight festival 27';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"yearly_results\" (\n \"year\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"jack_tompkins_trophy_mvp\" text\n);\n\nQuestion: What is the Fourth place with a Year that is 1978?"
},
{
"role": "assistant",
"content": "SELECT \"fourth_place\" FROM \"yearly_results\" WHERE \"year\"=1978;"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.