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 \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: Which city in Texas hosts the Frank Erwin center?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"first_and_second_rounds\" WHERE \"state\"='texas' AND \"venue\"='frank erwin center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_and_second_rounds\" (\n \"region\" text,\n \"host\" text,\n \"venue\" text,\n \"city\" text,\n \"state\" text\n);\n\nQuestion: In what region is the city of Austin?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"first_and_second_rounds\" WHERE \"city\"='austin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team scored 10.6 (66)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"home_team_score\"='10.6 (66)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team had a score of 10.8 (68)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"home_team_score\"='10.8 (68)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"polling\" (\n \"poll_source\" text,\n \"date_s_administered\" text,\n \"sample_size\" real,\n \"margin_of_error\" text,\n \"tom_campbell\" text,\n \"carly_fiorina\" text,\n \"chuck_de_vore\" text,\n \"other\" text,\n \"unde_cided\" text\n);\n\nQuestion: What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other?" }, { "role": "assistant", "content": "SELECT \"chuck_de_vore\" FROM \"polling\" WHERE \"other\"='4%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total when silver is less than 1 and rank larger than 3?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"medal_table\" WHERE \"silver\"<1 AND \"rank\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the number of bronze for Canada and silver is less than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"bronze\") FROM \"medal_table\" WHERE \"nation\"='canada' AND \"silver\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the largest gold when silver is less than 1 for Canada and bronze is less than 0?" }, { "role": "assistant", "content": "SELECT MAX(\"gold\") FROM \"medal_table\" WHERE \"silver\"<1 AND \"nation\"='canada' AND \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the silver for Germany and less than 2?" }, { "role": "assistant", "content": "SELECT AVG(\"silver\") FROM \"medal_table\" WHERE \"nation\"='germany' AND \"rank\"<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 \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Tell me the score for december 3" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='december 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 \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Tell me the record for december 3" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='december 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 \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Name the record for dallas visitor" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"visitor\"='dallas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Name the score for december 5" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='december 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is Princes Park's home team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"venue\"='princes park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who has a home team score of 13.16 (94)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"home_team_score\"='13.16 (94)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the date that an away team score 11.22 (88)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_7\" WHERE \"away_team_score\"='11.22 (88)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who has a home team score of 9.5 (59)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"home_team_score\"='9.5 (59)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is North Melbourne's home team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"away_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winning_head_of_the_river_championship_e\" (\n \"crew\" real,\n \"year_10_1st_quad\" text,\n \"year_10_2nd_quad\" text,\n \"year_10_3rd_quad\" text,\n \"year_10_4th_quad\" text,\n \"year_10_single_scull\" text,\n \"year_9_1st_quad\" text,\n \"year_9_2nd_quad\" text,\n \"year_9_3rd_quad\" text,\n \"year_9_4th_quad\" text,\n \"year_9_single_scull\" text,\n \"year_8_1st_quad\" text,\n \"year_8_2nd_quad\" text,\n \"year_8_3rd_quad\" text,\n \"year_8_4th_quad\" text,\n \"year_8_single_scull\" text\n);\n\nQuestion: In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?" }, { "role": "assistant", "content": "SELECT \"year_8_1st_quad\" FROM \"winning_head_of_the_river_championship_e\" WHERE \"year_9_2nd_quad\"='bggs' AND \"crew\">2006;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winning_head_of_the_river_championship_e\" (\n \"crew\" real,\n \"year_10_1st_quad\" text,\n \"year_10_2nd_quad\" text,\n \"year_10_3rd_quad\" text,\n \"year_10_4th_quad\" text,\n \"year_10_single_scull\" text,\n \"year_9_1st_quad\" text,\n \"year_9_2nd_quad\" text,\n \"year_9_3rd_quad\" text,\n \"year_9_4th_quad\" text,\n \"year_9_single_scull\" text,\n \"year_8_1st_quad\" text,\n \"year_8_2nd_quad\" text,\n \"year_8_3rd_quad\" text,\n \"year_8_4th_quad\" text,\n \"year_8_single_scull\" text\n);\n\nQuestion: For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?" }, { "role": "assistant", "content": "SELECT \"year_8_1st_quad\" FROM \"winning_head_of_the_river_championship_e\" WHERE \"year_9_2nd_quad\"='stm' AND \"year_9_1st_quad\"='som' AND \"year_8_3rd_quad\"='sta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"result\" text,\n \"award\" text,\n \"category\" text,\n \"film_or_series\" text,\n \"character\" text\n);\n\nQuestion: Which character was in the sexiest female category of the British Soap Awards?" }, { "role": "assistant", "content": "SELECT \"character\" FROM \"awards_and_nominations\" WHERE \"category\"='sexiest female' AND \"award\"='british soap awards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"result\" text,\n \"award\" text,\n \"category\" text,\n \"film_or_series\" text,\n \"character\" text\n);\n\nQuestion: Which film or series was nominated in the category of best fansite?" }, { "role": "assistant", "content": "SELECT \"film_or_series\" FROM \"awards_and_nominations\" WHERE \"result\"='nominated' AND \"category\"='best fansite';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of the home team that had an away team score of 9.9 (63)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_3\" WHERE \"away_team_score\"='9.9 (63)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the current score for the home team that had an away score of 9.9 (63)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_3\" WHERE \"away_team_score\"='9.9 (63)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which venue had an away team score of 16.12 (108)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_3\" WHERE \"away_team_score\"='16.12 (108)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Who has an away team score of 2.2 (14)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_12\" WHERE \"away_team_score\"='2.2 (14)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Where does Essendon play their home games?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_12\" WHERE \"home_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Where was the game held where the away team had a score of 2.2 (14)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_12\" WHERE \"away_team_score\"='2.2 (14)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What team plays their home games in Victoria Park?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_12\" WHERE \"venue\"='victoria park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Who was the away team in the game where the home team had a score of 4.9 (33)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_12\" WHERE \"home_team_score\"='4.9 (33)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000_2010\" (\n \"date\" text,\n \"competition\" text,\n \"ground\" text,\n \"score\" text,\n \"attendance\" real,\n \"report\" text\n);\n\nQuestion: What is the total attendance with a Report of sd.hr, and a Score of 3\u20131, and a Date of 14 apr 2001?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"2000_2010\" WHERE \"report\"='sd.hr' AND \"score\"='3\u20131' AND \"date\"='14 apr 2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_6_2009_11\" (\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\" real\n);\n\nQuestion: What is the highest production code when the writer was brian egeston after season 5?" }, { "role": "assistant", "content": "SELECT MAX(\"production_code\") FROM \"season_6_2009_11\" WHERE \"written_by\"='brian egeston' AND \"season_num\">5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"march\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the record when chicago was the home team?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"march\" WHERE \"home\"='chicago';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What Venue has an Away Team Score of 9.12 (66)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_22\" WHERE \"away_team_score\"='9.12 (66)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What Venue has an Away team score of 11.13 (79)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_22\" WHERE \"away_team_score\"='11.13 (79)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many people were in the crowd when the Home Team was Hawthorn?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_22\" WHERE \"home_team\"='hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On what date is the Crowd larger than 28,049, and an Home team score of 17.15 (117)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_22\" WHERE \"crowd\">'28,049' AND \"home_team_score\"='17.15 (117)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What's the average Grid with Laps of 88?" }, { "role": "assistant", "content": "SELECT AVG(\"grid\") FROM \"classification\" WHERE \"laps\"=88;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which driver has a Time/Retired of +6 laps?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"classification\" WHERE \"time_retired\"='+6 laps';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team played a home team with a score of 10.9 (69) at Glenferrie Oval?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_18\" WHERE \"home_team_score\"='10.9 (69)' AND \"venue\"='glenferrie oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did Hawthorn score as the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_18\" WHERE \"home_team\"='hawthorn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team played South Melbourne at their home game?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_18\" WHERE \"home_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team played Geelong at their away game?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_18\" WHERE \"away_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many spectators were at the away game where the score was 9.6 (60)?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"round_18\" WHERE \"away_team_score\"='9.6 (60)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1984\" text,\n \"1985\" text,\n \"1986\" text,\n \"1987\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text\n);\n\nQuestion: What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?" }, { "role": "assistant", "content": "SELECT \"1989\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"1991\"='4r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1984\" text,\n \"1985\" text,\n \"1986\" text,\n \"1987\" text,\n \"1988\" text,\n \"1989\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text\n);\n\nQuestion: What is the 1989 result of the tournament in which Katerina finished nh in 1986?" }, { "role": "assistant", "content": "SELECT \"1989\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"1986\"='nh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"asian_winter_games\" (\n \"games\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"total\" text,\n \"rank\" text\n);\n\nQuestion: What is the total of the ranks that did not participate?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"asian_winter_games\" WHERE \"rank\"='did not participate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"upper_harbour_local_board\" (\n \"name\" text,\n \"years\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" text,\n \"roll\" real\n);\n\nQuestion: What is the decile for Westminster Christian School with a state integrated authority?" }, { "role": "assistant", "content": "SELECT \"decile\" FROM \"upper_harbour_local_board\" WHERE \"authority\"='state integrated' AND \"name\"='westminster christian school';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"upper_harbour_local_board\" (\n \"name\" text,\n \"years\" text,\n \"area\" text,\n \"authority\" text,\n \"decile\" text,\n \"roll\" real\n);\n\nQuestion: What are the years when the authority was state integrated and a decile of 9?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"upper_harbour_local_board\" WHERE \"authority\"='state integrated' AND \"decile\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did the team score while away in moorabbin oval?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_2\" WHERE \"venue\"='moorabbin oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What is the highest Purse ($) that has a 1st Prize ($) of 45,000 at the gte kaanapali classic tournament?" }, { "role": "assistant", "content": "SELECT MAX(\"purse\") FROM \"tournament_results\" WHERE \"1st_prize\"='45,000' AND \"tournament\"='gte kaanapali classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: When was the general foods pga seniors' championship tournament?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"tournament\"='general foods pga seniors'' championship';" } ]
[ { "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 attendance on location when the record was 3\u201316?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='3\u201316';" } ]
[ { "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: On what date was a two-way tie (8) the high rebound?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_rebounds\"='two-way tie (8)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home score with Away team score of 11.11 (77)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_14\" WHERE \"away_team_score\"='11.11 (77)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score with Away team Richmond?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_14\" WHERE \"away_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which date has an Away team score of 11.11 (77)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_14\" WHERE \"away_team_score\"='11.11 (77)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the smallest crowd for victoria park?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_14\" WHERE \"venue\"='victoria park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lightweight_58_kg\" (\n \"name\" text,\n \"bodyweight\" real,\n \"snatch\" real,\n \"clean_jerk\" real,\n \"total_kg\" text\n);\n\nQuestion: what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?" }, { "role": "assistant", "content": "SELECT MAX(\"clean_jerk\") FROM \"lightweight_58_kg\" WHERE \"total_kg\"='200.0' AND \"snatch\">87.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lightweight_58_kg\" (\n \"name\" text,\n \"bodyweight\" real,\n \"snatch\" real,\n \"clean_jerk\" real,\n \"total_kg\" text\n);\n\nQuestion: what is the average bodyweight when snatch is 80?" }, { "role": "assistant", "content": "SELECT AVG(\"bodyweight\") FROM \"lightweight_58_kg\" WHERE \"snatch\"=80;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did the home team score at Windy Hill?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_17\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team scored 9.17 (71), what did the away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_17\" WHERE \"home_team_score\"='9.17 (71)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team was Richmond, what was the largest crowd?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_17\" WHERE \"home_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: Tell me the average 1st prize for tennessee" }, { "role": "assistant", "content": "SELECT AVG(\"1st_prize\") FROM \"tournament_results\" WHERE \"location\"='tennessee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: Tell me the winner of the comfort classic" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"tournament_results\" WHERE \"tournament\"='comfort classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finals_appearances\" (\n \"finals\" real,\n \"team\" text,\n \"wins\" real,\n \"losses\" real,\n \"pct\" real\n);\n\nQuestion: How many percentages have losses fewer than 1 with finals appearances of 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"pct\") FROM \"finals_appearances\" WHERE \"losses\"<1 AND \"finals\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"routine_immunization_schedule_for_infant\" (\n \"vaccine\" text,\n \"minimum_age_at_1st_dose\" text,\n \"number_of_doses\" text,\n \"dose\" text,\n \"minimum_interval_between_doses\" text,\n \"route\" text\n);\n\nQuestion: Name the least age for the 1st dose for 3 doses of 2-3 drops" }, { "role": "assistant", "content": "SELECT \"minimum_age_at_1st_dose\" FROM \"routine_immunization_schedule_for_infant\" WHERE \"number_of_doses\"='3 doses' AND \"dose\"='2-3 drops';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"routine_immunization_schedule_for_infant\" (\n \"vaccine\" text,\n \"minimum_age_at_1st_dose\" text,\n \"number_of_doses\" text,\n \"dose\" text,\n \"minimum_interval_between_doses\" text,\n \"route\" text\n);\n\nQuestion: How many doses for the bacillus calmette-gu\u00e9rin?" }, { "role": "assistant", "content": "SELECT \"number_of_doses\" FROM \"routine_immunization_schedule_for_infant\" WHERE \"vaccine\"='bacillus calmette-gu\u00e9rin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"routine_immunization_schedule_for_infant\" (\n \"vaccine\" text,\n \"minimum_age_at_1st_dose\" text,\n \"number_of_doses\" text,\n \"dose\" text,\n \"minimum_interval_between_doses\" text,\n \"route\" text\n);\n\nQuestion: Name the least interval between doses for minimum age being 1st dose at 6 weeks old for the diphtheria-pertussis-tetanus vaccine?" }, { "role": "assistant", "content": "SELECT \"minimum_interval_between_doses\" FROM \"routine_immunization_schedule_for_infant\" WHERE \"minimum_age_at_1st_dose\"='6 weeks old' AND \"vaccine\"='diphtheria-pertussis-tetanus vaccine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team did team carlton play while away?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did the home team score when the away team scored 12.12 (84)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_4\" WHERE \"away_team_score\"='12.12 (84)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team has a score of 10.15 (75)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"home_team_score\"='10.15 (75)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What home team plays at Windy Hill?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_4\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team has a home score of 11.14 (80)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_4\" WHERE \"home_team_score\"='11.14 (80)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_of_parliament\" (\n \"election\" text,\n \"1st_member\" text,\n \"1st_party\" text,\n \"2nd_member\" text,\n \"2nd_party\" text,\n \"3rd_member\" text,\n \"3rd_party\" text\n);\n\nQuestion: What is the name of the 1st Party that has a 3rd Party of Unionist, and 2nd Member of Sir John Boyd-Orr?" }, { "role": "assistant", "content": "SELECT \"1st_party\" FROM \"members_of_parliament\" WHERE \"3rd_party\"='unionist' AND \"2nd_member\"='sir john boyd-orr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_of_parliament\" (\n \"election\" text,\n \"1st_member\" text,\n \"1st_party\" text,\n \"2nd_member\" text,\n \"2nd_party\" text,\n \"3rd_member\" text,\n \"3rd_party\" text\n);\n\nQuestion: Which Election had 2nd Member George Alexander Morrison, a 1st Party of Unionist, and 3rd Member of John Buchan?" }, { "role": "assistant", "content": "SELECT \"election\" FROM \"members_of_parliament\" WHERE \"2nd_member\"='george alexander morrison' AND \"1st_party\"='unionist' AND \"3rd_member\"='john buchan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_of_parliament\" (\n \"election\" text,\n \"1st_member\" text,\n \"1st_party\" text,\n \"2nd_member\" text,\n \"2nd_party\" text,\n \"3rd_member\" text,\n \"3rd_party\" text\n);\n\nQuestion: What was the 2nd Party in the 1918 Election?" }, { "role": "assistant", "content": "SELECT \"2nd_party\" FROM \"members_of_parliament\" WHERE \"election\"='1918';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_of_parliament\" (\n \"election\" text,\n \"1st_member\" text,\n \"1st_party\" text,\n \"2nd_member\" text,\n \"2nd_party\" text,\n \"3rd_member\" text,\n \"3rd_party\" text\n);\n\nQuestion: What 3rd Member had 2nd Member of University Constituencies abolished?" }, { "role": "assistant", "content": "SELECT \"3rd_member\" FROM \"members_of_parliament\" WHERE \"2nd_member\"='university constituencies abolished';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_of_parliament\" (\n \"election\" text,\n \"1st_member\" text,\n \"1st_party\" text,\n \"2nd_member\" text,\n \"2nd_party\" text,\n \"3rd_member\" text,\n \"3rd_party\" text\n);\n\nQuestion: What was the 3rd Party in the Election of 1922?" }, { "role": "assistant", "content": "SELECT \"3rd_party\" FROM \"members_of_parliament\" WHERE \"election\"='1922';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_of_parliament\" (\n \"election\" text,\n \"1st_member\" text,\n \"1st_party\" text,\n \"2nd_member\" text,\n \"2nd_party\" text,\n \"3rd_member\" text,\n \"3rd_party\" text\n);\n\nQuestion: What was the 1st Party when the 2nd Party was Independent?" }, { "role": "assistant", "content": "SELECT \"1st_party\" FROM \"members_of_parliament\" WHERE \"2nd_party\"='independent';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_whrz_lp\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the ERP W number where the frequency is smaller than 91.1?" }, { "role": "assistant", "content": "SELECT MAX(\"erp_w\") FROM \"broadcast_translators_of_whrz_lp\" WHERE \"frequency_m_hz\"<91.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of Collingwood?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_1\" WHERE \"home_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Where did South Melbourne play?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_1\" WHERE \"away_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the venue of North Melbourne?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_1\" WHERE \"home_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What was the loss from the coyotes as opponents?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"regular_season\" WHERE \"opponent\"='coyotes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relatives_of_law_enforcement\" (\n \"character\" text,\n \"actor\" text,\n \"first_episode\" text,\n \"final_episode\" text,\n \"episode_count\" real\n);\n\nQuestion: What was the last episode featuring Rob Estes?" }, { "role": "assistant", "content": "SELECT \"final_episode\" FROM \"relatives_of_law_enforcement\" WHERE \"actor\"='rob estes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spacecraft\" (\n \"name\" text,\n \"block\" text,\n \"launch_date_time_utc\" text,\n \"cospar_id\" text,\n \"rocket\" text\n);\n\nQuestion: What block has a COSPAR ID of 1995-060a?" }, { "role": "assistant", "content": "SELECT \"block\" FROM \"spacecraft\" WHERE \"cospar_id\"='1995-060a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spacecraft\" (\n \"name\" text,\n \"block\" text,\n \"launch_date_time_utc\" text,\n \"cospar_id\" text,\n \"rocket\" text\n);\n\nQuestion: What rocket has a Block of block i and a COSPAR ID of 1995-060a?" }, { "role": "assistant", "content": "SELECT \"rocket\" FROM \"spacecraft\" WHERE \"block\"='block i' AND \"cospar_id\"='1995-060a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spacecraft\" (\n \"name\" text,\n \"block\" text,\n \"launch_date_time_utc\" text,\n \"cospar_id\" text,\n \"rocket\" text\n);\n\nQuestion: What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"spacecraft\" WHERE \"rocket\"='titan iv(401)b' AND \"block\"='block i/ii hybrid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spacecraft\" (\n \"name\" text,\n \"block\" text,\n \"launch_date_time_utc\" text,\n \"cospar_id\" text,\n \"rocket\" text\n);\n\nQuestion: What rocket has a block i/ii hybrid?" }, { "role": "assistant", "content": "SELECT \"rocket\" FROM \"spacecraft\" WHERE \"block\"='block i/ii hybrid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spacecraft\" (\n \"name\" text,\n \"block\" text,\n \"launch_date_time_utc\" text,\n \"cospar_id\" text,\n \"rocket\" text\n);\n\nQuestion: What rocket has a COSPAR ID of 2002-001a?" }, { "role": "assistant", "content": "SELECT \"rocket\" FROM \"spacecraft\" WHERE \"cospar_id\"='2002-001a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"spacecraft\" (\n \"name\" text,\n \"block\" text,\n \"launch_date_time_utc\" text,\n \"cospar_id\" text,\n \"rocket\" text\n);\n\nQuestion: What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?" }, { "role": "assistant", "content": "SELECT \"cospar_id\" FROM \"spacecraft\" WHERE \"launch_date_time_utc\"='1995-11-06, 05:15:01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_fixtures_results\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"goals\" text,\n \"attendance\" real,\n \"competition\" text\n);\n\nQuestion: On 15/04/07 in the competition Super League XII, what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2007_fixtures_results\" WHERE \"competition\"='super league xii' AND \"date\"='15/04/07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_fixtures_results\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"goals\" text,\n \"attendance\" real,\n \"competition\" text\n);\n\nQuestion: On 21/07/07, what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2007_fixtures_results\" WHERE \"date\"='21/07/07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_figures_in_a_match\" (\n \"bowling\" text,\n \"player\" text,\n \"opponent\" text,\n \"venue\" text,\n \"season\" text\n);\n\nQuestion: What was the venue of season 1907?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"best_figures_in_a_match\" WHERE \"season\"='1907';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_figures_in_a_match\" (\n \"bowling\" text,\n \"player\" text,\n \"opponent\" text,\n \"venue\" text,\n \"season\" text\n);\n\nQuestion: What is the bowling score of season 1907?" }, { "role": "assistant", "content": "SELECT \"bowling\" FROM \"best_figures_in_a_match\" WHERE \"season\"='1907';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_figures_in_a_match\" (\n \"bowling\" text,\n \"player\" text,\n \"opponent\" text,\n \"venue\" text,\n \"season\" text\n);\n\nQuestion: Which season did Tich Freeman play against opponent V Warwickshire?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"best_figures_in_a_match\" WHERE \"player\"='tich freeman' AND \"opponent\"='v warwickshire';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Essendon's score at the game where they were the away team and the crowd was larger than 15,130?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"crowd\">'15,130' AND \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was South Melbourne's score as the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_15\" WHERE \"home_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was Richmond's score as the home team at the game with a crowd larger than 15,130?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_15\" WHERE \"crowd\">'15,130' AND \"home_team\"='richmond';" } ]