chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26808178_3\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Which series # had 0.852 U.S. viewers(millions)?" }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"table1_26808178_3\" WHERE \"u_s_viewers_millions\"='0.852';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26808178_3\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Which original air date had 0.871 U.S. viewers (millions)?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26808178_3\" WHERE \"u_s_viewers_millions\"='0.871';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26808178_3\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Which series # had 0.645 U.S. viewers(millions)?" }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"table1_26808178_3\" WHERE \"u_s_viewers_millions\"='0.645';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26808178_3\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who was the writer for the episode entitled \"dic pics\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_26808178_3\" WHERE \"title\"='\\\"Dic Pics\\\"';" } ]
[ { "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_name\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"podiums\" real,\n \"points\" real,\n \"final_placing\" text\n);\n\nQuestion: When 12th is the final placing what is the wins?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"final_placing\"='12th';" } ]
[ { "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_name\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"podiums\" real,\n \"points\" real,\n \"final_placing\" text\n);\n\nQuestion: When 24th is the final placing how many wins are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"career_summary\" WHERE \"final_placing\"='24th';" } ]
[ { "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_name\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"podiums\" real,\n \"points\" real,\n \"final_placing\" text\n);\n\nQuestion: What is the lowest overall amount of wins?" }, { "role": "assistant", "content": "SELECT MIN(\"wins\") FROM \"career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26824484_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What date did the episode with production code 3aky05 air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26824484_1\" WHERE \"production_code\"='3AKY05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26824484_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26824484_1\" WHERE \"directed_by\"='Jeff Woolnough' AND \"written_by\"='Christopher Ambrose';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26824484_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What was the original air date of the episode that was directed by Jessica Landaw?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26824484_1\" WHERE \"directed_by\"='Jessica Landaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26825349_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the episode number of the episode with a production code of 4aky14?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_26825349_1\" WHERE \"production_code\"='4AKY14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26825349_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: \"The con man in the meth lab\" was which episode number?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_26825349_1\" WHERE \"title\"='\\\"The Con Man in the Meth Lab\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26825349_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: The episode that had 8.62 million US viewers originally aired on which date?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26825349_1\" WHERE \"u_s_viewers_millions\"='8.62';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_five\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result in the game broadcast on the Big East Network? " }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_five\" WHERE \"broadcast\"='Big East Network';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_five\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result in the game where the visiting team was Louisiana-Monroe?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_five\" WHERE \"visiting_team\"='Louisiana-Monroe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_five\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the home team in the game broadcast on the Big East Network? " }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"week_five\" WHERE \"broadcast\"='Big East Network';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_five\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result in the game broadcast on the SEC Network? " }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_five\" WHERE \"broadcast\"='SEC Network';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_districts\" (\n \"district\" real,\n \"region\" text,\n \"communes\" text,\n \"population_2002_census\" real,\n \"pct_of_total_population\" text,\n \"vap\" real,\n \"enrolled\" real,\n \"total_votes\" real,\n \"valid_votes\" real,\n \"turnout\" text,\n \"e_vap\" text,\n \"t_vap\" text,\n \"v_vap\" text\n);\n\nQuestion: What is the number enrolled where t/vap is exactly 52.9%?" }, { "role": "assistant", "content": "SELECT \"enrolled\" FROM \"electoral_districts\" WHERE \"t_vap\"='52.9%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_districts\" (\n \"district\" real,\n \"region\" text,\n \"communes\" text,\n \"population_2002_census\" real,\n \"pct_of_total_population\" text,\n \"vap\" real,\n \"enrolled\" real,\n \"total_votes\" real,\n \"valid_votes\" real,\n \"turnout\" text,\n \"e_vap\" text,\n \"t_vap\" text,\n \"v_vap\" text\n);\n\nQuestion: How many districts have t/vap values of 67.0%?" }, { "role": "assistant", "content": "SELECT COUNT(\"district\") FROM \"electoral_districts\" WHERE \"t_vap\"='67.0%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_districts\" (\n \"district\" real,\n \"region\" text,\n \"communes\" text,\n \"population_2002_census\" real,\n \"pct_of_total_population\" text,\n \"vap\" real,\n \"enrolled\" real,\n \"total_votes\" real,\n \"valid_votes\" real,\n \"turnout\" text,\n \"e_vap\" text,\n \"t_vap\" text,\n \"v_vap\" text\n);\n\nQuestion: What is the e/vap value for a turnout of exactly 85.7%?" }, { "role": "assistant", "content": "SELECT \"e_vap\" FROM \"electoral_districts\" WHERE \"turnout\"='85.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_districts\" (\n \"district\" real,\n \"region\" text,\n \"communes\" text,\n \"population_2002_census\" real,\n \"pct_of_total_population\" text,\n \"vap\" real,\n \"enrolled\" real,\n \"total_votes\" real,\n \"valid_votes\" real,\n \"turnout\" text,\n \"e_vap\" text,\n \"t_vap\" text,\n \"v_vap\" text\n);\n\nQuestion: What communes have enrolled values of 174946?" }, { "role": "assistant", "content": "SELECT \"communes\" FROM \"electoral_districts\" WHERE \"enrolled\"=174946;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_districts\" (\n \"district\" real,\n \"region\" text,\n \"communes\" text,\n \"population_2002_census\" real,\n \"pct_of_total_population\" text,\n \"vap\" real,\n \"enrolled\" real,\n \"total_votes\" real,\n \"valid_votes\" real,\n \"turnout\" text,\n \"e_vap\" text,\n \"t_vap\" text,\n \"v_vap\" text\n);\n\nQuestion: How many total votes values are associated with t/vap values of 45.3%?" }, { "role": "assistant", "content": "SELECT COUNT(\"total_votes\") FROM \"electoral_districts\" WHERE \"t_vap\"='45.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"electoral_districts\" (\n \"district\" real,\n \"region\" text,\n \"communes\" text,\n \"population_2002_census\" real,\n \"pct_of_total_population\" text,\n \"vap\" real,\n \"enrolled\" real,\n \"total_votes\" real,\n \"valid_votes\" real,\n \"turnout\" text,\n \"e_vap\" text,\n \"t_vap\" text,\n \"v_vap\" text\n);\n\nQuestion: How many vap values are associated with 140469 valid votes?" }, { "role": "assistant", "content": "SELECT COUNT(\"vap\") FROM \"electoral_districts\" WHERE \"valid_votes\"=140469;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_four\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the time for georgia" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"week_four\" WHERE \"visiting_team\"='Georgia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_four\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the time for #1 alabama" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"week_four\" WHERE \"visiting_team\"='#1 Alabama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_eight\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the time for result msst 29\u201324" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"week_eight\" WHERE \"result\"='MSST 29\u201324';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_eight\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the number of time for uab" }, { "role": "assistant", "content": "SELECT COUNT(\"time\") FROM \"week_eight\" WHERE \"visiting_team\"='UAB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_eight\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the date for broadcast fsn" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"week_eight\" WHERE \"broadcast\"='FSN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_eight\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the broadcast for 7:00pm and mississippi state" }, { "role": "assistant", "content": "SELECT \"broadcast\" FROM \"week_eight\" WHERE \"time\"='7:00pm' AND \"home_team\"='Mississippi State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_eight\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the date for espn" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"week_eight\" WHERE \"broadcast\"='ESPN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_eight\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Name the broadcast for davis-wade stadium \u2022 starkville ms" }, { "role": "assistant", "content": "SELECT \"broadcast\" FROM \"week_eight\" WHERE \"site\"='Davis-Wade Stadium \u2022 Starkville MS';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_seven\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: On what network was the Kentucky game broadcast? " }, { "role": "assistant", "content": "SELECT \"broadcast\" FROM \"week_seven\" WHERE \"home_team\"='Kentucky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Where's the louisiana-lafayette as a visiting team?" }, { "role": "assistant", "content": "SELECT \"site\" FROM \"week_one\" WHERE \"visiting_team\"='Louisiana-Lafayette';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What were the results of the tennessee tech as a visiting team?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_one\" WHERE \"visiting_team\"='Tennessee Tech';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the home team where the San Jose state is the visiting team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"week_one\" WHERE \"visiting_team\"='San Jose State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What were the results in the bryant-denny stadium \u2022 tuscaloosa, al?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_one\" WHERE \"site\"='Bryant-Denny Stadium \u2022 Tuscaloosa, AL';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_one\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What home team is at 7:30pm in ESPN?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"week_one\" WHERE \"time\"='7:30pm' AND \"broadcast\"='ESPN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_three\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: If the visiting team is Clemson, when was the time?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"week_three\" WHERE \"visiting_team\"='Clemson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_three\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many times was the site wallace wade stadium \u2022 durham, nc?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"week_three\" WHERE \"site\"='Wallace Wade Stadium \u2022 Durham, NC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_three\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: If the site was wallace wade stadium \u2022 durham, nc, what was the result?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"week_three\" WHERE \"site\"='Wallace Wade Stadium \u2022 Durham, NC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_three\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: If the site is sanford stadium \u2022 athens, ga, what is the date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"week_three\" WHERE \"site\"='Sanford Stadium \u2022 Athens, GA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26845668_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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the production code for the movie with 4.32 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_26845668_1\" WHERE \"u_s_viewers_millions\"='4.32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many times was Louisiana-Monroe a visiting team?" }, { "role": "assistant", "content": "SELECT COUNT(\"time\") FROM \"week_two\" WHERE \"visiting_team\"='Louisiana-Monroe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: List all dates where South Florida was a visiting team." }, { "role": "assistant", "content": "SELECT \"date\" FROM \"week_two\" WHERE \"visiting_team\"='South Florida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many times was #7 Oregon a visiting team?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"week_two\" WHERE \"visiting_team\"='#7 Oregon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: List all home teams when Western Kentucky was the visiting team." }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"week_two\" WHERE \"visiting_team\"='Western Kentucky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"week_two\" (\n \"date\" text,\n \"time\" text,\n \"visiting_team\" text,\n \"home_team\" text,\n \"site\" text,\n \"broadcast\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: List all times with Kentucky as the home team." }, { "role": "assistant", "content": "SELECT \"time\" FROM \"week_two\" WHERE \"home_team\"='Kentucky';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: What is the score when the opposition is mid canterbury?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2009\" WHERE \"opposition\"='Mid Canterbury';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: what is the home team when the opposition is east coast?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"2009\" WHERE \"opposition\"='East Coast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: What is the home team when the opposition is wairarapa bush?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"2009\" WHERE \"opposition\"='Wairarapa Bush';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: what is the home team when the round # is round 1?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"2009\" WHERE \"round_num\"='Round 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: Who is the opposition when the score is 37 - 28?" }, { "role": "assistant", "content": "SELECT \"opposition\" FROM \"2009\" WHERE \"score\"='37 - 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: What is the location when the opposition is mid canterbury?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"2009\" WHERE \"opposition\"='Mid Canterbury';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: What was the score in round 7?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2008\" WHERE \"round_num\"='Round 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: Who was the home team when the opposition was Buller?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"2008\" WHERE \"opposition\"='Buller';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: Was it a win or loss for Wanganui in round 3?" }, { "role": "assistant", "content": "SELECT \"win_loss\" FROM \"2008\" WHERE \"round_num\"='Round 3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: What was the location when the opposition was East Coast?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"2008\" WHERE \"opposition\"='East Coast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: What was the score when the opposition was West Coast in Wanganui?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2008\" WHERE \"opposition\"='West Coast' AND \"location\"='Wanganui';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"round_num\" text,\n \"home_team\" text,\n \"win_loss\" text,\n \"score\" text,\n \"opposition\" text,\n \"location\" text\n);\n\nQuestion: Was it a win or a loss for Wanganui in Paeroa?" }, { "role": "assistant", "content": "SELECT \"win_loss\" FROM \"2008\" WHERE \"location\"='Paeroa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866205_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is every original air date for series# of 26?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_26866205_1\" WHERE \"series_num\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866277_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who is the director where title is \"the comeback\"?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_26866277_1\" WHERE \"title\"='\\\"The Comeback\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866233_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: The episode with the title \"Written in Dust\" is what episode #? " }, { "role": "assistant", "content": "SELECT \"episode_num\" FROM \"table1_26866233_1\" WHERE \"title\"='\\\"Written in Dust\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866233_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who are the directors of the episode in series # 54?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_26866233_1\" WHERE \"series_num\"=54;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866233_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: The director of the episode with the title \"The Sky is Falling\" is who?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_26866233_1\" WHERE \"title\"='\\\"The Sky is Falling\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866233_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who are the writers of the episode with the title \"An Angel by Any Other Name\"?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_26866233_1\" WHERE \"title\"='\\\"An Angel by Any Other Name\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866233_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: The episode where the director is Gene Reynolds has who as the writer?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_26866233_1\" WHERE \"director\"='Gene Reynolds';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866233_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: The episode with the original airdate December22,1996 has what title? " }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26866233_1\" WHERE \"original_airdate\"='December22,1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866299_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the original air date of the episode written by michael glassberg?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_26866299_1\" WHERE \"writer\"='Michael Glassberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866299_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the original air date for episode number 96 in the series?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_26866299_1\" WHERE \"series_num\"=96;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866299_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the first numbered episode in the series titled \"the wind beneath our wings\"?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_26866299_1\" WHERE \"title\"='\\\"The Wind Beneath Our Wings\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866299_1\" (\n \"series_num\" real,\n \"episode_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What numbered episode in the series is directed by tim van patten and titled \"black like monica\"?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_26866299_1\" WHERE \"director\"='Tim Van Patten' AND \"title\"='\\\"Black Like Monica\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866434_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode number in the series is \"millennium\"?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_26866434_1\" WHERE \"title\"='\\\"Millennium\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866434_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote episode 122 in the series?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_26866434_1\" WHERE \"series_num\"=122;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866434_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote \"Monica's bad day\"?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_26866434_1\" WHERE \"title\"='\\\"Monica''s Bad Day\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866519_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who directed series episode number 201?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_26866519_1\" WHERE \"series_num\"=201;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866519_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the first series episode number for \"the christmas watch\"?" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_26866519_1\" WHERE \"title\"='\\\"The Christmas Watch\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866519_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What are the original air date(s) for season episode 20?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_26866519_1\" WHERE \"season_num\"=20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866519_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who wrote \"at the end of the aisle\"?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_26866519_1\" WHERE \"title\"='\\\"At The End of the Aisle\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866519_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who wrote \"the word\"?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_26866519_1\" WHERE \"title\"='\\\"The Word\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26866519_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many episodes are directed by ricardo mendez matta?" }, { "role": "assistant", "content": "SELECT COUNT(\"season_num\") FROM \"table1_26866519_1\" WHERE \"director\"='Ricardo Mendez Matta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"central_hockey_league\" (\n \"season\" text,\n \"games\" real,\n \"wins\" real,\n \"losses\" real,\n \"ties\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text,\n \"playoffs\" text\n);\n\nQuestion: Name the leaast points for standing 5th" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"central_hockey_league\" WHERE \"standing\"='5th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26894949_2\" (\n \"event\" text,\n \"start_date\" text,\n \"finish_date\" text,\n \"start\" text,\n \"finish\" text,\n \"distance\" text,\n \"abu_dhabi\" text,\n \"camper\" real,\n \"groupama\" real,\n \"puma\" text,\n \"sanya\" text,\n \"telef_nica\" real\n);\n\nQuestion: If puma is 12, what is camper?" }, { "role": "assistant", "content": "SELECT MIN(\"camper\") FROM \"table1_26894949_2\" WHERE \"puma\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26894949_2\" (\n \"event\" text,\n \"start_date\" text,\n \"finish_date\" text,\n \"start\" text,\n \"finish\" text,\n \"distance\" text,\n \"abu_dhabi\" text,\n \"camper\" real,\n \"groupama\" real,\n \"puma\" text,\n \"sanya\" text,\n \"telef_nica\" real\n);\n\nQuestion: In how many events was Puma 20 and abu dhabi 30?" }, { "role": "assistant", "content": "SELECT COUNT(\"event\") FROM \"table1_26894949_2\" WHERE \"puma\"='20' AND \"abu_dhabi\"='30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26894949_2\" (\n \"event\" text,\n \"start_date\" text,\n \"finish_date\" text,\n \"start\" text,\n \"finish\" text,\n \"distance\" text,\n \"abu_dhabi\" text,\n \"camper\" real,\n \"groupama\" real,\n \"puma\" text,\n \"sanya\" text,\n \"telef_nica\" real\n);\n\nQuestion: How many time was the distance Abu Dhabi?" }, { "role": "assistant", "content": "SELECT COUNT(\"sanya\") FROM \"table1_26894949_2\" WHERE \"distance\"='Abu Dhabi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: When czech republic is the country what is the lowest amount l?" }, { "role": "assistant", "content": "SELECT MIN(\"l\") FROM \"standings\" WHERE \"country\"='Czech Republic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\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 largest amount of ends lost?" }, { "role": "assistant", "content": "SELECT MAX(\"ends_lost\") FROM \"standings\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: When sweden is the country who is the skip?" }, { "role": "assistant", "content": "SELECT \"skip\" FROM \"standings\" WHERE \"country\"='Sweden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: When chen lu'an is the skip what is the lowest amount l's?" }, { "role": "assistant", "content": "SELECT MIN(\"l\") FROM \"standings\" WHERE \"skip\"='Chen Lu''an';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26914076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the story viewed by 0.53 million viewers?" }, { "role": "assistant", "content": "SELECT \"story_by\" FROM \"table1_26914076_3\" WHERE \"u_s_viewers_millions\"='0.53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26914076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many viewers watched the episode with a story by david simon & mari kornhauser?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_26914076_3\" WHERE \"story_by\"='David Simon & Mari Kornhauser';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26914076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?" }, { "role": "assistant", "content": "SELECT COUNT(\"u_s_viewers_millions\") FROM \"table1_26914076_3\" WHERE \"directed_by\"='Rob Bailey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26914076_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the date the episode directed by rob bailey aired?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_26914076_3\" WHERE \"directed_by\"='Rob Bailey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: WHich team had dave penney as an incoming manager" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"incoming_manager\"='Dave Penney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What was the manner of departure for notts county with an incoming manager of martin allen" }, { "role": "assistant", "content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"team\"='Notts County' AND \"incoming_manager\"='Martin Allen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: How many teams had gary megson as an incoming manager" }, { "role": "assistant", "content": "SELECT COUNT(\"position_in_table\") FROM \"managerial_changes\" WHERE \"incoming_manager\"='Gary Megson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: who was the incoming manager for the 12th position in the table" }, { "role": "assistant", "content": "SELECT \"incoming_manager\" FROM \"managerial_changes\" WHERE \"position_in_table\"='12th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"age\" real,\n \"home_town\" text,\n \"team_school\" text\n);\n\nQuestion: How tall is the player from farmington, ky?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"roster\" WHERE \"home_town\"='Farmington, KY';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"age\" real,\n \"home_town\" text,\n \"team_school\" text\n);\n\nQuestion: Where did adrian smith go to college?" }, { "role": "assistant", "content": "SELECT \"team_school\" FROM \"roster\" WHERE \"name\"='Adrian Smith';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"age\" real,\n \"home_town\" text,\n \"team_school\" text\n);\n\nQuestion: What player attended california university?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"roster\" WHERE \"team_school\"='California';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"age\" real,\n \"home_town\" text,\n \"team_school\" text\n);\n\nQuestion: What is the name of the player from purcell, ok?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"roster\" WHERE \"home_town\"='Purcell, OK';" } ]