chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22577693_1\" (\n \"details\" text,\n \"host_nation_s\" text,\n \"final_venue\" text,\n \"winner\" text,\n \"result\" text,\n \"runner_up\" text\n);\n\nQuestion: Who was the winner if the final venue is Kowloon Cricket Club?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"table1_22577693_1\" WHERE \"final_venue\"='Kowloon Cricket Club';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22570439_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"episode_title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many u.s. viewers (million) have a series # 83?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_22570439_1\" WHERE \"series_num\"=83;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22570439_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"episode_title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many u.s. viewers (millions) have 5 as the season #?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_22570439_1\" WHERE \"season_num\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22570439_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"episode_title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many written by have wendey stanzler as the director?" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_22570439_1\" WHERE \"directed_by\"='Wendey Stanzler';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22570439_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"episode_title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the original air date where tracy poust & jon kinnally was written by?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_22570439_1\" WHERE \"written_by\"='Tracy Poust & Jon Kinnally';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22570439_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"episode_title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"u_s_viewers_millions\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who is the written by when mark worthington is the director?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_22570439_1\" WHERE \"directed_by\"='Mark Worthington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rebel_army_radio_awards_2010\" (\n \"best_male_mc\" text,\n \"best_female_mc\" text,\n \"best_male_artist\" text,\n \"best_female_artist\" text,\n \"best_male_lyricist\" text,\n \"best_female_lyricist\" text,\n \"best_male_record\" text\n);\n\nQuestion: Who got the best male record when best female mc is tino baby & 5'6\"?" }, { "role": "assistant", "content": "SELECT \"best_male_record\" FROM \"rebel_army_radio_awards_2010\" WHERE \"best_female_mc\"='Tino Baby & 5''6\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: In 1976, who was the reporter for the Belmont Stakes?" }, { "role": "assistant", "content": "SELECT \"reporters\" FROM \"1970s\" WHERE \"year\"=1976;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: Who called the race in 1978?" }, { "role": "assistant", "content": "SELECT \"race_caller\" FROM \"1970s\" WHERE \"year\"=1978;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: For the race called by Marshall Cassidy, who was the host?" }, { "role": "assistant", "content": "SELECT \"s_host\" FROM \"1970s\" WHERE \"race_caller\"='Marshall Cassidy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1970s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: Who were the reporters for the 1977 Belmont Stakes?" }, { "role": "assistant", "content": "SELECT \"reporters\" FROM \"1970s\" WHERE \"year\"=1977;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: Who called the race in 1998? " }, { "role": "assistant", "content": "SELECT \"race_caller\" FROM \"1990s\" WHERE \"year\"=1998;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"1990_1991\" text,\n \"1991_1992\" text,\n \"1992_1993\" text,\n \"1993_1994\" text,\n \"1994_1995\" text\n);\n\nQuestion: Who was ranked in the same position in 1991-1992 as Drew Kachtik in 1993-1994?" }, { "role": "assistant", "content": "SELECT \"1991_1992\" FROM \"rankings_at_season_s_end\" WHERE \"1993_1994\"='Drew Kachtik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"1990_1991\" text,\n \"1991_1992\" text,\n \"1992_1993\" text,\n \"1993_1994\" text,\n \"1994_1995\" text\n);\n\nQuestion: Who was ranked in the same position in 1991-1992 as Tim Doyle in 1994-1995?" }, { "role": "assistant", "content": "SELECT \"1991_1992\" FROM \"rankings_at_season_s_end\" WHERE \"1994_1995\"='Tim Doyle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"1990_1991\" text,\n \"1991_1992\" text,\n \"1992_1993\" text,\n \"1993_1994\" text,\n \"1994_1995\" text\n);\n\nQuestion: In what position was Mike Ray ranked in 1993-1994?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"rankings_at_season_s_end\" WHERE \"1993_1994\"='Mike Ray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"1990_1991\" text,\n \"1991_1992\" text,\n \"1992_1993\" text,\n \"1993_1994\" text,\n \"1994_1995\" text\n);\n\nQuestion: Who was ranked in the same position in 1990-1991 as Andy Roberts in 1993-1994? " }, { "role": "assistant", "content": "SELECT \"1990_1991\" FROM \"rankings_at_season_s_end\" WHERE \"1993_1994\"='Andy Roberts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"1990_1991\" text,\n \"1991_1992\" text,\n \"1992_1993\" text,\n \"1993_1994\" text,\n \"1994_1995\" text\n);\n\nQuestion: Who was ranked in the same position in 1990-1991 as Drew Kachtik in 1993-1994? " }, { "role": "assistant", "content": "SELECT \"1990_1991\" FROM \"rankings_at_season_s_end\" WHERE \"1993_1994\"='Drew Kachtik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"1990_1991\" text,\n \"1991_1992\" text,\n \"1992_1993\" text,\n \"1993_1994\" text,\n \"1994_1995\" text\n);\n\nQuestion: What position was Drew Kachtik ranked at in 1993-1994? " }, { "role": "assistant", "content": "SELECT MAX(\"position\") FROM \"rankings_at_season_s_end\" WHERE \"1993_1994\"='Drew Kachtik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"2005_2006\" text,\n \"2006_2007\" text,\n \"2007_2008\" text,\n \"2008_2009\" text,\n \"2009_2010\" text\n);\n\nQuestion: who was position 3 in 2007-2008?" }, { "role": "assistant", "content": "SELECT \"2007_2008\" FROM \"rankings_at_season_s_end\" WHERE \"position\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"2005_2006\" text,\n \"2006_2007\" text,\n \"2007_2008\" text,\n \"2008_2009\" text,\n \"2009_2010\" text\n);\n\nQuestion: what is the total number of 2006-2007 and 2007-2008 for jack huczek?" }, { "role": "assistant", "content": "SELECT COUNT(\"2006_2007\") FROM \"rankings_at_season_s_end\" WHERE \"2007_2008\"='Jack Huczek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"2005_2006\" text,\n \"2006_2007\" text,\n \"2007_2008\" text,\n \"2008_2009\" text,\n \"2009_2010\" text\n);\n\nQuestion: what isthe total number of seasons for chris crowther?" }, { "role": "assistant", "content": "SELECT COUNT(\"2009_2010\") FROM \"rankings_at_season_s_end\" WHERE \"2006_2007\"='Chris Crowther';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"rankings_at_season_s_end\" (\n \"position\" real,\n \"2005_2006\" text,\n \"2006_2007\" text,\n \"2007_2008\" text,\n \"2008_2009\" text,\n \"2009_2010\" text\n);\n\nQuestion: what is the position for chris crowther in 2006-2007?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"rankings_at_season_s_end\" WHERE \"2006_2007\"='Chris Crowther';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"winning_pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What was the standing when goal against were 279? " }, { "role": "assistant", "content": "SELECT \"standing\" FROM \"season_by_season_results\" WHERE \"goals_against\"=279;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"winning_pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What is the winning pct % if the goal for are 229? " }, { "role": "assistant", "content": "SELECT \"winning_pct_pct\" FROM \"season_by_season_results\" WHERE \"goals_for\"=229;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season_results\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"winning_pct_pct\" text,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What was the winning % when there were 322 goals? " }, { "role": "assistant", "content": "SELECT \"winning_pct_pct\" FROM \"season_by_season_results\" WHERE \"goals_for\"=322;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the year for willie goggin" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"wins_7\" WHERE \"runner_s_up\"='Willie Goggin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the margin for 4 shot deficit" }, { "role": "assistant", "content": "SELECT \"margin\" FROM \"wins_7\" WHERE \"54_holes\"='4 shot deficit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the winning score for pga championship" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"wins_7\" WHERE \"championship\"='PGA Championship';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the runners up for 1 shot deficit" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"wins_7\" WHERE \"54_holes\"='1 shot deficit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_7\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Name the least year for walter hagen" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"wins_7\" WHERE \"runner_s_up\"='Walter Hagen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legends_over_45_doubles\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the score in the final where one of the opponents in the final was fitzgerald vilas?" }, { "role": "assistant", "content": "SELECT \"score_in_the_final\" FROM \"legends_over_45_doubles\" WHERE \"opponents_in_the_final\"='Fitzgerald Vilas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legends_over_45_doubles\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the surface for the opponents in the final with fitzgerald vilas?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"legends_over_45_doubles\" WHERE \"opponents_in_the_final\"='Fitzgerald Vilas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legends_over_45_doubles\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who were the opponents in the final where the score in the final is 6\u20134, 7\u20136 2?" }, { "role": "assistant", "content": "SELECT \"opponents_in_the_final\" FROM \"legends_over_45_doubles\" WHERE \"score_in_the_final\"='6\u20134, 7\u20136 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legends_over_45_doubles\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the partner count when the opponents in the final was forget leconte?" }, { "role": "assistant", "content": "SELECT COUNT(\"partner\") FROM \"legends_over_45_doubles\" WHERE \"opponents_in_the_final\"='Forget Leconte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"legends_over_45_doubles\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7\u20136 2 , 6\u20131?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"legends_over_45_doubles\" WHERE \"opponents_in_the_final\"='Bahrami Leconte' AND \"score_in_the_final\"='7\u20136 2 , 6\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_19_titles_7_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 number of year for score being 6\u20133, 6\u20132, 6\u20134" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"singles_26_19_titles_7_runners_up\" WHERE \"score_in_the_final\"='6\u20133, 6\u20132, 6\u20134';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_19_titles_7_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 surface for 6\u20130, 6\u20133" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_26_19_titles_7_runners_up\" WHERE \"score_in_the_final\"='6\u20130, 6\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_19_titles_7_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 championship for peter mcnamara" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"singles_26_19_titles_7_runners_up\" WHERE \"opponent_in_the_final\"='Peter McNamara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_26_19_titles_7_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 championship for 1980 hard surface" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"singles_26_19_titles_7_runners_up\" WHERE \"year\"=1980 AND \"surface\"='Hard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2260452_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text\n);\n\nQuestion: If the team is Billy Ballew Motorsports, what is the race time?" }, { "role": "assistant", "content": "SELECT \"race_time\" FROM \"table1_2260452_1\" WHERE \"team\"='Billy Ballew Motorsports';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2260452_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text\n);\n\nQuestion: What was the date if the driver was Robert Pressley?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"table1_2260452_1\" WHERE \"driver\"='Robert Pressley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2260452_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text\n);\n\nQuestion: If the race time is 2:00:33, what is the average speed?" }, { "role": "assistant", "content": "SELECT \"average_speed_mph\" FROM \"table1_2260452_1\" WHERE \"race_time\"='2:00:33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_end_rankings\" (\n \"rank\" real,\n \"1980_81\" text,\n \"1981_82\" text,\n \"1982_83\" text,\n \"1983_84\" text,\n \"1984_85\" text\n);\n\nQuestion: Who is every entry for 1981-82 when 1984-85 is Marci Drexler?" }, { "role": "assistant", "content": "SELECT \"1981_82\" FROM \"season_end_rankings\" WHERE \"1984_85\"='Marci Drexler';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_end_rankings\" (\n \"rank\" real,\n \"1980_81\" text,\n \"1981_82\" text,\n \"1982_83\" text,\n \"1983_84\" text,\n \"1984_85\" text\n);\n\nQuestion: What is every entry for 1980-81 when 1984-85 is Liz Alvarado?" }, { "role": "assistant", "content": "SELECT \"1980_81\" FROM \"season_end_rankings\" WHERE \"1984_85\"='Liz Alvarado';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_end_rankings\" (\n \"rank\" real,\n \"1980_81\" text,\n \"1981_82\" text,\n \"1982_83\" text,\n \"1983_84\" text,\n \"1984_85\" text\n);\n\nQuestion: What is every entry for 1980-81 when 1983-84 is Caryn McKinney?" }, { "role": "assistant", "content": "SELECT \"1980_81\" FROM \"season_end_rankings\" WHERE \"1983_84\"='Caryn McKinney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_end_rankings\" (\n \"rank\" real,\n \"1980_81\" text,\n \"1981_82\" text,\n \"1982_83\" text,\n \"1983_84\" text,\n \"1984_85\" text\n);\n\nQuestion: What is every entry for 1980-81 when 1983-84 is Heather McKay?" }, { "role": "assistant", "content": "SELECT \"1980_81\" FROM \"season_end_rankings\" WHERE \"1983_84\"='Heather McKay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_end_rankings\" (\n \"rank\" real,\n \"1980_81\" text,\n \"1981_82\" text,\n \"1982_83\" text,\n \"1983_84\" text,\n \"1984_85\" text\n);\n\nQuestion: What is every entry for 1982-83 for rank 1?" }, { "role": "assistant", "content": "SELECT \"1982_83\" FROM \"season_end_rankings\" WHERE \"rank\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_end_rankings\" (\n \"rank\" real,\n \"1980_81\" text,\n \"1981_82\" text,\n \"1982_83\" text,\n \"1983_84\" text,\n \"1984_85\" text\n);\n\nQuestion: How many entries for 1983-84 when 1984-85 is Terri Gilreath?" }, { "role": "assistant", "content": "SELECT COUNT(\"1983_84\") FROM \"season_end_rankings\" WHERE \"1984_85\"='Terri Gilreath';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"position\" text,\n \"name\" text,\n \"jersey_number\" real,\n \"age\" real,\n \"height\" text,\n \"weight\" real,\n \"college\" text,\n \"result\" text\n);\n\nQuestion: How many heights are listed for Jesse Holley in the WR position? " }, { "role": "assistant", "content": "SELECT COUNT(\"height\") FROM \"contestants\" WHERE \"position\"='WR' AND \"name\"='Jesse Holley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"position\" text,\n \"name\" text,\n \"jersey_number\" real,\n \"age\" real,\n \"height\" text,\n \"weight\" real,\n \"college\" text,\n \"result\" text\n);\n\nQuestion: What is the result for Wisconsin? " }, { "role": "assistant", "content": "SELECT \"result\" FROM \"contestants\" WHERE \"college\"='Wisconsin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"position\" text,\n \"name\" text,\n \"jersey_number\" real,\n \"age\" real,\n \"height\" text,\n \"weight\" real,\n \"college\" text,\n \"result\" text\n);\n\nQuestion: What is the result for Steve Gonzalez? " }, { "role": "assistant", "content": "SELECT \"result\" FROM \"contestants\" WHERE \"name\"='Steve Gonzalez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"position\" text,\n \"name\" text,\n \"jersey_number\" real,\n \"age\" real,\n \"height\" text,\n \"weight\" real,\n \"college\" text,\n \"result\" text\n);\n\nQuestion: What are the positions for Menlo College? " }, { "role": "assistant", "content": "SELECT \"position\" FROM \"contestants\" WHERE \"college\"='Menlo College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263152_1\" (\n \"version\" text,\n \"release_date\" text,\n \"distribution_mechanism\" text,\n \"features\" text,\n \"security_issues\" text\n);\n\nQuestion: If the distribution mechanism is the Microsoft website and the security issues id 98-004, what are all of the features?" }, { "role": "assistant", "content": "SELECT \"features\" FROM \"table1_2263152_1\" WHERE \"security_issues\"='98-004' AND \"distribution_mechanism\"='Microsoft website';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263152_1\" (\n \"version\" text,\n \"release_date\" text,\n \"distribution_mechanism\" text,\n \"features\" text,\n \"security_issues\" text\n);\n\nQuestion: With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version?" }, { "role": "assistant", "content": "SELECT \"version\" FROM \"table1_2263152_1\" WHERE \"security_issues\"='98-004' AND \"distribution_mechanism\"='Microsoft website';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263152_1\" (\n \"version\" text,\n \"release_date\" text,\n \"distribution_mechanism\" text,\n \"features\" text,\n \"security_issues\" text\n);\n\nQuestion: If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"release_date\") FROM \"table1_2263152_1\" WHERE \"security_issues\"='99-025' AND \"distribution_mechanism\"='Microsoft website';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263152_1\" (\n \"version\" text,\n \"release_date\" text,\n \"distribution_mechanism\" text,\n \"features\" text,\n \"security_issues\" text\n);\n\nQuestion: With the version of 1.5a, what is the release date?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"table1_2263152_1\" WHERE \"version\"='1.5a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263152_1\" (\n \"version\" text,\n \"release_date\" text,\n \"distribution_mechanism\" text,\n \"features\" text,\n \"security_issues\" text\n);\n\nQuestion: If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version?" }, { "role": "assistant", "content": "SELECT \"version\" FROM \"table1_2263152_1\" WHERE \"features\"='Service release' AND \"distribution_mechanism\"='Windows NT 4.0 Option Pack Microsoft Office 97';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263152_1\" (\n \"version\" text,\n \"release_date\" text,\n \"distribution_mechanism\" text,\n \"features\" text,\n \"security_issues\" text\n);\n\nQuestion: If the version is 1.5b, what is the distribution mechanism?" }, { "role": "assistant", "content": "SELECT \"distribution_mechanism\" FROM \"table1_2263152_1\" WHERE \"version\"='1.5b';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22645714_5\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: How many locations are listed for the winner Temple?" }, { "role": "assistant", "content": "SELECT COUNT(\"tournament_venue_city\") FROM \"table1_22645714_5\" WHERE \"tournament_winner\"='Temple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22645714_5\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: How many locations are listed for the Big 12 Conference?" }, { "role": "assistant", "content": "SELECT COUNT(\"tournament_venue_city\") FROM \"table1_22645714_5\" WHERE \"conference\"='Big 12 Conference';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22645714_5\" (\n \"conference\" text,\n \"regular_season_winner\" text,\n \"conference_player_of_the_year\" text,\n \"conference_tournament\" text,\n \"tournament_venue_city\" text,\n \"tournament_winner\" text\n);\n\nQuestion: Who had the best regular season in the contest won by Arkansas-Pine Bluff?" }, { "role": "assistant", "content": "SELECT \"regular_season_winner\" FROM \"table1_22645714_5\" WHERE \"tournament_winner\"='Arkansas-Pine Bluff';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263674_1\" (\n \"romanised_name\" text,\n \"chinese_name\" text,\n \"age_at_appointment\" real,\n \"portfolio\" text,\n \"prior_occupation\" text\n);\n\nQuestion: How old was the official with Chinese name \u5b6b\u660e\u63da?" }, { "role": "assistant", "content": "SELECT \"age_at_appointment\" FROM \"table1_2263674_1\" WHERE \"chinese_name\"='\u5b6b\u660e\u63da';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263674_1\" (\n \"romanised_name\" text,\n \"chinese_name\" text,\n \"age_at_appointment\" real,\n \"portfolio\" text,\n \"prior_occupation\" text\n);\n\nQuestion: What's \u6881\u611b\u8a69's romanised name?" }, { "role": "assistant", "content": "SELECT \"romanised_name\" FROM \"table1_2263674_1\" WHERE \"chinese_name\"='\u6881\u611b\u8a69';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263674_1\" (\n \"romanised_name\" text,\n \"chinese_name\" text,\n \"age_at_appointment\" real,\n \"portfolio\" text,\n \"prior_occupation\" text\n);\n\nQuestion: What's the romanised name of the official who was Secretary for health, welfare and food?" }, { "role": "assistant", "content": "SELECT \"romanised_name\" FROM \"table1_2263674_1\" WHERE \"portfolio\"='Secretary for Health, Welfare and Food';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2263674_1\" (\n \"romanised_name\" text,\n \"chinese_name\" text,\n \"age_at_appointment\" real,\n \"portfolio\" text,\n \"prior_occupation\" text\n);\n\nQuestion: What was Anthony Leung Kam-Chung previous position?" }, { "role": "assistant", "content": "SELECT \"portfolio\" FROM \"table1_2263674_1\" WHERE \"romanised_name\"='Anthony Leung Kam-chung';" } ]
[ { "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: List all high rebound entries from May 11." }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='May 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 \"series\" text\n);\n\nQuestion: How many games were there on May 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"date\"='May 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 \"series\" text\n);\n\nQuestion: List all high assists in series 2-3." }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"series\"='2-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 \"series\" text\n);\n\nQuestion: How many games were played on May 11?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"date\"='May 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: Name the score for chicago bulls" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='Chicago Bulls';" } ]
[ { "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 22-8" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='22-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: Name the high points for mo williams , lebron james , j.j. hickson (6)" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"high_rebounds\"='Mo Williams , LeBron James , J.J. Hickson (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: Name the high assists for december 13" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='December 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_22651355_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: What value can you find under the column \"august 21-22\" and the row of June 11, 1983?" }, { "role": "assistant", "content": "SELECT \"august_21_22\" FROM \"table1_22651355_3\" WHERE \"june_10_11\"='June 11, 1983';" } ]
[ { "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 attendance for the game against the team with a 51-15 record with the Cavaliers?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='51-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: How many scores are associated with a record of 27-9?" }, { "role": "assistant", "content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"record\"='27-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: How many games are associated with a record of 29-10?" }, { "role": "assistant", "content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"record\"='29-10';" } ]
[ { "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 record 3-2" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"game_log\" WHERE \"record\"='3-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: Name the date for lebron james , mo williams (21)" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_points\"='LeBron James , Mo Williams (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: Name the high points for record 9-4" }, { "role": "assistant", "content": "SELECT \"high_points\" 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: Name the total number of date for l 85\u201386 (ot)" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"game_log\" WHERE \"score\"='L 85\u201386 (OT)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: Name the network for 2007 total" }, { "role": "assistant", "content": "SELECT COUNT(\"network\") FROM \"2000s\" WHERE \"year\"=2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"race_caller\" text,\n \"s_host\" text,\n \"s_analyst\" text,\n \"reporters\" text,\n \"trophy_presentation\" text\n);\n\nQuestion: Name the analysts" }, { "role": "assistant", "content": "SELECT \"s_analyst\" FROM \"2000s\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_8\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partnering\" text,\n \"against\" text,\n \"surface\" text,\n \"opponents\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: What was the result for a partnering of Frederica Piedade?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"doubles_8\" WHERE \"partnering\"='Frederica Piedade';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_8\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partnering\" text,\n \"against\" text,\n \"surface\" text,\n \"opponents\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"doubles_8\" WHERE \"w_l\"='Loss' AND \"edition\"='2012 Fed Cup Europe/Africa Group I';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266230_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the manufacturer for cale yarborough for 1984" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"table1_2266230_1\" WHERE \"driver\"='Cale Yarborough' AND \"year\"='1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266230_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the report for 2003" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"table1_2266230_1\" WHERE \"year\"='2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"district_name\" text,\n \"dist_id\" real,\n \"isd\" text,\n \"county\" text,\n \"authorizing_agency\" text,\n \"date_opened\" text,\n \"services\" text\n);\n\nQuestion: What is the date opened if thedistrict ID is 11901?" }, { "role": "assistant", "content": "SELECT \"date_opened\" FROM \"a\" WHERE \"dist_id\"=11901;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"district_name\" text,\n \"dist_id\" real,\n \"isd\" text,\n \"county\" text,\n \"authorizing_agency\" text,\n \"date_opened\" text,\n \"services\" text\n);\n\nQuestion: If the district name is the Academy of Flint, what is the authorizing agency?" }, { "role": "assistant", "content": "SELECT \"authorizing_agency\" FROM \"a\" WHERE \"district_name\"='Academy of Flint';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"district_name\" text,\n \"dist_id\" real,\n \"isd\" text,\n \"county\" text,\n \"authorizing_agency\" text,\n \"date_opened\" text,\n \"services\" text\n);\n\nQuestion: If the district ID is 74907, what is the name of the district?" }, { "role": "assistant", "content": "SELECT \"district_name\" FROM \"a\" WHERE \"dist_id\"=74907;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"district_name\" text,\n \"dist_id\" real,\n \"isd\" text,\n \"county\" text,\n \"authorizing_agency\" text,\n \"date_opened\" text,\n \"services\" text\n);\n\nQuestion: If the name of the district is the Charyl Stockwell Academy, what is the county name?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"a\" WHERE \"district_name\"='Charyl Stockwell Academy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266976_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Who was the driver in 1986?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"table1_2266976_1\" WHERE \"year\"='1986';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266976_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: When was an average speed of 81.388 mph recorded?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"table1_2266976_1\" WHERE \"average_speed_mph\"='81.388';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266976_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Who was the manufacturer in 1990?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"table1_2266976_1\" WHERE \"year\"='1990';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266976_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Who was the manufacturer in the year when the race lasted 2:30:28?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"table1_2266976_1\" WHERE \"race_time\"='2:30:28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266976_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What team competed in 2003?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"table1_2266976_1\" WHERE \"year\"='2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2266976_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: How long in miles (km) was the race that lasted 3:07:53?" }, { "role": "assistant", "content": "SELECT \"miles_km\" FROM \"table1_2266976_1\" WHERE \"race_time\"='3:07:53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"length\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"winning_driver\" text\n);\n\nQuestion: Name the race name for june 6" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"schedule_and_results\" WHERE \"date\"='June 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"length\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"winning_driver\" text\n);\n\nQuestion: Name the location for trenton 300" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"schedule_and_results\" WHERE \"race_name\"='Trenton 300';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"rnd\" real,\n \"date\" text,\n \"race_name\" text,\n \"length\" text,\n \"track\" text,\n \"location\" text,\n \"pole_position\" text,\n \"winning_driver\" text\n);\n\nQuestion: Name the race name for rnd being 11" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"schedule_and_results\" WHERE \"rnd\"=11;" } ]