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 \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What opponent had an attendance of 12,508 during weeks 1 through 8?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"<8 AND \"attendance\"='12,508';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"attendance\" text\n);\n\nQuestion: What week had an attendance of 14,381?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"attendance\"='14,381';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003_new_york_jets_season\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which round was Dave Yovanovits picked?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"2003_new_york_jets_season\" WHERE \"player\"='dave yovanovits';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2003_new_york_jets_season\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Where did the player picked for the linebacker position play in college?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"2003_new_york_jets_season\" WHERE \"position\"='linebacker';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"five_year_average\" (\n \"country_name\" text,\n \"1961_65\" text,\n \"1966_70\" text,\n \"1971_75\" text,\n \"1976_80\" text,\n \"1981_85\" text,\n \"1986_90\" text,\n \"1991_95\" text,\n \"1996_2000\" text,\n \"2001_05\" text,\n \"2006_10\" text\n);\n\nQuestion: What country had a 1966-70 rate of -100 and a 1991-95 rate of -7.36%?"
},
{
"role": "assistant",
"content": "SELECT \"country_name\" FROM \"five_year_average\" WHERE \"1966_70\"='-100' AND \"1991_95\"='-7.36%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"five_year_average\" (\n \"country_name\" text,\n \"1961_65\" text,\n \"1966_70\" text,\n \"1971_75\" text,\n \"1976_80\" text,\n \"1981_85\" text,\n \"1986_90\" text,\n \"1991_95\" text,\n \"1996_2000\" text,\n \"2001_05\" text,\n \"2006_10\" text\n);\n\nQuestion: What was the 1971-75 rate for the country that has a 1986-90 rate of -5.28%?"
},
{
"role": "assistant",
"content": "SELECT \"1971_75\" FROM \"five_year_average\" WHERE \"1986_90\"='-5.28%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"five_year_average\" (\n \"country_name\" text,\n \"1961_65\" text,\n \"1966_70\" text,\n \"1971_75\" text,\n \"1976_80\" text,\n \"1981_85\" text,\n \"1986_90\" text,\n \"1991_95\" text,\n \"1996_2000\" text,\n \"2001_05\" text,\n \"2006_10\" text\n);\n\nQuestion: What was the 2001-05 rate for the country that had 1981-85 rate of -3.48%?"
},
{
"role": "assistant",
"content": "SELECT \"2001_05\" FROM \"five_year_average\" WHERE \"1981_85\"='-3.48%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"five_year_average\" (\n \"country_name\" text,\n \"1961_65\" text,\n \"1966_70\" text,\n \"1971_75\" text,\n \"1976_80\" text,\n \"1981_85\" text,\n \"1986_90\" text,\n \"1991_95\" text,\n \"1996_2000\" text,\n \"2001_05\" text,\n \"2006_10\" text\n);\n\nQuestion: What was the 1976-80 rate for the country that had 1991-95 rate of -0.43%"
},
{
"role": "assistant",
"content": "SELECT \"1976_80\" FROM \"five_year_average\" WHERE \"1991_95\"='-0.43%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"five_year_average\" (\n \"country_name\" text,\n \"1961_65\" text,\n \"1966_70\" text,\n \"1971_75\" text,\n \"1976_80\" text,\n \"1981_85\" text,\n \"1986_90\" text,\n \"1991_95\" text,\n \"1996_2000\" text,\n \"2001_05\" text,\n \"2006_10\" text\n);\n\nQuestion: What was the 2001-05 rate for the country that had the 1981-85 rate of 0.38%?"
},
{
"role": "assistant",
"content": "SELECT \"2001_05\" FROM \"five_year_average\" WHERE \"1981_85\"='0.38%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Who did the Browns play week 12?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance in the game against the Detroit Lions?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='detroit lions';"
}
] |
[
{
"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: Who played as the away team when they played at Brunswick Street Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_15\" WHERE \"venue\"='brunswick street oval';"
}
] |
[
{
"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: Who was the home team when the VFL played Arden Street Oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_15\" WHERE \"venue\"='arden street oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_9\" (\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 the away side at junction oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_9\" WHERE \"venue\"='junction oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"report\" text\n);\n\nQuestion: Who was the winning driver of the Kraco Car Stereo 150?"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"race_results\" WHERE \"name\"='kraco car stereo 150';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_results\" (\n \"name\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"report\" text\n);\n\nQuestion: What time was the fastest lap during Stoh's 200 in 1982?"
},
{
"role": "assistant",
"content": "SELECT \"fastest_lap\" FROM \"race_results\" WHERE \"name\"='stoh''s 200';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"retirees\" (\n \"player\" text,\n \"team\" text,\n \"last_game\" text,\n \"date\" text,\n \"opposition\" text,\n \"d_but\" real\n);\n\nQuestion: What is the date for the player who debuted later than 1972 against Limerick?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"retirees\" WHERE \"d_but\">1972 AND \"opposition\"='limerick';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"retirees\" (\n \"player\" text,\n \"team\" text,\n \"last_game\" text,\n \"date\" text,\n \"opposition\" text,\n \"d_but\" real\n);\n\nQuestion: Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"retirees\" WHERE \"opposition\"='limerick' AND \"last_game\"='munster semi-final' AND \"d_but\"=1973;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What date had a Result of l 23\u201317 in a week later than 7?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\">7 AND \"result\"='l 23\u201317';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many people attended the game against the cincinnati bengals?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"opponent\"='cincinnati bengals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_york_yankees_vs_boston_red_sox\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: What was the attendance for the game played at 3:31?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"new_york_yankees_vs_boston_red_sox\" WHERE \"time\"='3:31';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_york_yankees_vs_boston_red_sox\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: What was the time for game 4?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"new_york_yankees_vs_boston_red_sox\" WHERE \"game\"=4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\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 featured a home score of 8.9 (57)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_13\" WHERE \"home_team_score\"='8.9 (57)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\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 away team's score at western oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_13\" WHERE \"venue\"='western oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_13\" (\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 games featured a home team scoring 12.18 (90)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_13\" WHERE \"home_team_score\"='12.18 (90)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"porsche_supercup\" (\n \"year\" real,\n \"drivers\" text,\n \"wins\" real,\n \"points\" text,\n \"d_c\" text\n);\n\nQuestion: Before 2007, how many wins were there when the point total was 48?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"wins\") FROM \"porsche_supercup\" WHERE \"points\"='48' AND \"year\"<2007;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"porsche_supercup\" (\n \"year\" real,\n \"drivers\" text,\n \"wins\" real,\n \"points\" text,\n \"d_c\" text\n);\n\nQuestion: In 2011, how many wins did Michael Meadows have?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"wins\") FROM \"porsche_supercup\" WHERE \"year\"=2011 AND \"drivers\"='michael meadows';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What is the service of the network Set Max from India?"
},
{
"role": "assistant",
"content": "SELECT \"service\" FROM \"singapore\" WHERE \"origin_of_programming\"='india' AND \"network\"='set max';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Which network's genre is music?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"singapore\" WHERE \"genre\"='music';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What genre is Star Plus from India?"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"singapore\" WHERE \"origin_of_programming\"='india' AND \"network\"='star plus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: Where does the network Star Cricket originate?"
},
{
"role": "assistant",
"content": "SELECT \"origin_of_programming\" FROM \"singapore\" WHERE \"genre\"='cricket' AND \"network\"='star cricket';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore\" (\n \"network\" text,\n \"origin_of_programming\" text,\n \"language\" text,\n \"genre\" text,\n \"service\" text\n);\n\nQuestion: What genre is Set Max's Hindi programming?"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"singapore\" WHERE \"language\"='hindi' AND \"network\"='set max';"
}
] |
[
{
"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 fitzroy's score as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_14\" WHERE \"home_team\"='fitzroy';"
}
] |
[
{
"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 listed crowd when the home team's score is 9.7 (61)?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_14\" WHERE \"home_team_score\"='9.7 (61)';"
}
] |
[
{
"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 richmond's score as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_14\" 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 \"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: When was the game where the away team had a score of 5.14 (44)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_4\" WHERE \"away_team_score\"='5.14 (44)';"
}
] |
[
{
"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 \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"sideline_reporter_s\" text\n);\n\nQuestion: Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?"
},
{
"role": "assistant",
"content": "SELECT \"color_commentator_s\" FROM \"2000s\" WHERE \"sideline_reporter_s\"='eric dickerson and melissa stark' AND \"year\"=2001;"
}
] |
[
{
"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 \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"sideline_reporter_s\" text\n);\n\nQuestion: What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"2000s\" WHERE \"play_by_play\"='al michaels' AND \"color_commentator_s\"='dan fouts and dennis miller' AND \"year\"<2002;"
}
] |
[
{
"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 \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"sideline_reporter_s\" text\n);\n\nQuestion: Who was the 2004 color commentator?"
},
{
"role": "assistant",
"content": "SELECT \"color_commentator_s\" FROM \"2000s\" WHERE \"year\"=2004;"
}
] |
[
{
"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 \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"sideline_reporter_s\" text\n);\n\nQuestion: Who was the color commentator for Andrea Kremer and Tiki Barber?"
},
{
"role": "assistant",
"content": "SELECT \"color_commentator_s\" FROM \"2000s\" WHERE \"sideline_reporter_s\"='andrea kremer and tiki barber';"
}
] |
[
{
"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 \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"sideline_reporter_s\" text\n);\n\nQuestion: Who was Al Michaels' color commentator in 2003?"
},
{
"role": "assistant",
"content": "SELECT \"color_commentator_s\" FROM \"2000s\" WHERE \"play_by_play\"='al michaels' AND \"year\">2003;"
}
] |
[
{
"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 \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team when Geelong was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_12\" 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_12\" (\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 was the game when the home team scored 25.17 (167)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_12\" WHERE \"home_team_score\"='25.17 (167)';"
}
] |
[
{
"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 \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team's score when home team Carlton scored 15.16 (106)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_12\" WHERE \"home_team_score\"='15.16 (106)' AND \"home_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"player\" text,\n \"position\" text,\n \"round\" real,\n \"overall\" real,\n \"college\" text\n);\n\nQuestion: What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"overall\") FROM \"nfl_draft\" WHERE \"college\"='southern mississippi' AND \"round\"<6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vacated_and_forfeited_games\" (\n \"season\" real,\n \"coach\" text,\n \"record_as_played\" text,\n \"actual_adjusted_record\" text,\n \"regular_season_vacated\" text\n);\n\nQuestion: Who, was the coach with an actual adjusted record of 0\u201319?"
},
{
"role": "assistant",
"content": "SELECT \"coach\" FROM \"vacated_and_forfeited_games\" WHERE \"actual_adjusted_record\"='0\u201319';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vacated_and_forfeited_games\" (\n \"season\" real,\n \"coach\" text,\n \"record_as_played\" text,\n \"actual_adjusted_record\" text,\n \"regular_season_vacated\" text\n);\n\nQuestion: What is the average Season for coach Fisher, and an actual adjusted record of 0\u201311?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"season\") FROM \"vacated_and_forfeited_games\" WHERE \"coach\"='fisher' AND \"actual_adjusted_record\"='0\u201311';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vacated_and_forfeited_games\" (\n \"season\" real,\n \"coach\" text,\n \"record_as_played\" text,\n \"actual_adjusted_record\" text,\n \"regular_season_vacated\" text\n);\n\nQuestion: What is the regular season vacated for the Record as played of 12\u201319?"
},
{
"role": "assistant",
"content": "SELECT \"regular_season_vacated\" FROM \"vacated_and_forfeited_games\" WHERE \"record_as_played\"='12\u201319';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vacated_and_forfeited_games\" (\n \"season\" real,\n \"coach\" text,\n \"record_as_played\" text,\n \"actual_adjusted_record\" text,\n \"regular_season_vacated\" text\n);\n\nQuestion: How many seasons did coach steve fisher have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"vacated_and_forfeited_games\" WHERE \"coach\"='steve fisher';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vacated_and_forfeited_games\" (\n \"season\" real,\n \"coach\" text,\n \"record_as_played\" text,\n \"actual_adjusted_record\" text,\n \"regular_season_vacated\" text\n);\n\nQuestion: What is shown for Record as played with a Regular season Vacated of 24\u20130 later than 1997?"
},
{
"role": "assistant",
"content": "SELECT \"record_as_played\" FROM \"vacated_and_forfeited_games\" WHERE \"regular_season_vacated\"='24\u20130' AND \"season\">1997;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"vacated_and_forfeited_games\" (\n \"season\" real,\n \"coach\" text,\n \"record_as_played\" text,\n \"actual_adjusted_record\" text,\n \"regular_season_vacated\" text\n);\n\nQuestion: How many seasons have an Actual adjusted record of 0\u201319?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"vacated_and_forfeited_games\" WHERE \"actual_adjusted_record\"='0\u201319';"
}
] |
[
{
"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\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many gold(s) for teams with a total of 14, and over 6 bronze medals?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"gold\") FROM \"medal_table\" WHERE \"total\"=14 AND \"bronze\">6;"
}
] |
[
{
"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\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"gold\") FROM \"medal_table\" WHERE \"rank\"='7' AND \"bronze\"<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\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"gold\") FROM \"medal_table\" WHERE \"silver\"<2 AND \"nation\"='uzbekistan' AND \"bronze\"<4;"
}
] |
[
{
"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 away team for the match at Punt Road Oval?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_7\" WHERE \"venue\"='punt road oval';"
}
] |
[
{
"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 home team that scored 5.7 (37)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"home_team_score\"='5.7 (37)';"
}
] |
[
{
"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 smallest crowd size for the match played at Junction Oval?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_7\" WHERE \"venue\"='junction oval';"
}
] |
[
{
"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 home team that scored 12.21 (93)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"home_team_score\"='12.21 (93)';"
}
] |
[
{
"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 home team that played Collingwood?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_7\" WHERE \"away_team\"='collingwood';"
}
] |
[
{
"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 sum of the crowd sizes when the home team scored 9.17 (71)?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_7\" 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 \"left_senate_during_the_39th_parliament\" (\n \"date\" text,\n \"name\" text,\n \"party\" text,\n \"province\" text,\n \"details\" text\n);\n\nQuestion: Which province has Michael Kirby?"
},
{
"role": "assistant",
"content": "SELECT \"province\" FROM \"left_senate_during_the_39th_parliament\" WHERE \"name\"='michael kirby';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"left_senate_during_the_39th_parliament\" (\n \"date\" text,\n \"name\" text,\n \"party\" text,\n \"province\" text,\n \"details\" text\n);\n\nQuestion: Which party is Madeleine Plamondon a member of?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"left_senate_during_the_39th_parliament\" WHERE \"name\"='madeleine plamondon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"left_senate_during_the_39th_parliament\" (\n \"date\" text,\n \"name\" text,\n \"party\" text,\n \"province\" text,\n \"details\" text\n);\n\nQuestion: What are the details for Marisa Ferretti Barth?"
},
{
"role": "assistant",
"content": "SELECT \"details\" FROM \"left_senate_during_the_39th_parliament\" WHERE \"name\"='marisa ferretti barth';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"left_senate_during_the_39th_parliament\" (\n \"date\" text,\n \"name\" text,\n \"party\" text,\n \"province\" text,\n \"details\" text\n);\n\nQuestion: Which party had a member on August 26, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"left_senate_during_the_39th_parliament\" WHERE \"date\"='august 26, 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"left_senate_during_the_39th_parliament\" (\n \"date\" text,\n \"name\" text,\n \"party\" text,\n \"province\" text,\n \"details\" text\n);\n\nQuestion: What are the details for John Buchanan?"
},
{
"role": "assistant",
"content": "SELECT \"details\" FROM \"left_senate_during_the_39th_parliament\" WHERE \"name\"='john buchanan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"left_senate_during_the_39th_parliament\" (\n \"date\" text,\n \"name\" text,\n \"party\" text,\n \"province\" text,\n \"details\" text\n);\n\nQuestion: Which province had a liberal party member on December 31, 2006?"
},
{
"role": "assistant",
"content": "SELECT \"province\" FROM \"left_senate_during_the_39th_parliament\" WHERE \"party\"='liberal' AND \"date\"='december 31, 2006';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"participants\" (\n \"draw\" real,\n \"dancers\" text,\n \"dance_styles\" text,\n \"place\" real,\n \"points\" real\n);\n\nQuestion: Which dance style had a draw smaller than 15 and 18 points?"
},
{
"role": "assistant",
"content": "SELECT \"dance_styles\" FROM \"participants\" WHERE \"draw\"<15 AND \"points\"=18;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\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 away team when the home team scored 16.19 (115)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_5\" WHERE \"home_team_score\"='16.19 (115)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\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 away team's score for the match played at Victoria Park?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_5\" 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_5\" (\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 venue where the home team scored 10.15 (75)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_5\" 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_5\" (\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 Collingwood's home venue?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_5\" 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_5\" (\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 away teams score when they played Carlton?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_5\" WHERE \"home_team\"='carlton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_winners\" (\n \"year\" real,\n \"player\" text,\n \"nationality\" text,\n \"position_played\" text,\n \"team_represented\" text\n);\n\nQuestion: What is the latest year featuring candace parker?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"list_of_winners\" WHERE \"player\"='candace parker';"
}
] |
[
{
"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 largest crowd when north melbourne is the home side?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_3\" 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 \"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: Who is the away team when the home team scores 10.17 (77)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_3\" WHERE \"home_team_score\"='10.17 (77)';"
}
] |
[
{
"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 venue features a home team scoring 12.12 (84)?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_3\" WHERE \"home_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_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 home team scores 12.12 (84)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_3\" WHERE \"home_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_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 is the smallest crowd at victoria park?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"round_7\" 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_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 day was geelong the away side?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_7\" 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_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 away team scored 14.5 (89)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_7\" WHERE \"away_team_score\"='14.5 (89)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What is the name of the stadium in Brisbane?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"round_2\" WHERE \"city\"='brisbane';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What was the result of the match that had a score of 58-6?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"round_2\" WHERE \"score\"='58-6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_2\" WHERE \"result\"='hunter mariners def. castleford tigers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: For the match ending in a score of 66-20, what was the stadium?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"round_2\" WHERE \"score\"='66-20';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"stadium\" text,\n \"city\" text,\n \"crowd\" real\n);\n\nQuestion: In what city is the Don Valley Stadium located?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"round_2\" WHERE \"stadium\"='don valley stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"event\" text,\n \"time\" text,\n \"nationality\" text,\n \"date\" text,\n \"meet\" text,\n \"location\" text\n);\n\nQuestion: Which championship was the 100m backstroke performed?"
},
{
"role": "assistant",
"content": "SELECT \"meet\" FROM \"men\" WHERE \"event\"='100m backstroke';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"event\" text,\n \"time\" text,\n \"nationality\" text,\n \"date\" text,\n \"meet\" text,\n \"location\" text\n);\n\nQuestion: What event has a time of 7:45.67?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"men\" WHERE \"time\"='7:45.67';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"team\" text\n);\n\nQuestion: What nationality has a year larger than 2009 with a position of power forward?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"winners\" WHERE \"year\">2009 AND \"position\"='power forward';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"team\" text\n);\n\nQuestion: Who plays for the chicago bulls?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"winners\" 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 \"population_by_island\" (\n \"name\" text,\n \"area\" real,\n \"inhabitants\" real,\n \"people_per_km\" real,\n \"main_places\" text,\n \"regions\" text\n);\n\nQuestion: What are the main places for the streymoy region with an area of larger than 6.1?"
},
{
"role": "assistant",
"content": "SELECT \"main_places\" FROM \"population_by_island\" WHERE \"regions\"='streymoy' AND \"area\">6.1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population_by_island\" (\n \"name\" text,\n \"area\" real,\n \"inhabitants\" real,\n \"people_per_km\" real,\n \"main_places\" text,\n \"regions\" text\n);\n\nQuestion: What is the sum of people per km2 for the sandoy region with an area of 112.1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"people_per_km\") FROM \"population_by_island\" WHERE \"regions\"='sandoy' AND \"area\"=112.1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: what is the week there were 41,604 people in attendance?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"exhibition_schedule\" WHERE \"attendance\"='41,604';"
}
] |
[
{
"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 is the average crowd size for games with hawthorn as the home side?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_17\" 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_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 is the home team's score at glenferrie oval?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_17\" WHERE \"venue\"='glenferrie oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" real\n);\n\nQuestion: Who had the lowest Best time that also had a Qual 2 of 49.887?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"best\") FROM \"qualifying_results\" WHERE \"qual_2\"='49.887';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" real\n);\n\nQuestion: What was CTE Racing-hvm's Best with a Qual 2 of 50.312?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"team\"='cte racing-hvm' AND \"qual_2\"='50.312';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\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 average crowd size for the game where the away team scored 10.11 (71)?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_5\" WHERE \"away_team_score\"='10.11 (71)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\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 had a score of 18.8 (116)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_5\" WHERE \"away_team_score\"='18.8 (116)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_5\" (\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 home team score when essendon was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_5\" WHERE \"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_5\" (\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 richmond was the Away team what was the score of the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_5\" WHERE \"away_team\"='richmond';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.