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 \"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 vince carter (24) has the highest points how many teams are there? " }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"game_log\" WHERE \"high_points\"='Vince Carter (24)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10_7_titles_3_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: In which championship did John Newcombe play against Ken Rosewall in the final match?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"singles_10_7_titles_3_runner_ups\" WHERE \"opponent_in_the_final\"='Ken Rosewall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10_7_titles_3_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 were the scores of the Wimbledon final matches where Newcombe was the runner-up?" }, { "role": "assistant", "content": "SELECT \"score_in_the_final\" FROM \"singles_10_7_titles_3_runner_ups\" WHERE \"outcome\"='Runner-up' AND \"championship\"='Wimbledon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10_7_titles_3_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: On what year did Newcombe first face Clark Graebner in a final match?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"singles_10_7_titles_3_runner_ups\" WHERE \"opponent_in_the_final\"='Clark Graebner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_10_7_titles_3_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 outcome for Newcombe in the matches he played against Jan Kode\u0161?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_10_7_titles_3_runner_ups\" WHERE \"opponent_in_the_final\"='Jan Kode\u0161';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23255941_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: How many writers were there in the episode directed by Charles Haid?" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_23255941_1\" WHERE \"directed_by\"='Charles Haid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23255941_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What was the original air date of \"Hothead\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23255941_1\" WHERE \"title\"='\\\"Hothead\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23255941_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What was the title of the episode written by Mark Goffman?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_23255941_1\" WHERE \"written_by\"='Mark Goffman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23255941_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: How many original air dates did episode 12 have?h" }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_23255941_1\" WHERE \"episode_num\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23255941_1\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: How many millions of viewers watched the episode directed by Christine Moore?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"table1_23255941_1\" WHERE \"directed_by\"='Christine Moore';" } ]
[ { "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 number of date for w 107\u201397 (ot)" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"game_log\" WHERE \"score\"='W 107\u201397 (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: Name the date for 17-32" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='17-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: Name the high rebounds for 17-33" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"record\"='17-33';" } ]
[ { "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 team for 19-34" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='19-34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"model\" text,\n \"engine\" text,\n \"displacement\" text,\n \"max_power_output\" text,\n \"peak_torque\" text,\n \"0_100km_h_s_0_62mph_s\" text,\n \"top_speed\" text,\n \"co_2_emissions\" text,\n \"years\" text,\n \"note\" text,\n \"engine_code\" text\n);\n\nQuestion: How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?" }, { "role": "assistant", "content": "SELECT COUNT(\"model\") FROM \"specifications\" WHERE \"max_power_output\"='162kW (220 PS) at 6,300 rpm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"model\" text,\n \"engine\" text,\n \"displacement\" text,\n \"max_power_output\" text,\n \"peak_torque\" text,\n \"0_100km_h_s_0_62mph_s\" text,\n \"top_speed\" text,\n \"co_2_emissions\" text,\n \"years\" text,\n \"note\" text,\n \"engine_code\" text\n);\n\nQuestion: List the model with that can accelerate from 0-62 MPH in 9.2 seconds." }, { "role": "assistant", "content": "SELECT \"model\" FROM \"specifications\" WHERE \"0_100km_h_s_0_62mph_s\"='9.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"model\" text,\n \"engine\" text,\n \"displacement\" text,\n \"max_power_output\" text,\n \"peak_torque\" text,\n \"0_100km_h_s_0_62mph_s\" text,\n \"top_speed\" text,\n \"co_2_emissions\" text,\n \"years\" text,\n \"note\" text,\n \"engine_code\" text\n);\n\nQuestion: List the amount of carbon emissions for models that go from 0-62 MPH in 8.5 seconds." }, { "role": "assistant", "content": "SELECT \"co_2_emissions\" FROM \"specifications\" WHERE \"0_100km_h_s_0_62mph_s\"='8.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"model\" text,\n \"engine\" text,\n \"displacement\" text,\n \"max_power_output\" text,\n \"peak_torque\" text,\n \"0_100km_h_s_0_62mph_s\" text,\n \"top_speed\" text,\n \"co_2_emissions\" text,\n \"years\" text,\n \"note\" text,\n \"engine_code\" text\n);\n\nQuestion: List the highest power output level for models that go from 0-62 MPH in 8.5 seconds." }, { "role": "assistant", "content": "SELECT \"max_power_output\" FROM \"specifications\" WHERE \"0_100km_h_s_0_62mph_s\"='8.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"model\" text,\n \"engine\" text,\n \"displacement\" text,\n \"max_power_output\" text,\n \"peak_torque\" text,\n \"0_100km_h_s_0_62mph_s\" text,\n \"top_speed\" text,\n \"co_2_emissions\" text,\n \"years\" text,\n \"note\" text,\n \"engine_code\" text\n);\n\nQuestion: List the max power produced for model 2.0 ts with peak of n\u00b7m (lb\u00b7ft) at 3,500 rpm." }, { "role": "assistant", "content": "SELECT \"max_power_output\" FROM \"specifications\" WHERE \"model\"='2.0 TS' AND \"peak_torque\"='N\u00b7m (lb\u00b7ft) at 3,500 rpm';" } ]
[ { "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 highest points during the game with a record of 2-7?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"record\"='2-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 team did the Wizards play against when their record was 2-5?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='2-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 tied in the highest point scorer when playing against Phoenix?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='Phoenix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23279434_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Which season used production code \"am10\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"season_num\") FROM \"table1_23279434_1\" WHERE \"production_code\"='AM10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23279434_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: When did Jeremy Kagan's episode first air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23279434_1\" WHERE \"directed_by\"='Jeremy Kagan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23279434_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What seasons in series 7 did David E. Kelley write ?" }, { "role": "assistant", "content": "SELECT COUNT(\"season_num\") FROM \"table1_23279434_1\" WHERE \"written_by\"='David E. Kelley' AND \"series_num\"=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: Name the total number of date for score being l 106\u2013116 (ot)" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"game_log\" WHERE \"score\"='L 106\u2013116 (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: Name the record for charlotte" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Charlotte';" } ]
[ { "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 most game for w 113\u201396 (ot)" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"score\"='W 113\u201396 (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 score when the record was 22-53?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='22-53';" } ]
[ { "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 22-53?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='22-53';" } ]
[ { "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 they played golden state?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Golden State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"mother_tongue\" text,\n \"population_2006\" real,\n \"percentage_2006\" text,\n \"population_2011\" real,\n \"percentage_2011\" text\n);\n\nQuestion: How many percentages (2006) are there for the population whose mother tongue is French?" }, { "role": "assistant", "content": "SELECT COUNT(\"percentage_2006\") FROM \"demographics\" WHERE \"mother_tongue\"='French';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"mother_tongue\" text,\n \"population_2006\" real,\n \"percentage_2006\" text,\n \"population_2011\" real,\n \"percentage_2011\" text\n);\n\nQuestion: What was the minimum population in 2011?" }, { "role": "assistant", "content": "SELECT MIN(\"population_2011\") FROM \"demographics\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"mother_tongue\" text,\n \"population_2006\" real,\n \"percentage_2006\" text,\n \"population_2011\" real,\n \"percentage_2011\" text\n);\n\nQuestion: What was the percentage in 2006 whose natives is Polish?" }, { "role": "assistant", "content": "SELECT \"percentage_2006\" FROM \"demographics\" WHERE \"mother_tongue\"='Polish';" } ]
[ { "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 \"series\" text\n);\n\nQuestion: Name the location attendance for dirk nowitzki , caron butler (17)" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"high_points\"='Dirk Nowitzki , Caron Butler (17)';" } ]
[ { "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 \"series\" text\n);\n\nQuestion: Name the location attendance for 4 game" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=4;" } ]
[ { "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 \"series\" text\n);\n\nQuestion: Name the date for l 89\u201392 (ot)" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='L 89\u201392 (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 \"series\" text\n);\n\nQuestion: Name the high assists for 1-2 series" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"series\"='1-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 \"series\" text\n);\n\nQuestion: Name the high rebounds for american airlines center 20,557" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"location_attendance\"='American Airlines Center 20,557';" } ]
[ { "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 score for december 27" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"date\"='December 27';" } ]
[ { "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 total number of high points for pepsi center 19,756" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"location_attendance\"='Pepsi Center 19,756';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_16_titles_10_runners_up\" (\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: Name the opponent in the final for 3\u20136, 1\u20136" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"singles_26_16_titles_10_runners_up\" WHERE \"score_in_the_final\"='3\u20136, 1\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_16_titles_10_runners_up\" (\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: Name the year for guillermo ca\u00f1as" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"singles_26_16_titles_10_runners_up\" WHERE \"opponent_in_the_final\"='Guillermo Ca\u00f1as';" } ]
[ { "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 for the game against Houston?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='Houston';" } ]
[ { "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 number of records for 30 game" }, { "role": "assistant", "content": "SELECT COUNT(\"record\") FROM \"game_log\" WHERE \"game\"=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: Name the team for december 19" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='December 19';" } ]
[ { "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 how many people were in attendance where the record was 9-4 for the season?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='9-4';" } ]
[ { "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 scored the most points where the record is 3-0 for the season?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"record\"='3-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 chauncey billups (7) has the highest amount of assists what is the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_assists\"='Chauncey Billups (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: When j.r. smith (26) has the highest amount of points what is the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_points\"='J.R. Smith (26)';" } ]
[ { "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 the clippers are the team how many games are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"team\"='Clippers';" } ]
[ { "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 aaron afflalo (9) has the highest amount of rebounds what is the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_rebounds\"='Aaron Afflalo (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: When chauncey billups (4) has the highest amount of assists who has the highest amount of points?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_assists\"='Chauncey Billups (4)';" } ]
[ { "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 \"series\" text\n);\n\nQuestion: When carmelo anthony (39) has the highest amount of points where is the location and what is the attendance?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"high_points\"='Carmelo Anthony (39)';" } ]
[ { "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 \"series\" text\n);\n\nQuestion: When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"high_points\"='Carmelo Anthony (42)';" } ]
[ { "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 l 106\u2013116 (ot)" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='L 106\u2013116 (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: Name the high points for the staples center 18,997" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"location_attendance\"='Staples Center 18,997';" } ]
[ { "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 date of the game when the record was 27-14?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='27-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: Who had the most points in the game where the score was w 97\u201392 (ot)?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"score\"='W 97\u201392 (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 timberwolves were played?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Timberwolves';" } ]
[ { "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 players has the highest points in the game against the Heat?" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"team\"='Heat';" } ]
[ { "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 tied for highest rebounds in game 29?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=29;" } ]
[ { "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 \"series\" text\n);\n\nQuestion: Where was game number 5 played?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=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 \"series\" text\n);\n\nQuestion: Who had the highest rebounds in game 2?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=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 \"series\" text\n);\n\nQuestion: What date was the series 0-2?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"series\"='0-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 \"series\" text\n);\n\nQuestion: Which series were played on April 18?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"game_log\" WHERE \"date\"='April 18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What series had high rebounds with Marcus Camby (11)?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"playoffs\" WHERE \"high_rebounds\"='Marcus Camby (11)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What was the series where the game was 5?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"playoffs\" WHERE \"game\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What is the score when high points were Andre Miller (31)?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"high_points\"='Andre Miller (31)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What is the score in game 3?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"game\"=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: When marcus camby (15) has the highest amount of rebounds who has the highest amount of assists?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"high_rebounds\"='Marcus Camby (15)';" } ]
[ { "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 48-30 is the record who has the highest amount of points?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"record\"='48-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: When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"high_assists\"='Brandon Roy (6)' AND \"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: When marcus camby (15) has the highest amount of rebounds what is the date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_rebounds\"='Marcus Camby (15)';" } ]
[ { "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 did the Portland Trail Blazers play against Cleveland?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"team\"='Cleveland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23287683_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the highest series number of the episode \"The New Day\"?" }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"table1_23287683_1\" WHERE \"title\"='\\\"The New Day\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23287683_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many episodes were directed by Sarah Pia Anderson?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_23287683_1\" WHERE \"directed_by\"='Sarah Pia Anderson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23287683_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: List all season numbers with production codes of 5m21." }, { "role": "assistant", "content": "SELECT \"season_num\" FROM \"table1_23287683_1\" WHERE \"production_code\"='5M21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23287683_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed the episode \"Woman\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_23287683_1\" WHERE \"title\"='\\\"Woman\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23287683_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many episodes had a series number of 95?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_23287683_1\" WHERE \"series_num\"=95;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23286722_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the total number of season for production code 3m17" }, { "role": "assistant", "content": "SELECT COUNT(\"season_num\") FROM \"table1_23286722_1\" WHERE \"production_code\"='3M17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23286722_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the directed by season # 2" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_23286722_1\" WHERE \"season_num\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23286722_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name the directed by for \"blue christmas\"" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_23286722_1\" WHERE \"title\"='\\\"Blue Christmas\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23286722_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Name least series number for writers david e. kelley & jill goldsmith" }, { "role": "assistant", "content": "SELECT MIN(\"series_num\") FROM \"table1_23286722_1\" WHERE \"written_by\"='David E. Kelley & Jill Goldsmith';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23292220_13\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jons_team\" text,\n \"scores\" text\n);\n\nQuestion: How many episodes are numbered 12x03?" }, { "role": "assistant", "content": "SELECT COUNT(\"first_broadcast\") FROM \"table1_23292220_13\" WHERE \"episode\"='12x03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23292220_13\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jons_team\" text,\n \"scores\" text\n);\n\nQuestion: Who was on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt?" }, { "role": "assistant", "content": "SELECT \"jons_team\" FROM \"table1_23292220_13\" WHERE \"seans_team\"='Matthew Crosby and Kimberly Wyatt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23292220_13\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jons_team\" text,\n \"scores\" text\n);\n\nQuestion: What was the episode that had Jack Dee and Stacey Solomon on Sean's team?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_23292220_13\" WHERE \"seans_team\"='Jack Dee and Stacey Solomon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23292220_13\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jons_team\" text,\n \"scores\" text\n);\n\nQuestion: What was the score in the episode that had Louie Spence and Joe Wilkinson on Sean's team?" }, { "role": "assistant", "content": "SELECT \"scores\" FROM \"table1_23292220_13\" WHERE \"seans_team\"='Louie Spence and Joe Wilkinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23292220_13\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jons_team\" text,\n \"scores\" text\n);\n\nQuestion: What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team?" }, { "role": "assistant", "content": "SELECT \"scores\" FROM \"table1_23292220_13\" WHERE \"seans_team\"='Russell Kane and Louise Redknapp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"series_3\" WHERE \"seans_team\"='Krishnan Guru-Murthy and Vic Reeves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay?" }, { "role": "assistant", "content": "SELECT \"first_broadcast\" FROM \"series_3\" WHERE \"daves_team\"='Dave Johns and Sally Lindsay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas?" }, { "role": "assistant", "content": "SELECT \"first_broadcast\" FROM \"series_3\" WHERE \"seans_team\"='Peter Serafinowicz and Johnny Vegas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: In how many episodes was Dave's team made up of David Walliams and Louis Walsh?" }, { "role": "assistant", "content": "SELECT COUNT(\"episode\") FROM \"series_3\" WHERE \"daves_team\"='David Walliams and Louis Walsh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: Which episode has boy george and lee mack on dave's team?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"series_4\" WHERE \"daves_team\"='Boy George and Lee Mack';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: How many daves team entries are there on 27 october 2006?" }, { "role": "assistant", "content": "SELECT COUNT(\"daves_team\") FROM \"series_4\" WHERE \"first_broadcast\"='27 October 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: Which episode has ulrika jonsson and michael mcintyre on sean's team?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"series_4\" WHERE \"seans_team\"='Ulrika Jonsson and Michael McIntyre';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: What was the score in the episode with john barrowman and vic reeves on sean's team?" }, { "role": "assistant", "content": "SELECT \"scores\" FROM \"series_4\" WHERE \"seans_team\"='John Barrowman and Vic Reeves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_4\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"daves_team\" text,\n \"scores\" text\n);\n\nQuestion: What was the first broadcast date of episode 4x03?" }, { "role": "assistant", "content": "SELECT \"first_broadcast\" FROM \"series_4\" WHERE \"episode\"='4x03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jasons_team\" text,\n \"scores\" text\n);\n\nQuestion: Name the first broadcast for trisha goddard and glenn wool" }, { "role": "assistant", "content": "SELECT \"first_broadcast\" FROM \"series_5\" WHERE \"jasons_team\"='Trisha Goddard and Glenn Wool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"seans_team\" text,\n \"jasons_team\" text,\n \"scores\" text\n);\n\nQuestion: Name the number of scores for 5x06" }, { "role": "assistant", "content": "SELECT COUNT(\"scores\") FROM \"series_5\" WHERE \"episode\"='5x06';" } ]