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 \"earliest_serving_senators_currently_livi\" (\n \"rank\" real,\n \"senator\" text,\n \"date_of_birth\" text,\n \"entered_senate\" text,\n \"left_senate\" text,\n \"state_served\" text,\n \"party\" text,\n \"time_since_entry\" text\n);\n\nQuestion: List the states that have entry times of 49years, 29days"
},
{
"role": "assistant",
"content": "SELECT \"state_served\" FROM \"earliest_serving_senators_currently_livi\" WHERE \"time_since_entry\"='49years, 29days';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"earliest_serving_senators_currently_livi\" (\n \"rank\" real,\n \"senator\" text,\n \"date_of_birth\" text,\n \"entered_senate\" text,\n \"left_senate\" text,\n \"state_served\" text,\n \"party\" text,\n \"time_since_entry\" text\n);\n\nQuestion: Of which part does congressman dick clark belong to?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"earliest_serving_senators_currently_livi\" WHERE \"senator\"='Dick Clark';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"earliest_serving_senators_currently_livi\" (\n \"rank\" real,\n \"senator\" text,\n \"date_of_birth\" text,\n \"entered_senate\" text,\n \"left_senate\" text,\n \"state_served\" text,\n \"party\" text,\n \"time_since_entry\" text\n);\n\nQuestion: On what date did congressman joseph tydings enter take his seat?"
},
{
"role": "assistant",
"content": "SELECT \"entered_senate\" FROM \"earliest_serving_senators_currently_livi\" WHERE \"senator\"='Joseph Tydings';"
}
]
|
[
{
"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 \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What are the lowest points when poles were 0 and races were 10?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points\") FROM \"career_summary\" WHERE \"poles\"=0 AND \"races\"=10;"
}
]
|
[
{
"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 \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What was the highest number of points when flaps were 0?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"career_summary\" WHERE \"f_laps\"=0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who played 20 questions during the issue in which Pamela Horton is on the cover?"
},
{
"role": "assistant",
"content": "SELECT \"20_questions\" FROM \"2012\" WHERE \"cover_model\"='Pamela Horton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: What date did Dax Shepard play 20 questions?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2012\" WHERE \"20_questions\"='Dax Shepard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the centerfold model when Krysten Ritter played 20 questions?"
},
{
"role": "assistant",
"content": "SELECT \"centerfold_model\" FROM \"2012\" WHERE \"20_questions\"='Krysten Ritter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"cover_model\" text,\n \"centerfold_model\" text,\n \"interview_subject\" text,\n \"20_questions\" text,\n \"pictorials\" text\n);\n\nQuestion: Who was the centerfold model when Meghan McCain played 20 questions?"
},
{
"role": "assistant",
"content": "SELECT \"centerfold_model\" FROM \"2012\" WHERE \"20_questions\"='Meghan McCain';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24418525_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: When the power kw is 5kw, what is the frequency?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"table1_24418525_1\" WHERE \"power_k_w\"='5kW';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24418525_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: when coverage is dumaguete central visayas region, what is the callsign?"
},
{
"role": "assistant",
"content": "SELECT \"callsign\" FROM \"table1_24418525_1\" WHERE \"coverage\"='Dumaguete Central Visayas Region';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24418525_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: How much power covers dumaguete central visayas region?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"power_k_w\") FROM \"table1_24418525_1\" WHERE \"coverage\"='Dumaguete Central Visayas Region';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24418525_1\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"coverage\" text\n);\n\nQuestion: What frequency is mega manila set to?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"table1_24418525_1\" WHERE \"coverage\"='Mega Manila';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_2\" (\n \"series\" real,\n \"season\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"episode_title\" text\n);\n\nQuestion: What original air date was for the episode with production code of 108?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_24425976_2\" WHERE \"production_code\"='108';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_2\" (\n \"series\" real,\n \"season\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"episode_title\" text\n);\n\nQuestion: How many production codes are there for episode 10 in the season?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_code\") FROM \"table1_24425976_2\" WHERE \"season\"='10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_2\" (\n \"series\" real,\n \"season\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"episode_title\" text\n);\n\nQuestion: What date did \"paintball deer hunter\" originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_24425976_2\" WHERE \"episode_title\"='\\\"Paintball Deer Hunter\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_2\" (\n \"series\" real,\n \"season\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"episode_title\" text\n);\n\nQuestion: What date did the episode with code 110 originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_24425976_2\" WHERE \"production_code\"='110';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_2\" (\n \"series\" real,\n \"season\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"episode_title\" text\n);\n\nQuestion: What is the name of the episode with a production code of 107?"
},
{
"role": "assistant",
"content": "SELECT \"episode_title\" FROM \"table1_24425976_2\" WHERE \"production_code\"='107';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_2\" (\n \"series\" real,\n \"season\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"episode_title\" text\n);\n\nQuestion: How many episodes in the series has a production code of 111?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"series\") FROM \"table1_24425976_2\" WHERE \"production_code\"='111';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"location\" text,\n \"tv\" text,\n \"matchup_winner_bolded\" text,\n \"payout_us\" text\n);\n\nQuestion: Name the total number of payout for december 28, 2009"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"payout_us\") FROM \"bowl_games\" WHERE \"date\"='December 28, 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"location\" text,\n \"tv\" text,\n \"matchup_winner_bolded\" text,\n \"payout_us\" text\n);\n\nQuestion: Name the payout for espn for music city bowl"
},
{
"role": "assistant",
"content": "SELECT \"payout_us\" FROM \"bowl_games\" WHERE \"tv\"='ESPN' AND \"bowl_game\"='Music City Bowl';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"bowl_game\" text,\n \"date\" text,\n \"stadium\" text,\n \"location\" text,\n \"tv\" text,\n \"matchup_winner_bolded\" text,\n \"payout_us\" text\n);\n\nQuestion: Name the date for raymond james stadium"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"bowl_games\" WHERE \"stadium\"='Raymond James Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_7\" (\n \"series\" real,\n \"season\" real,\n \"original_air_date\" text,\n \"production_code\" real,\n \"episode_title\" text\n);\n\nQuestion: What date did episode 4 in the season originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_24425976_7\" WHERE \"season\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24425976_7\" (\n \"series\" real,\n \"season\" real,\n \"original_air_date\" text,\n \"production_code\" real,\n \"episode_title\" text\n);\n\nQuestion: What date did episode 115 in the series originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_24425976_7\" WHERE \"series\"=115;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What was the 2nd leg for team #1 River Plate?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"round_of_16\" WHERE \"team_num1\"='River Plate';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What was team number 2's Fluminense's 2nd leg?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"round_of_16\" WHERE \"team_num2\"='Fluminense';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_french_open\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" text,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What was david ferrer seeded?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"seed\") FROM \"2010_french_open\" WHERE \"player\"='David Ferrer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_french_open\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" text,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What player had 1420 points coming in?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"2010_french_open\" WHERE \"points\"=1420;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_french_open\" (\n \"seed\" real,\n \"rank\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" text,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: How many players named victor h\u0103nescu played?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_won\") FROM \"2010_french_open\" WHERE \"player\"='Victor H\u0103nescu';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seats\" (\n \"governorate\" text,\n \"kurdistan_democratic_party\" real,\n \"patriotic_union_of_kurdistan\" real,\n \"total_kurdistan_list\" real,\n \"total_governorate_seats\" real\n);\n\nQuestion: Name the kurdistan democratic party for kurdistan list being 10"
},
{
"role": "assistant",
"content": "SELECT MIN(\"kurdistan_democratic_party\") FROM \"seats\" WHERE \"total_kurdistan_list\"=10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seats\" (\n \"governorate\" text,\n \"kurdistan_democratic_party\" real,\n \"patriotic_union_of_kurdistan\" real,\n \"total_kurdistan_list\" real,\n \"total_governorate_seats\" real\n);\n\nQuestion: Name the most kirdistan list for diyala"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total_kurdistan_list\") FROM \"seats\" WHERE \"governorate\"='Diyala';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seats\" (\n \"governorate\" text,\n \"kurdistan_democratic_party\" real,\n \"patriotic_union_of_kurdistan\" real,\n \"total_kurdistan_list\" real,\n \"total_governorate_seats\" real\n);\n\nQuestion: Name the governorate seats for hewler"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_governorate_seats\") FROM \"seats\" WHERE \"governorate\"='Hewler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seats\" (\n \"governorate\" text,\n \"kurdistan_democratic_party\" real,\n \"patriotic_union_of_kurdistan\" real,\n \"total_kurdistan_list\" real,\n \"total_governorate_seats\" real\n);\n\nQuestion: Name the least total kurdistan list"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_kurdistan_list\") FROM \"seats\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seats\" (\n \"governorate\" text,\n \"kurdistan_democratic_party\" real,\n \"patriotic_union_of_kurdistan\" real,\n \"total_kurdistan_list\" real,\n \"total_governorate_seats\" real\n);\n\nQuestion: Name the most total governorate seats for hewler"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total_governorate_seats\") FROM \"seats\" WHERE \"governorate\"='Hewler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mutya_ng_pilipinas_asia_pacific_titlehol\" (\n \"year\" real,\n \"mutya_ng_pilipinas_asia_pacific\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text,\n \"3rd_runner_up\" text,\n \"4th_runner_up\" text\n);\n\nQuestion: Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_runner_up\" FROM \"mutya_ng_pilipinas_asia_pacific_titlehol\" WHERE \"mutya_ng_pilipinas_asia_pacific\"='Rochelle Romero Ong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mutya_ng_pilipinas_asia_pacific_titlehol\" (\n \"year\" real,\n \"mutya_ng_pilipinas_asia_pacific\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text,\n \"3rd_runner_up\" text,\n \"4th_runner_up\" text\n);\n\nQuestion: List the year that mimilannie p. lisondra was the 3rd place winner."
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"mutya_ng_pilipinas_asia_pacific_titlehol\" WHERE \"2nd_runner_up\"='Mimilannie P. Lisondra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mutya_ng_pilipinas_asia_pacific_titlehol\" (\n \"year\" real,\n \"mutya_ng_pilipinas_asia_pacific\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text,\n \"3rd_runner_up\" text,\n \"4th_runner_up\" text\n);\n\nQuestion: List the number of years where ritchie ocampo was the mutya ng pilipinas winner."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"mutya_ng_pilipinas_asia_pacific_titlehol\" WHERE \"mutya_ng_pilipinas_asia_pacific\"='Ritchie Ocampo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24446718_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: Name the number of awardees for english and hindi"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"awardee_s\") FROM \"table1_24446718_7\" WHERE \"language\"='English and Hindi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24446718_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: Name the name of award for zubeen garg"
},
{
"role": "assistant",
"content": "SELECT \"name_of_award\" FROM \"table1_24446718_7\" WHERE \"awardee_s\"='Zubeen Garg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24446718_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: Name the awardee for best editing"
},
{
"role": "assistant",
"content": "SELECT \"awardee_s\" FROM \"table1_24446718_7\" WHERE \"name_of_award\"='Best Editing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24446718_7\" (\n \"name_of_award\" text,\n \"name_of_film\" text,\n \"language\" text,\n \"awardee_s\" text,\n \"cash_prize\" text\n);\n\nQuestion: Name the number of awardees for best cinematography"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"awardee_s\") FROM \"table1_24446718_7\" WHERE \"name_of_award\"='Best Cinematography';"
}
]
|
[
{
"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 \"team\" 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: Name the least flaps"
},
{
"role": "assistant",
"content": "SELECT MIN(\"f_laps\") FROM \"career_summary\";"
}
]
|
[
{
"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 \"team\" 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: Name th most poles for macau grand prix"
},
{
"role": "assistant",
"content": "SELECT MAX(\"poles\") FROM \"career_summary\" WHERE \"series\"='Macau Grand Prix';"
}
]
|
[
{
"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 \"team\" 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: Name the total number of races for 15th position"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"races\") FROM \"career_summary\" WHERE \"position\"='15th';"
}
]
|
[
{
"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 \"team\" 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: Name the most races for flaps larger than 2.0"
},
{
"role": "assistant",
"content": "SELECT MAX(\"races\") FROM \"career_summary\" WHERE \"f_laps\">2.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 \"team\" 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: Name the number of poles for 15th position"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"poles\") FROM \"career_summary\" WHERE \"position\"='15th';"
}
]
|
[
{
"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 \"team\" 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: Name the team for season 2010"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"season\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24466855_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Name the air date for jay j. demopoulos"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_24466855_1\" WHERE \"written_by\"='Jay J. Demopoulos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24481478_1\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: At which location did 29753 fans show up to watch the game?"
},
{
"role": "assistant",
"content": "SELECT \"game_site\" FROM \"table1_24481478_1\" WHERE \"attendance\"=29753;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24481478_1\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the game record during week 7?"
},
{
"role": "assistant",
"content": "SELECT \"team_record\" FROM \"table1_24481478_1\" WHERE \"week\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24481478_1\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What time did the game start on saturday, april 20?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff\" FROM \"table1_24481478_1\" WHERE \"date\"='Saturday, April 20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24481478_1\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: In which week was the team record 7\u20132?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"week\") FROM \"table1_24481478_1\" WHERE \"team_record\"='7\u20132';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24481478_1\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: How man fans showed up to watch the game versus the raleigh-durham skyhawks?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"table1_24481478_1\" WHERE \"opponent\"='Raleigh-Durham Skyhawks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"methodology\" (\n \"rank\" real,\n \"country\" text,\n \"disposable_usd_2011\" real,\n \"disposable_usd_growth\" real,\n \"compulsory_deduction\" text,\n \"gross_usd_2011\" real\n);\n\nQuestion: If the rank is 26, what is the disposable USD growth?"
},
{
"role": "assistant",
"content": "SELECT \"disposable_usd_growth\" FROM \"methodology\" WHERE \"rank\"=26;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"methodology\" (\n \"rank\" real,\n \"country\" text,\n \"disposable_usd_2011\" real,\n \"disposable_usd_growth\" real,\n \"compulsory_deduction\" text,\n \"gross_usd_2011\" real\n);\n\nQuestion: What country has a compulsory deduction of 29.3%?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"methodology\" WHERE \"compulsory_deduction\"='29.3%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"methodology\" (\n \"rank\" real,\n \"country\" text,\n \"disposable_usd_2011\" real,\n \"disposable_usd_growth\" real,\n \"compulsory_deduction\" text,\n \"gross_usd_2011\" real\n);\n\nQuestion: What is Australia's Disposable USD growth?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"disposable_usd_growth\") FROM \"methodology\" WHERE \"country\"='Australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"methodology\" (\n \"rank\" real,\n \"country\" text,\n \"disposable_usd_2011\" real,\n \"disposable_usd_growth\" real,\n \"compulsory_deduction\" text,\n \"gross_usd_2011\" real\n);\n\nQuestion: What is the lowest disposable USD 2011?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"disposable_usd_2011\") FROM \"methodology\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_statistics\" (\n \"name\" text,\n \"nationality\" text,\n \"position\" text,\n \"los_angeles_sol_career\" text,\n \"appearances\" real,\n \"starts\" real,\n \"minutes\" real,\n \"goals\" real,\n \"assists\" real\n);\n\nQuestion: Name the most minutes and starts being 12"
},
{
"role": "assistant",
"content": "SELECT MAX(\"minutes\") FROM \"all_time_statistics\" WHERE \"starts\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_statistics\" (\n \"name\" text,\n \"nationality\" text,\n \"position\" text,\n \"los_angeles_sol_career\" text,\n \"appearances\" real,\n \"starts\" real,\n \"minutes\" real,\n \"goals\" real,\n \"assists\" real\n);\n\nQuestion: Name the position for 132 minutes"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"all_time_statistics\" WHERE \"minutes\"=132;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bischofshofen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the rank for thomas morgenstern"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"bischofshofen\" WHERE \"name\"='Thomas Morgenstern';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bischofshofen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the rank for switzerland"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"bischofshofen\" WHERE \"nationality\"='Switzerland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bischofshofen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the points for switzerland"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"bischofshofen\" WHERE \"nationality\"='Switzerland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bischofshofen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the points for thomas morgenstern"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"bischofshofen\" WHERE \"name\"='Thomas Morgenstern';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bischofshofen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the total number of overall fht points for simon ammann"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"overall_fht_points\") FROM \"bischofshofen\" WHERE \"name\"='Simon Ammann';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_judges\" (\n \"position\" text,\n \"name\" text,\n \"stationed_in\" text,\n \"appointed\" real,\n \"nominated_by\" text,\n \"position_prior_to_appointment\" text\n);\n\nQuestion: When was jack watson appointed?"
},
{
"role": "assistant",
"content": "SELECT \"appointed\" FROM \"current_judges\" WHERE \"name\"='Jack Watson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"laid_down\" text,\n \"builder\" text,\n \"engine_builder\" text,\n \"launched\" text,\n \"completed\" text,\n \"disposition\" text,\n \"fate\" text\n);\n\nQuestion: When was the Carysfort launched?"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"ships\" WHERE \"ship\"='Carysfort';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"laid_down\" text,\n \"builder\" text,\n \"engine_builder\" text,\n \"launched\" text,\n \"completed\" text,\n \"disposition\" text,\n \"fate\" text\n);\n\nQuestion: When was the stokers' training ship launched?"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"ships\" WHERE \"disposition\"='Stokers'' training ship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"laid_down\" text,\n \"builder\" text,\n \"engine_builder\" text,\n \"launched\" text,\n \"completed\" text,\n \"disposition\" text,\n \"fate\" text\n);\n\nQuestion: How many ships were named Carysfort?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"completed\") FROM \"ships\" WHERE \"ship\"='Carysfort';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What is the background of the person fired in week 5?"
},
{
"role": "assistant",
"content": "SELECT \"background\" FROM \"candidates\" WHERE \"result\"='Fired in week 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What was the result of the player from Maylands, Western Australia?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"candidates\" WHERE \"hometown\"='Maylands, Western Australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many ages for player Amy Cato?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"age\") FROM \"candidates\" WHERE \"candidate\"='Amy Cato';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: What is the name of the player from Maylands, Western Australia?"
},
{
"role": "assistant",
"content": "SELECT \"candidate\" FROM \"candidates\" WHERE \"hometown\"='Maylands, Western Australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"candidates\" (\n \"candidate\" text,\n \"background\" text,\n \"original_team\" text,\n \"age\" real,\n \"hometown\" text,\n \"result\" text\n);\n\nQuestion: How many age figures for the player fired in week 6?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"age\") FROM \"candidates\" WHERE \"result\"='Fired in week 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: What was the latitude that had a UTC time of 18:19:36?"
},
{
"role": "assistant",
"content": "SELECT \"latitude\" FROM \"list_of_aftershocks\" WHERE \"time_utc\"='18:19:36';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_aftershocks\" (\n \"date_yyyy_mm_dd\" text,\n \"time_utc\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"depth\" text,\n \"magnitude\" text\n);\n\nQuestion: What is the depth of the aftershock at 18:00:22?"
},
{
"role": "assistant",
"content": "SELECT \"depth\" FROM \"list_of_aftershocks\" WHERE \"time_utc\"='18:00:22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24535095_2\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Name the team for susan bates"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_24535095_2\" WHERE \"listed_owner_s\"='Susan Bates';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24535095_2\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Name the truck for eric phillips"
},
{
"role": "assistant",
"content": "SELECT \"truck_s\" FROM \"table1_24535095_2\" WHERE \"crew_chief\"='Eric Phillips';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24535095_2\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Name the listed owner for mike garvey"
},
{
"role": "assistant",
"content": "SELECT \"listed_owner_s\" FROM \"table1_24535095_2\" WHERE \"crew_chief\"='Mike Garvey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24535095_2\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Name the least listed owner for pete raymer"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"table1_24535095_2\" WHERE \"listed_owner_s\"='Pete Raymer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_24535095_2\" (\n \"team\" text,\n \"truck_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Name the crew chief for rhonda thorson"
},
{
"role": "assistant",
"content": "SELECT \"crew_chief\" FROM \"table1_24535095_2\" WHERE \"listed_owner_s\"='Rhonda Thorson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2453243_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What episode number in the series is \"mean teacher\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_2453243_3\" WHERE \"title\"='\\\"Mean Teacher\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2453243_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What episode number in the series is \"guitar\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_2453243_3\" WHERE \"title\"='\\\"Guitar\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2453243_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the production code for episode 3 in the season?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"production_code\") FROM \"table1_2453243_3\" WHERE \"no_in_season\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"items\" text,\n \"2008_q1\" text,\n \"2008_q2\" text,\n \"2008_q3\" text,\n \"extrapol_08\" text,\n \"year_2007\" text\n);\n\nQuestion: Name the year 2007 for 668 2008-q1"
},
{
"role": "assistant",
"content": "SELECT \"year_2007\" FROM \"statistics\" WHERE \"2008_q1\"='668';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"items\" text,\n \"2008_q1\" text,\n \"2008_q2\" text,\n \"2008_q3\" text,\n \"extrapol_08\" text,\n \"year_2007\" text\n);\n\nQuestion: Name the year 2007 for 668 being 2008-q1"
},
{
"role": "assistant",
"content": "SELECT \"year_2007\" FROM \"statistics\" WHERE \"2008_q1\"='668';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"slogans_and_points\" (\n \"team\" text,\n \"slogan\" text,\n \"match1\" real,\n \"match2\" real,\n \"match3\" real,\n \"match4\" real,\n \"match5\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest score of all games for match 2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"match2\") FROM \"slogans_and_points\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"slogans_and_points\" (\n \"team\" text,\n \"slogan\" text,\n \"match1\" real,\n \"match2\" real,\n \"match3\" real,\n \"match4\" real,\n \"match5\" real,\n \"total\" real\n);\n\nQuestion: What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"match2\") FROM \"slogans_and_points\" WHERE \"match4\"=0 AND \"total\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"slogans_and_points\" (\n \"team\" text,\n \"slogan\" text,\n \"match1\" real,\n \"match2\" real,\n \"match3\" real,\n \"match4\" real,\n \"match5\" real,\n \"total\" real\n);\n\nQuestion: What is the score for match 1 for the team Eastern Tigers?"
},
{
"role": "assistant",
"content": "SELECT \"match1\" FROM \"slogans_and_points\" WHERE \"team\"='Eastern Tigers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i3\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"i_o_bus\" text\n);\n\nQuestion: How many sockets are listed that have a brand name of \"Core i3-2xx7m\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"socket\") FROM \"core_i3\" WHERE \"brand_name_list\"='Core i3-2xx7M';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i3\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"i_o_bus\" text\n);\n\nQuestion: What is the i/o bus for the brand name Core i3-21xx?"
},
{
"role": "assistant",
"content": "SELECT \"i_o_bus\" FROM \"core_i3\" WHERE \"brand_name_list\"='Core i3-21xx';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i3\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"i_o_bus\" text\n);\n\nQuestion: What i/o buses are associated with the brand name Core i3-21xxt?"
},
{
"role": "assistant",
"content": "SELECT \"i_o_bus\" FROM \"core_i3\" WHERE \"brand_name_list\"='Core i3-21xxT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i3\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"i_o_bus\" text\n);\n\nQuestion: What is the codename for the Core i3-32xxt?"
},
{
"role": "assistant",
"content": "SELECT \"codename_main_article\" FROM \"core_i3\" WHERE \"brand_name_list\"='Core i3-32xxT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i3\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"i_o_bus\" text\n);\n\nQuestion: What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?"
},
{
"role": "assistant",
"content": "SELECT \"i_o_bus\" FROM \"core_i3\" WHERE \"socket\"='LGA 1155' AND \"codename_main_article\"='Sandy Bridge (Desktop)' AND \"brand_name_list\"='Core i3-21xx';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"core_i3\" (\n \"codename_main_article\" text,\n \"brand_name_list\" text,\n \"cores\" real,\n \"l3_cache\" text,\n \"socket\" text,\n \"tdp\" text,\n \"i_o_bus\" text\n);\n\nQuestion: What is the sockets associated with a brand name of Core i3-3xx0m?"
},
{
"role": "assistant",
"content": "SELECT \"socket\" FROM \"core_i3\" WHERE \"brand_name_list\"='Core i3-3xx0M';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: Who was drafted by the calgary stampeders?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"round_six\" WHERE \"cfl_team\"='Calgary Stampeders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: Where was the player from se missouri state drafted?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pick_num\") FROM \"round_six\" WHERE \"school\"='SE Missouri State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What position does the player from kent state play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_six\" WHERE \"school\"='Kent State';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What school did the rb drafted attend?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"round_six\" WHERE \"position\"='RB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What numbered pick attended western ontario and is an OL?"
},
{
"role": "assistant",
"content": "SELECT \"pick_num\" FROM \"round_six\" WHERE \"school\"='Western Ontario' AND \"position\"='OL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_six\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: How many players attended SE missouri state?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"round_six\" WHERE \"school\"='SE Missouri State';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.