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 \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the tie for the Crystal Palace team?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"fourth_round_proper\" WHERE \"home_team\"='crystal palace';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What is the attendance for No. 15 tie?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: WHich Open Cup has a Division larger than 4?" }, { "role": "assistant", "content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"division\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the League which has a Regular Season of 3rd, atlantic?" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"regular_season\"='3rd, atlantic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: WHICH Regular Season has a Division of 4?" }, { "role": "assistant", "content": "SELECT \"regular_season\" FROM \"year_by_year\" WHERE \"division\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: WHICH Regular Season has a League of npsl, and a Year of 2008?" }, { "role": "assistant", "content": "SELECT \"regular_season\" FROM \"year_by_year\" WHERE \"league\"='npsl' AND \"year\"='2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013?" }, { "role": "assistant", "content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"league\"='npsl' AND \"open_cup\"='did not enter' AND \"year\"='2013';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the average February that has 18-26-10 as the record, with a game less than 54?" }, { "role": "assistant", "content": "SELECT AVG(\"february\") FROM \"schedule_and_results\" WHERE \"record\"='18-26-10' AND \"game\"<54;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53?" }, { "role": "assistant", "content": "SELECT COUNT(\"february\") FROM \"schedule_and_results\" WHERE \"opponent\"='montreal canadiens' AND \"record\"='18-25-10' AND \"game\">53;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_15\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: what is the surface when the opponent is selma babic?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_15\" WHERE \"opponent\"='selma babic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_15\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: what is the surface when the round is gii play-offs and the edition is 2009 fed cup europe/africa group ii?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_15\" WHERE \"round\"='gii play-offs' AND \"edition\"='2009 fed cup europe/africa group ii';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_15\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: what is the date when the surface is clay and the result is 6\u20137 (4\u20137) , 1\u20136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_15\" WHERE \"surface\"='clay' AND \"result\"='6\u20137 (4\u20137) , 1\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_15\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: who is the opponent when norway is against?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_15\" WHERE \"against\"='norway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"years_exp\" text,\n \"college\" text\n);\n\nQuestion: What is Postion, when Weight is greater than 220, and when Player is \"Travis Knight\"?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"roster\" WHERE \"weight\">220 AND \"player\"='travis knight';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"years_exp\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest Number, when College is \"University of Alabama\"?" }, { "role": "assistant", "content": "SELECT MIN(\"number\") FROM \"roster\" WHERE \"college\"='university of alabama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"years_exp\" text,\n \"college\" text\n);\n\nQuestion: What is the total number of Weight, when Position is \"Forward/Center\", when Player is \"Othella Harrington\", and when Number is less than 32?" }, { "role": "assistant", "content": "SELECT COUNT(\"weight\") FROM \"roster\" WHERE \"position\"='forward/center' AND \"player\"='othella harrington' AND \"number\"<32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"years_exp\" text,\n \"college\" text\n);\n\nQuestion: What is Years Exp, when Height is \"7-2\"?" }, { "role": "assistant", "content": "SELECT \"years_exp\" FROM \"roster\" WHERE \"height\"='7-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"number\" real,\n \"player\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"years_exp\" text,\n \"college\" text\n);\n\nQuestion: What is Position, when Weight is greater than 200, when Number is less than 44, when Years Exp is 9, and when College is \"University of New Mexico\"?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"roster\" WHERE \"weight\">200 AND \"number\"<44 AND \"years_exp\"='9' AND \"college\"='university of new mexico';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What was the release price of the Atom Z510PT processor?" }, { "role": "assistant", "content": "SELECT \"release_price_usd\" FROM \"45_nm\" WHERE \"model_number\"='atom z510pt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: Which part number was used for the Atom Z500 processor?" }, { "role": "assistant", "content": "SELECT \"part_number_s\" FROM \"45_nm\" WHERE \"model_number\"='atom z500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"mult\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What was the multiplier of the processor with sSpec number of SLGPR(C0) and a release price of N/A?" }, { "role": "assistant", "content": "SELECT \"mult\" FROM \"45_nm\" WHERE \"release_price_usd\"='n/a' AND \"s_spec_number\"='slgpr(c0)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_11\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who is the runner-up at the Chicago challenge?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"lpga_tour_11\" WHERE \"tournament\"='chicago challenge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_11\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who is the runner-up of Atlantic city classic?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"lpga_tour_11\" WHERE \"tournament\"='atlantic city classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_11\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the date of the U.S. Women's open?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"lpga_tour_11\" WHERE \"tournament\"='u.s. women''s open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lpga_tour_11\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the margin of victory of the gna/glendale federal classic?" }, { "role": "assistant", "content": "SELECT \"margin_of_victory\" FROM \"lpga_tour_11\" WHERE \"tournament\"='gna/glendale federal classic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classes_1_to_6\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"verb_meaning\" text\n);\n\nQuestion: Which class has *buranaz as Part 4?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"classes_1_to_6\" WHERE \"part_4\"='*buranaz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classes_1_to_6\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"verb_meaning\" text\n);\n\nQuestion: What is the verb meaning for *bar as Part 2?" }, { "role": "assistant", "content": "SELECT \"verb_meaning\" FROM \"classes_1_to_6\" WHERE \"part_2\"='*bar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classes_1_to_6\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"verb_meaning\" text\n);\n\nQuestion: Which class has *alanaz as Part 4?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"classes_1_to_6\" WHERE \"part_4\"='*alanaz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classes_1_to_6\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text,\n \"verb_meaning\" text\n);\n\nQuestion: Which class has *fraus as Part 2?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"classes_1_to_6\" WHERE \"part_2\"='*fraus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: what is the transfer fee for evilasio?" }, { "role": "assistant", "content": "SELECT \"transfer_fee\" FROM \"squad_changes\" WHERE \"name\"='evilasio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passing_statistics\" (\n \"year\" text,\n \"team\" text,\n \"attempts\" text,\n \"completions\" text,\n \"completion_pct\" text,\n \"yards\" text\n);\n\nQuestion: What team did James Vanderberg belong to when the Completions had a status of redshirt?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"passing_statistics\" WHERE \"completions\"='redshirt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passing_statistics\" (\n \"year\" text,\n \"team\" text,\n \"attempts\" text,\n \"completions\" text,\n \"completion_pct\" text,\n \"yards\" text\n);\n\nQuestion: What were the number of completions for James Vanderberg on Iowa when his yards were 45?" }, { "role": "assistant", "content": "SELECT \"completions\" FROM \"passing_statistics\" WHERE \"team\"='iowa' AND \"yards\"='45';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passing_statistics\" (\n \"year\" text,\n \"team\" text,\n \"attempts\" text,\n \"completions\" text,\n \"completion_pct\" text,\n \"yards\" text\n);\n\nQuestion: What was the team Vanderberg belonged to when there was 42 completions?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"passing_statistics\" WHERE \"completions\"='42';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passing_statistics\" (\n \"year\" text,\n \"team\" text,\n \"attempts\" text,\n \"completions\" text,\n \"completion_pct\" text,\n \"yards\" text\n);\n\nQuestion: What number of attempts were recorded when the completions were 223?" }, { "role": "assistant", "content": "SELECT \"attempts\" FROM \"passing_statistics\" WHERE \"completions\"='223';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passing_statistics\" (\n \"year\" text,\n \"team\" text,\n \"attempts\" text,\n \"completions\" text,\n \"completion_pct\" text,\n \"yards\" text\n);\n\nQuestion: In what year was the number of attempts 888?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"passing_statistics\" WHERE \"attempts\"='888';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passing_statistics\" (\n \"year\" text,\n \"team\" text,\n \"attempts\" text,\n \"completions\" text,\n \"completion_pct\" text,\n \"yards\" text\n);\n\nQuestion: What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249?" }, { "role": "assistant", "content": "SELECT \"attempts\" FROM \"passing_statistics\" WHERE \"team\"='iowa' AND \"yards\"='2,249';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Leading Scorer has an Opponent of @ indiana?" }, { "role": "assistant", "content": "SELECT \"leading_scorer\" FROM \"season_schedule\" WHERE \"opponent\"='@ indiana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Leading Scorer has a Record of 3-3?" }, { "role": "assistant", "content": "SELECT \"leading_scorer\" FROM \"season_schedule\" WHERE \"record\"='3-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Attendance has an Opponent of @ phoenix, and a Leading Scorer of sophia young (18)?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"season_schedule\" WHERE \"opponent\"='@ phoenix' AND \"leading_scorer\"='sophia young (18)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the date when tie number is 6?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who is the home team with tie number 9?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who is the home team when Sheffield United is the away team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"away_team\"='sheffield united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the date when Aston Villa is the away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"fourth_round_proper\" WHERE \"away_team\"='aston villa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who is the home team on 31 January 1951 when away team was Sheffield United?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"date\"='31 january 1951' AND \"away_team\"='sheffield united';" } ]
[ { "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 was the attendance during the match that took place after week 11 against the washington redskins?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"week\">11 AND \"opponent\"='washington redskins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"place\"='t3' AND \"player\"='geoff ogilvy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roller_coasters\" (\n \"ride\" text,\n \"year_opened\" real,\n \"ride_manufacturer_and_type\" text,\n \"minimum_height\" text,\n \"rating\" real\n);\n\nQuestion: What year has the ride flight deck and a rating of less than 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"year_opened\") FROM \"roller_coasters\" WHERE \"ride\"='flight deck' AND \"rating\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roller_coasters\" (\n \"ride\" text,\n \"year_opened\" real,\n \"ride_manufacturer_and_type\" text,\n \"minimum_height\" text,\n \"rating\" real\n);\n\nQuestion: What is the highest rating after 1993 with a minumum height of 36\"?" }, { "role": "assistant", "content": "SELECT MAX(\"rating\") FROM \"roller_coasters\" WHERE \"year_opened\">1993 AND \"minimum_height\"='36\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roller_coasters\" (\n \"ride\" text,\n \"year_opened\" real,\n \"ride_manufacturer_and_type\" text,\n \"minimum_height\" text,\n \"rating\" real\n);\n\nQuestion: What is the ride manufacturer and type with a minimum height of 54\", after the year 1991?" }, { "role": "assistant", "content": "SELECT \"ride_manufacturer_and_type\" FROM \"roller_coasters\" WHERE \"minimum_height\"='54\\\"' AND \"year_opened\">1991;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"children\" (\n \"name\" text,\n \"other_names\" text,\n \"birth\" text,\n \"death\" text,\n \"death_place\" text,\n \"mother\" text\n);\n\nQuestion: when was birth when death place is n.a., other names is n.a. and name is wahid-un-nisa begum sahiba?" }, { "role": "assistant", "content": "SELECT \"birth\" FROM \"children\" WHERE \"death_place\"='n.a.' AND \"other_names\"='n.a.' AND \"name\"='wahid-un-nisa begum sahiba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"children\" (\n \"name\" text,\n \"other_names\" text,\n \"birth\" text,\n \"death\" text,\n \"death_place\" text,\n \"mother\" text\n);\n\nQuestion: what is other names when death is may 23, 1821?" }, { "role": "assistant", "content": "SELECT \"other_names\" FROM \"children\" WHERE \"death\"='may 23, 1821';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"children\" (\n \"name\" text,\n \"other_names\" text,\n \"birth\" text,\n \"death\" text,\n \"death_place\" text,\n \"mother\" text\n);\n\nQuestion: when is death when death place is murshidabad and name is mir mehndi?" }, { "role": "assistant", "content": "SELECT \"death\" FROM \"children\" WHERE \"death_place\"='murshidabad' AND \"name\"='mir mehndi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"children\" (\n \"name\" text,\n \"other_names\" text,\n \"birth\" text,\n \"death\" text,\n \"death_place\" text,\n \"mother\" text\n);\n\nQuestion: what is the name when death is november 10, 1842?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"children\" WHERE \"death\"='november 10, 1842';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serbia\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is Internet Plan, when Price is \"22 EUR\"?" }, { "role": "assistant", "content": "SELECT \"internet_plan\" FROM \"serbia\" WHERE \"price\"='22 eur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serbia\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is Downstream, when Upstream is \"384 kbit\"?" }, { "role": "assistant", "content": "SELECT \"downstream\" FROM \"serbia\" WHERE \"upstream\"='384 kbit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serbia\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is Bandwidth Included, when Price is \"50 EUR\"?" }, { "role": "assistant", "content": "SELECT \"bandwidth_included\" FROM \"serbia\" WHERE \"price\"='50 eur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serbia\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is Upstream, when Price is \"14 EUR\"?" }, { "role": "assistant", "content": "SELECT \"upstream\" FROM \"serbia\" WHERE \"price\"='14 eur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serbia\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is Bandwidth Included, when Internet Plan is \"8mb\"?" }, { "role": "assistant", "content": "SELECT \"bandwidth_included\" FROM \"serbia\" WHERE \"internet_plan\"='8mb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"serbia\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the Price, when Upstream is \"256 kbit\"?" }, { "role": "assistant", "content": "SELECT \"price\" FROM \"serbia\" WHERE \"upstream\"='256 kbit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: Which Semifinalists has a Finalist of andre agassi?" }, { "role": "assistant", "content": "SELECT \"semifinalists\" FROM \"singles\" WHERE \"finalist\"='andre agassi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: WHich Tournament has a Finalist of gustavo kuerten (4)?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles\" WHERE \"finalist\"='gustavo kuerten (4)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: Which finalist has Semifinalists of andre agassi (1) lleyton hewitt (14)?" }, { "role": "assistant", "content": "SELECT \"finalist\" FROM \"singles\" WHERE \"semifinalists\"='andre agassi (1) lleyton hewitt (14)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: Which Finalist has a Tournament of monte carlo?" }, { "role": "assistant", "content": "SELECT \"finalist\" FROM \"singles\" WHERE \"tournament\"='monte carlo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: WHo is the Winner of andre agassi Finalist?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"singles\" WHERE \"finalist\"='andre agassi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: WHich Tournament has a Finalist of marat safin (12)?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles\" WHERE \"finalist\"='marat safin (12)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"round\" text,\n \"location\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text\n);\n\nQuestion: What was the date for the Sepang International circuit, round 3?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"circuit\"='sepang international circuit' AND \"round\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"round\" text,\n \"location\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text\n);\n\nQuestion: Which round had a winning driver of Uwe Alzen, at the Sepang International circuit?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"race_calendar\" WHERE \"winning_driver\"='uwe alzen' AND \"circuit\"='sepang international circuit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"round\" text,\n \"location\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text\n);\n\nQuestion: What was the round number for March 22?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"race_calendar\" WHERE \"date\"='march 22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high points in the game @ Charlotte?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='@ charlotte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What's the record of Game 70?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=70;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high points when they played in Philips Arena 14,413?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"location_attendance\"='philips arena 14,413';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What is the date of the game that took place at the Resch Center?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"game_site\"='resch center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: Which network returns april 3, and a Show of shop 'til you drop?" }, { "role": "assistant", "content": "SELECT \"new_returning_same_network\" FROM \"programs_returning_during_2000\" WHERE \"returning\"='april 3' AND \"show\"='shop ''til you drop';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: Which retitled network has a Show of supermarket sweep?" }, { "role": "assistant", "content": "SELECT \"retitled_as_same\" FROM \"programs_returning_during_2000\" WHERE \"show\"='supermarket sweep';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"programs_returning_during_2000\" (\n \"show\" text,\n \"last_aired\" real,\n \"previous_network\" text,\n \"retitled_as_same\" text,\n \"new_returning_same_network\" text,\n \"returning\" text\n);\n\nQuestion: Which show returns april 3 with a Previous Network of lifetime?" }, { "role": "assistant", "content": "SELECT \"retitled_as_same\" FROM \"programs_returning_during_2000\" WHERE \"returning\"='april 3' AND \"previous_network\"='lifetime';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the lowest grid number for Yamaha?" }, { "role": "assistant", "content": "SELECT MIN(\"grid\") FROM \"250cc_classification\" WHERE \"manufacturer\"='yamaha';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: How many laps had a grid over 16 and a Time of +1:35.890?" }, { "role": "assistant", "content": "SELECT \"laps\" FROM \"250cc_classification\" WHERE \"grid\">16 AND \"time\"='+1:35.890';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What was the lowest lab for Gilera with a grid less than 12?" }, { "role": "assistant", "content": "SELECT MIN(\"laps\") FROM \"250cc_classification\" WHERE \"manufacturer\"='gilera' AND \"grid\"<12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What is the highest Grid with a time of +1:19.905, and less than 20 laps?" }, { "role": "assistant", "content": "SELECT MAX(\"grid\") FROM \"250cc_classification\" WHERE \"time\"='+1:19.905' AND \"laps\"<20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time\" text,\n \"grid\" real\n);\n\nQuestion: What Rider has a Grid of 21?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"grid\"=21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zimbabwe_in_kenya\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Who is the away captain when the game resulted in [[|]] by 7 wickets?" }, { "role": "assistant", "content": "SELECT \"away_captain\" FROM \"zimbabwe_in_kenya\" WHERE \"result\"='[[|]] by 7 wickets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"zimbabwe_in_kenya\" (\n \"date\" text,\n \"home_captain\" text,\n \"away_captain\" text,\n \"venue\" text,\n \"result\" text\n);\n\nQuestion: Who is the home captain of the match that resulted [[|]] by 151 runs?" }, { "role": "assistant", "content": "SELECT \"home_captain\" FROM \"zimbabwe_in_kenya\" WHERE \"result\"='[[|]] by 151 runs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: How many totals have a To par of \u20131?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"made_the_cut\" WHERE \"to_par\"='\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Which Year(s) won has a Total smaller than 285, and a Player of tom watson?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"total\"<285 AND \"player\"='tom watson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Which Finish has a Total of 288?" }, { "role": "assistant", "content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"total\"=288;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Who won in 1991?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1991';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nhl_amateur_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Who was picked before 149 in round 9?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nhl_amateur_draft\" WHERE \"pick\"<149 AND \"round\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nhl_amateur_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Who was pick 16 and before round 10?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nhl_amateur_draft\" WHERE \"round\"<10 AND \"pick\"=16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is Affiliation, when Nickname is Bulldogs?" }, { "role": "assistant", "content": "SELECT \"affiliation\" FROM \"current_teams\" WHERE \"nickname\"='bulldogs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the average Founded, when Enrollment is 4,000?" }, { "role": "assistant", "content": "SELECT AVG(\"founded\") FROM \"current_teams\" WHERE \"enrollment\"='4,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: Which team raced at Amaroo Park?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"race_calendar\" WHERE \"circuit\"='amaroo park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: On what date did Dick Johnson with at Calder?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"winner\"='dick johnson' AND \"race_title\"='calder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: Which team raced on Oran Park Raceway?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"race_calendar\" WHERE \"circuit\"='oran park raceway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: On what date was the race in Melbourne, Victoria?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"city_state\"='melbourne, victoria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: Which city or state contains Calder Park Raceway?" }, { "role": "assistant", "content": "SELECT \"city_state\" FROM \"race_calendar\" WHERE \"circuit\"='calder park raceway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"home_and_away_rounds\" (\n \"round\" text,\n \"st_kilda_saints\" text,\n \"opposition\" text,\n \"their_score\" text,\n \"margin\" real\n);\n\nQuestion: What is the most reduced Margin that has a St Kilda Saints of 11.13 (79)?" }, { "role": "assistant", "content": "SELECT MIN(\"margin\") FROM \"home_and_away_rounds\" WHERE \"st_kilda_saints\"='11.13 (79)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"home_and_away_rounds\" (\n \"round\" text,\n \"st_kilda_saints\" text,\n \"opposition\" text,\n \"their_score\" text,\n \"margin\" real\n);\n\nQuestion: What is the average Margin that has a Round of 13. (h)?" }, { "role": "assistant", "content": "SELECT AVG(\"margin\") FROM \"home_and_away_rounds\" WHERE \"round\"='13. (h)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" text\n);\n\nQuestion: What is the location of South Adelaide?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"south_australia\" WHERE \"team\"='south adelaide';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" text\n);\n\nQuestion: Which team has an unknown coach and location of Athelstone?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"south_australia\" WHERE \"coach\"='unknown' AND \"location\"='athelstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_australia\" (\n \"team\" text,\n \"coach\" text,\n \"home_ground\" text,\n \"location\" text,\n \"founded\" text\n);\n\nQuestion: When was the team that plays at Athelstone founded?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"south_australia\" WHERE \"location\"='athelstone';" } ]