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 \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the location attendance for utah" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"team\"='Utah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games were played against houston?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"regular_season\" WHERE \"team\"='Houston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What team was played on november 24?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"regular_season\" WHERE \"date\"='November 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the most points in game 4?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"regular_season\" WHERE \"game\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the highest points against new york?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"regular_season\" WHERE \"team\"='New York';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_religions\" (\n \"district\" text,\n \"sc_st\" text,\n \"nairs\" text,\n \"ezhavas\" text,\n \"syrian_christians\" text,\n \"latin_christians\" text,\n \"muslims\" text,\n \"others\" text,\n \"total\" real\n);\n\nQuestion: Name the syrian christians for thiruvananthapuram" }, { "role": "assistant", "content": "SELECT \"syrian_christians\" FROM \"indian_religions\" WHERE \"district\"='Thiruvananthapuram';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_religions\" (\n \"district\" text,\n \"sc_st\" text,\n \"nairs\" text,\n \"ezhavas\" text,\n \"syrian_christians\" text,\n \"latin_christians\" text,\n \"muslims\" text,\n \"others\" text,\n \"total\" real\n);\n\nQuestion: Name the ezhavas for muslims being 5.4" }, { "role": "assistant", "content": "SELECT \"ezhavas\" FROM \"indian_religions\" WHERE \"muslims\"='5.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_religions\" (\n \"district\" text,\n \"sc_st\" text,\n \"nairs\" text,\n \"ezhavas\" text,\n \"syrian_christians\" text,\n \"latin_christians\" text,\n \"muslims\" text,\n \"others\" text,\n \"total\" real\n);\n\nQuestion: Name the ezhavas and syrian christians being 26.2" }, { "role": "assistant", "content": "SELECT \"ezhavas\" FROM \"indian_religions\" WHERE \"syrian_christians\"='26.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_religions\" (\n \"district\" text,\n \"sc_st\" text,\n \"nairs\" text,\n \"ezhavas\" text,\n \"syrian_christians\" text,\n \"latin_christians\" text,\n \"muslims\" text,\n \"others\" text,\n \"total\" real\n);\n\nQuestion: Name the syrian christians for kollam" }, { "role": "assistant", "content": "SELECT \"syrian_christians\" FROM \"indian_religions\" WHERE \"district\"='Kollam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_religions\" (\n \"district\" text,\n \"sc_st\" text,\n \"nairs\" text,\n \"ezhavas\" text,\n \"syrian_christians\" text,\n \"latin_christians\" text,\n \"muslims\" text,\n \"others\" text,\n \"total\" real\n);\n\nQuestion: Name the district for others being 18.3" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"indian_religions\" WHERE \"others\"='18.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indian_religions\" (\n \"district\" text,\n \"sc_st\" text,\n \"nairs\" text,\n \"ezhavas\" text,\n \"syrian_christians\" text,\n \"latin_christians\" text,\n \"muslims\" text,\n \"others\" text,\n \"total\" real\n);\n\nQuestion: Name the district for nairs 8.2" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"indian_religions\" WHERE \"nairs\"='8.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_seedings\" (\n \"rank\" real,\n \"team\" text,\n \"total_points\" real,\n \"2008_09_points\" real,\n \"2007_08_points\" real,\n \"2006_07_points\" real,\n \"2005_06_points\" real\n);\n\nQuestion: If the total points is 5, what is the 2005-2006 points total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"2005_06_points\") FROM \"team_seedings\" WHERE \"total_points\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_seedings\" (\n \"rank\" real,\n \"team\" text,\n \"total_points\" real,\n \"2008_09_points\" real,\n \"2007_08_points\" real,\n \"2006_07_points\" real,\n \"2005_06_points\" real\n);\n\nQuestion: What is the 2006-2007 points minimum is the team is Overmach Parma?" }, { "role": "assistant", "content": "SELECT MIN(\"2006_07_points\") FROM \"team_seedings\" WHERE \"team\"='Overmach Parma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_seedings\" (\n \"rank\" real,\n \"team\" text,\n \"total_points\" real,\n \"2008_09_points\" real,\n \"2007_08_points\" real,\n \"2006_07_points\" real,\n \"2005_06_points\" real\n);\n\nQuestion: If the team is Worcester, what is the 2005-2006 points?" }, { "role": "assistant", "content": "SELECT \"2005_06_points\" FROM \"team_seedings\" WHERE \"team\"='Worcester';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_seedings\" (\n \"rank\" real,\n \"team\" text,\n \"total_points\" real,\n \"2008_09_points\" real,\n \"2007_08_points\" real,\n \"2006_07_points\" real,\n \"2005_06_points\" real\n);\n\nQuestion: What is the 2006-2007 points total number if the team is Saracens?" }, { "role": "assistant", "content": "SELECT COUNT(\"2006_07_points\") FROM \"team_seedings\" WHERE \"team\"='Saracens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_seedings\" (\n \"rank\" real,\n \"team\" text,\n \"total_points\" real,\n \"2008_09_points\" real,\n \"2007_08_points\" real,\n \"2006_07_points\" real,\n \"2005_06_points\" real\n);\n\nQuestion: If the points is 1, what is the total points minimum?" }, { "role": "assistant", "content": "SELECT MIN(\"total_points\") FROM \"team_seedings\" WHERE \"2005_06_points\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_bavaria\" (\n \"season\" text,\n \"oberbayern_a\" text,\n \"oberbayern_b\" text,\n \"niederbayern\" text,\n \"schwaben\" text,\n \"oberpfalz\" text\n);\n\nQuestion: When spvgg vohenstrau\u00df is the oberpfalz what is the season?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"southern_bavaria\" WHERE \"oberpfalz\"='SpVgg Vohenstrau\u00df';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_bavaria\" (\n \"season\" text,\n \"oberbayern_a\" text,\n \"oberbayern_b\" text,\n \"niederbayern\" text,\n \"schwaben\" text,\n \"oberpfalz\" text\n);\n\nQuestion: When esv ingolstadt is the oberbayern b what is the niederbayern?" }, { "role": "assistant", "content": "SELECT \"niederbayern\" FROM \"southern_bavaria\" WHERE \"oberbayern_b\"='ESV Ingolstadt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_bavaria\" (\n \"season\" text,\n \"oberbayern_a\" text,\n \"oberbayern_b\" text,\n \"niederbayern\" text,\n \"schwaben\" text,\n \"oberpfalz\" text\n);\n\nQuestion: When wacker burghausen is the oberbayern a what is the schwaben?" }, { "role": "assistant", "content": "SELECT \"schwaben\" FROM \"southern_bavaria\" WHERE \"oberbayern_a\"='Wacker Burghausen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_bavaria\" (\n \"season\" text,\n \"oberbayern_a\" text,\n \"oberbayern_b\" text,\n \"niederbayern\" text,\n \"schwaben\" text,\n \"oberpfalz\" text\n);\n\nQuestion: When fc oberau is the oberbayern a what is the oberpfalz?" }, { "role": "assistant", "content": "SELECT \"oberpfalz\" FROM \"southern_bavaria\" WHERE \"oberbayern_a\"='FC Oberau';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_bavaria\" (\n \"season\" text,\n \"oberbayern_a\" text,\n \"oberbayern_b\" text,\n \"niederbayern\" text,\n \"schwaben\" text,\n \"oberpfalz\" text\n);\n\nQuestion: When tus rosenberg is the oberpfalz what is the oberbayern b?" }, { "role": "assistant", "content": "SELECT \"oberbayern_b\" FROM \"southern_bavaria\" WHERE \"oberpfalz\"='TuS Rosenberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"southern_bavaria\" (\n \"season\" text,\n \"oberbayern_a\" text,\n \"oberbayern_b\" text,\n \"niederbayern\" text,\n \"schwaben\" text,\n \"oberpfalz\" text\n);\n\nQuestion: When fc schwandorf is the oberpfalz what is the oberbayern b?" }, { "role": "assistant", "content": "SELECT \"oberbayern_b\" FROM \"southern_bavaria\" WHERE \"oberpfalz\"='FC Schwandorf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_19_finals_8_titles_11_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the score in the final when the outcome was winner in 1989?" }, { "role": "assistant", "content": "SELECT \"score_in_the_final\" FROM \"singles_19_finals_8_titles_11_runner_ups\" WHERE \"outcome\"='Winner' AND \"year\"=1989;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_19_finals_8_titles_11_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the score in the final when Mats Wilander was the opponent in the Australian Open?" }, { "role": "assistant", "content": "SELECT \"score_in_the_final\" FROM \"singles_19_finals_8_titles_11_runner_ups\" WHERE \"championship\"='Australian Open' AND \"opponent_in_the_final\"='Mats Wilander';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23225927_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\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: If the number in the season is 22, what is the original air date?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23225927_1\" WHERE \"no_in_season\"=22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23225927_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\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the maximum season number for the episode written by Jonathan Greene?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_23225927_1\" WHERE \"written_by\"='Jonathan Greene';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2322716_2\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_dates\" text,\n \"prod_code\" real\n);\n\nQuestion: Name the original air date for prod code 201" }, { "role": "assistant", "content": "SELECT \"original_air_dates\" FROM \"table1_2322716_2\" WHERE \"prod_code\"=201;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2322716_2\" (\n \"num\" text,\n \"original_title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_dates\" text,\n \"prod_code\" real\n);\n\nQuestion: Name the written by for prod code being 206" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_2322716_2\" WHERE \"prod_code\"=206;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"driver_standings\" (\n \"position\" real,\n \"driver\" text,\n \"points\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5s\" real,\n \"top_10s\" real,\n \"winnings\" real\n);\n\nQuestion: How many positions are there in Canadian Nascar? " }, { "role": "assistant", "content": "SELECT MAX(\"position\") FROM \"driver_standings\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"driver_standings\" (\n \"position\" real,\n \"driver\" text,\n \"points\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5s\" real,\n \"top_10s\" real,\n \"winnings\" real\n);\n\nQuestion: How many drivers have 1942 points?" }, { "role": "assistant", "content": "SELECT COUNT(\"driver\") FROM \"driver_standings\" WHERE \"points\"=1942;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"driver_standings\" (\n \"position\" real,\n \"driver\" text,\n \"points\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5s\" real,\n \"top_10s\" real,\n \"winnings\" real\n);\n\nQuestion: How many starts are there?" }, { "role": "assistant", "content": "SELECT MIN(\"starts\") FROM \"driver_standings\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"driver_standings\" (\n \"position\" real,\n \"driver\" text,\n \"points\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5s\" real,\n \"top_10s\" real,\n \"winnings\" real\n);\n\nQuestion: How many wins did Andrew Ranger have?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"driver_standings\" WHERE \"driver\"='Andrew Ranger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"driver_standings\" (\n \"position\" real,\n \"driver\" text,\n \"points\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5s\" real,\n \"top_10s\" real,\n \"winnings\" real\n);\n\nQuestion: What are the winnings for position 7?" }, { "role": "assistant", "content": "SELECT MAX(\"winnings\") FROM \"driver_standings\" WHERE \"position\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242958_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 number episode in the series was written by David Zuckerman? " }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_23242958_1\" WHERE \"written_by\"='David Zuckerman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242958_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 original air date of the episode written by David Zuckerman? " }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23242958_1\" WHERE \"written_by\"='David Zuckerman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242958_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 title of the episode directed by Rodney Clouden? " }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_23242958_1\" WHERE \"directed_by\"='Rodney Clouden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242958_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: How many millions of U.S. viewers watched the episode with the production code of 3AJN01?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_23242958_1\" WHERE \"production_code\"='3AJN01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242968_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: Who directed the episode that had 6.76 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_23242968_1\" WHERE \"u_s_viewers_millions\"='6.76';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242968_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 episode number of the season was also number 75 in the series?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_23242968_1\" WHERE \"no_in_series\"=75;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242968_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: Who wrote the episode that had a production code of 3ajn20?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_23242968_1\" WHERE \"production_code\"='3AJN20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242968_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: Who directed the episode that was written by Jonathan Fener?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_23242968_1\" WHERE \"written_by\"='Jonathan Fener';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242968_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 name of the episode with a production code of 3ajn20?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_23242968_1\" WHERE \"production_code\"='3AJN20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242933_2\" (\n \"no_in_series\" 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: Who wrote the episode with production code 1AJN05?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_23242933_2\" WHERE \"production_code\"='1AJN05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242933_2\" (\n \"no_in_series\" 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: How many different series numbers are there for the episode seen by 7.84 million people in the US?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_23242933_2\" WHERE \"u_s_viewers_millions\"='7.84';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242933_2\" (\n \"no_in_series\" 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: How many millions of people in the US saw the episode titled \"Francine's Flashback\"?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_23242933_2\" WHERE \"title\"='\\\"Francine''s Flashback\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242933_2\" (\n \"no_in_series\" 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's the series number of the episode written by Dan Vebber?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_series\") FROM \"table1_23242933_2\" WHERE \"written_by\"='Dan Vebber';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242933_2\" (\n \"no_in_series\" 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: How many different titles are there of episodes that have been seen by 7.84 million people in the US/" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_23242933_2\" WHERE \"u_s_viewers_millions\"='7.84';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242933_2\" (\n \"no_in_series\" 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: When did 6.09 million people in the US see the original airing of an episode of the show?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23242933_2\" WHERE \"u_s_viewers_millions\"='6.09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242950_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's the season number of the episode titled \"Dungeons and wagons\"?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_23242950_1\" WHERE \"title\"='\\\"Dungeons and Wagons\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242950_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's the season number of the episode originally seen by 6.64 million people in the US?" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_23242950_1\" WHERE \"u_s_viewers_millions\"='6.64';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23242950_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's the production code of the episode seen by 7.49 million people in the US?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_23242950_1\" WHERE \"u_s_viewers_millions\"='7.49';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"sun_devils_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: What opponent got 44 points in their game?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"opp_points\"=44;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"sun_devils_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Where was the game with a 4-1 record played?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"schedule\" WHERE \"record\"='4-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_points\"='Larry Hughes (21)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many different people did different scores of high assists during the December 11 game?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"date\"='December 11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the high assists in the game against Portland?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"team\"='Portland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"location_attendance\"='Madison Square Garden 19,763' AND \"game\"<80.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every record for the team Boston?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Boston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many values for high assists when the game is 81?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"game\"=81;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times was the high points david lee (30)" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"game_log\" WHERE \"high_points\"='David Lee (30)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high assists when the score was l 85\u2013118 (ot)" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"score\"='L 85\u2013118 (OT)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record when the high rebounds was david lee (8)" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_rebounds\"='David Lee (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times was the record 19\u201334" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"record\"='19\u201334';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score when the record was 19\u201335" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='19\u201335';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the game when high points was david lee (30)" }, { "role": "assistant", "content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"high_points\"='David Lee (30)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"no_of_barangays\" real,\n \"area_km\" text,\n \"population_2010_census\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: If the population density is 7,447.32, what is the population total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2010_census\") FROM \"political\" WHERE \"pop_density_per_km\"='7,447.32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"no_of_barangays\" real,\n \"area_km\" text,\n \"population_2010_census\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: If the number of barangays is 19, what is the population density?" }, { "role": "assistant", "content": "SELECT \"pop_density_per_km\" FROM \"political\" WHERE \"no_of_barangays\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"no_of_barangays\" real,\n \"area_km\" text,\n \"population_2010_census\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: If the area is 66.34, what is the minimum (2010 census) population?" }, { "role": "assistant", "content": "SELECT MIN(\"population_2010_census\") FROM \"political\" WHERE \"area_km\"='66.34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"no_of_barangays\" real,\n \"area_km\" text,\n \"population_2010_census\" real,\n \"pop_density_per_km\" text\n);\n\nQuestion: What is the name of the city/municipality if the population is 1,388.88?" }, { "role": "assistant", "content": "SELECT \"city_municipality\" FROM \"political\" WHERE \"pop_density_per_km\"='1,388.88';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cities_and_towns\" (\n \"rank\" real,\n \"city_town\" text,\n \"county\" text,\n \"region_province\" text,\n \"population\" real,\n \"country\" text\n);\n\nQuestion: When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"cities_and_towns\" WHERE \"country\"='England' AND \"county\"='Merseyside' AND \"city_town\"='Birkenhead';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cities_and_towns\" (\n \"rank\" real,\n \"city_town\" text,\n \"county\" text,\n \"region_province\" text,\n \"population\" real,\n \"country\" text\n);\n\nQuestion: When 2 is the rank what is the city/town?" }, { "role": "assistant", "content": "SELECT \"city_town\" FROM \"cities_and_towns\" WHERE \"rank\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cities_and_towns\" (\n \"rank\" real,\n \"city_town\" text,\n \"county\" text,\n \"region_province\" text,\n \"population\" real,\n \"country\" text\n);\n\nQuestion: When 20 is the rank and north west is the region/province what is the county?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"cities_and_towns\" WHERE \"region_province\"='North West' AND \"rank\"=20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cities_and_towns\" (\n \"rank\" real,\n \"city_town\" text,\n \"county\" text,\n \"region_province\" text,\n \"population\" real,\n \"country\" text\n);\n\nQuestion: When fleetwood is the city/town how many sets of population are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"population\") FROM \"cities_and_towns\" WHERE \"city_town\"='Fleetwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cities_and_towns\" (\n \"rank\" real,\n \"city_town\" text,\n \"county\" text,\n \"region_province\" text,\n \"population\" real,\n \"country\" text\n);\n\nQuestion: When 142900 is the population what is the highest rank?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"cities_and_towns\" WHERE \"population\"=142900;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cities_and_towns\" (\n \"rank\" real,\n \"city_town\" text,\n \"county\" text,\n \"region_province\" text,\n \"population\" real,\n \"country\" text\n);\n\nQuestion: When 31901 is the population what is the county?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"cities_and_towns\" WHERE \"population\"=31901;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score against the team with an 11-3 record against the Hawks?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='11-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"record\"='5-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What location and it's attendance was the game against the cavaliers?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Cavaliers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the highest points and how much against the raptors?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Raptors';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What location and it's attendance was the game against the Nets?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Nets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: List all players with highest assists from April 2." }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='April 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: List high points from the April 7 game." }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='April 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every team on March 5?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='March 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who is every high points for the Pistons team?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Pistons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is every score with a record of 46-25?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='46-25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many people had high rebounds during the game with a record of 34-32?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"record\"='34-32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many people led in assists on game 71?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"game\"=71;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the location and it's attendance when the Bobcats played against Washington?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Washington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the record for milwaukee" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Milwaukee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the location attendance for 10-14" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='10-14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the record for december 8" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='December 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How did the game number 50 end?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=50;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many different high assists results are there for the game played on February 24?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"date\"='February 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the most high assists during the game played on February 6?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='February 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Where was game number 55 played?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=55;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What date was game 78 played on?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=78;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the final score of the game on April 9?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='April 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the high points in game 78?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"game\"=78;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the score when the game is bigger than 29.0?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\">29.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When rashard lewis (24) has the highest amount of points who is the team?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"high_points\"='Rashard Lewis (24)';" } ]