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 \"group_c\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When was the home team score 17.5 (107)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"group_c\" WHERE \"home_team_score\"='17.5 (107)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_c\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team when the home was st kilda?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"group_c\" WHERE \"home_team\"='st kilda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_c\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team on sunday, 13 february?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"group_c\" WHERE \"date\"='sunday, 13 february';" } ]
[ { "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: Which Week has a Date of december 3, 2001?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"date\"='december 3, 2001';" } ]
[ { "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: Which Week has a Opponent of tennessee titans?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"opponent\"='tennessee titans';" } ]
[ { "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: What are the years won with a total of 282?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"total\"=282;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What was the date when the against was 3?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"fa_cup\" WHERE \"against\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What was the Against when the Opposing Team was sheffield wednesday?" }, { "role": "assistant", "content": "SELECT \"against\" FROM \"fa_cup\" WHERE \"opposing_team\"='sheffield wednesday';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: Which round was played in the H Venue on 29 january 1949?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"fa_cup\" WHERE \"venue\"='h' AND \"date\"='29 january 1949';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What is the total number of Against that were played in the H Venue on 26 february 1949?" }, { "role": "assistant", "content": "SELECT COUNT(\"against\") FROM \"fa_cup\" WHERE \"venue\"='h' AND \"date\"='26 february 1949';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fa_cup\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What was the round for 29 January 1949, when the against was 1?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"fa_cup\" WHERE \"against\"=1 AND \"date\"='29 january 1949';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" text,\n \"competition\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What is the Result when the Attendance is 1,634?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"february\" WHERE \"attendance\"='1,634';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" text,\n \"competition\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: On what date was Stuart Potts the Man of the Match?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"february\" WHERE \"man_of_the_match\"='stuart potts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" text,\n \"competition\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: Who was the Opponent when Terry Miles was the Man of the Match?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"february\" WHERE \"man_of_the_match\"='terry miles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" text,\n \"competition\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What was the Result of the game dated 21st?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"february\" WHERE \"date\"='21st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" text,\n \"competition\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: Which Venue is listed under the Date of 21st?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"february\" WHERE \"date\"='21st';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" text,\n \"competition\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What was the Result on the Date of 25th?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"february\" WHERE \"date\"='25th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the rank when the opponent was Wisconsin (played at Wisconsin)?" }, { "role": "assistant", "content": "SELECT \"rank_num\" FROM \"schedule\" WHERE \"opponentnum\"='at wisconsin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the result when they played at Michigan State?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponentnum\"='at michigan state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the opponent when the result was w24-7?" }, { "role": "assistant", "content": "SELECT \"opponentnum\" FROM \"schedule\" WHERE \"result\"='w24-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: How many were in attendance when they played vs. 12 Stanford?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponentnum\"='vs. 12 stanford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potos\u00ed, and a Total smaller than 16,240?" }, { "role": "assistant", "content": "SELECT MAX(\"big_500ha\") FROM \"irrigation_infrastructure\" WHERE \"micro_10ha\">940 AND \"department\"='potos\u00ed' AND \"total\"<'16,240';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: Which Small (100ha) has a Big (>500ha) of 5,710, and a Total smaller than 36,351?" }, { "role": "assistant", "content": "SELECT MIN(\"small_100ha\") FROM \"irrigation_infrastructure\" WHERE \"big_500ha\"='5,710' AND \"total\"<'36,351';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: How much Micro (10ha) has a Big (>500ha) larger than 63,454, and a Medium (500ha) larger than 440, and a Small (100ha) smaller than 21,047?" }, { "role": "assistant", "content": "SELECT COUNT(\"micro_10ha\") FROM \"irrigation_infrastructure\" WHERE \"big_500ha\">'63,454' AND \"medium_500ha\">440 AND \"small_100ha\"<'21,047';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"irrigation_infrastructure\" (\n \"department\" text,\n \"micro_10ha\" real,\n \"small_100ha\" real,\n \"medium_500ha\" real,\n \"big_500ha\" real,\n \"total\" real\n);\n\nQuestion: Which Small (100ha) is the highest one that has a Big (>500ha) larger than 9,021?" }, { "role": "assistant", "content": "SELECT MAX(\"small_100ha\") FROM \"irrigation_infrastructure\" WHERE \"big_500ha\">'9,021';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defence\" (\n \"player\" text,\n \"sacks\" real,\n \"ints\" real,\n \"int_yds\" real,\n \"int_lg\" real,\n \"int_td\" real,\n \"fumb_r\" real,\n \"fumb_yds\" real,\n \"fumb_lg\" real,\n \"fumb_td\" real,\n \"fumb_f\" real\n);\n\nQuestion: Which Fumb Yds has a Fumb F. of 0, and a Int LG smaller than 0?" }, { "role": "assistant", "content": "SELECT MAX(\"fumb_yds\") FROM \"defence\" WHERE \"fumb_f\"=0 AND \"int_lg\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defence\" (\n \"player\" text,\n \"sacks\" real,\n \"ints\" real,\n \"int_yds\" real,\n \"int_lg\" real,\n \"int_td\" real,\n \"fumb_r\" real,\n \"fumb_yds\" real,\n \"fumb_lg\" real,\n \"fumb_td\" real,\n \"fumb_f\" real\n);\n\nQuestion: Which Fumb TD has an Int TD of 1, and a Fumb F. smaller than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"fumb_td\") FROM \"defence\" WHERE \"int_td\"=1 AND \"fumb_f\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"oldest_living_test_cricketers\" (\n \"name\" text,\n \"country\" text,\n \"date_of_birth\" text,\n \"debut\" text,\n \"last_match\" text,\n \"age_as_of_1_february_2014\" text\n);\n\nQuestion: What is the name of the person whose country is West Indies." }, { "role": "assistant", "content": "SELECT \"name\" FROM \"oldest_living_test_cricketers\" WHERE \"country\"='west indies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"oldest_living_test_cricketers\" (\n \"name\" text,\n \"country\" text,\n \"date_of_birth\" text,\n \"debut\" text,\n \"last_match\" text,\n \"age_as_of_1_february_2014\" text\n);\n\nQuestion: What is the Pananmal Punjabi's date of birth?" }, { "role": "assistant", "content": "SELECT \"date_of_birth\" FROM \"oldest_living_test_cricketers\" WHERE \"name\"='pananmal punjabi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_wac_women_s_basketball_tournament_r\" (\n \"year\" real,\n \"winner\" text,\n \"score\" text,\n \"opponent\" text,\n \"location\" text\n);\n\nQuestion: Who was the winner after 2011?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"past_wac_women_s_basketball_tournament_r\" WHERE \"year\">2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"past_wac_women_s_basketball_tournament_r\" (\n \"year\" real,\n \"winner\" text,\n \"score\" text,\n \"opponent\" text,\n \"location\" text\n);\n\nQuestion: What was the lowest year for TCU?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"past_wac_women_s_basketball_tournament_r\" WHERE \"winner\"='tcu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the score of player bill rogers?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='bill rogers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the country with a t7 place and a 69-68-72=209 score?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"place\"='t7' AND \"score\"='69-68-72=209';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place of player jim thorpe?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='jim thorpe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place of player chi-chi rodr\u00edguez?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='chi-chi rodr\u00edguez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Who is the player with a 69-68-71=208 score?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='69-68-71=208';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text\n);\n\nQuestion: What state had a title of duke for the royal house of ji?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"vassal_states\" WHERE \"title\"='duke' AND \"royal_house\"='ji';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text\n);\n\nQuestion: What state had the name of wu for the royal house of ji?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"vassal_states\" WHERE \"royal_house\"='ji' AND \"name\"='wu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text\n);\n\nQuestion: What was the name listed for the royal house of jiang and a title of duke?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"vassal_states\" WHERE \"title\"='duke' AND \"royal_house\"='jiang';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text\n);\n\nQuestion: What was the name when the state was wey?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"vassal_states\" WHERE \"state\"='wey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text\n);\n\nQuestion: What was the title for the state of qin?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"vassal_states\" WHERE \"state\"='qin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"vassal_states\" (\n \"state\" text,\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text\n);\n\nQuestion: What was the state that had the vassal name of li?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"vassal_states\" WHERE \"name\"='li';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Where was the match held that lasted 3:24?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='3:24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: The match against Mark Hunt had what result?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='mark hunt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Who was the match against at the PRIDE 31 event?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='pride 31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: The match that went 1 round, and had a method of submission (rear-naked choke) had what record?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=1 AND \"method\"='submission (rear-naked choke)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Who is the player with a t7 place?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_round\" WHERE \"place\"='t7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the lowest amount of money player jim colbert has?" }, { "role": "assistant", "content": "SELECT MIN(\"money\") FROM \"final_round\" WHERE \"player\"='jim colbert';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: What is the average Enrollment of Dickinson College?" }, { "role": "assistant", "content": "SELECT AVG(\"enrollment\") FROM \"american_division\" WHERE \"institution\"='dickinson college';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: Which institution has a nickname of Blue Hens?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"american_division\" WHERE \"nickname\"='blue hens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: What is the nickname of the college established in 1773?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"american_division\" WHERE \"established\"=1773;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What was the time of round 2 against Taylor Mccorriston?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"round\"='2' AND \"opponent\"='taylor mccorriston';" } ]
[ { "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 assists against San Antonio?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"team\"='san antonio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the number of the game against Charlotte?" }, { "role": "assistant", "content": "SELECT SUM(\"game\") 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 \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which Money has a Score of 70-68-73-68=279?" }, { "role": "assistant", "content": "SELECT MIN(\"money\") FROM \"final_round\" WHERE \"score\"='70-68-73-68=279';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which Score has a To par of +1, and a Player of masashi ozaki?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"to_par\"='+1' AND \"player\"='masashi ozaki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which money has a Country of united states, and a Place of t6?" }, { "role": "assistant", "content": "SELECT AVG(\"money\") FROM \"final_round\" WHERE \"country\"='united states' AND \"place\"='t6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2004 value for the 2009 Grand slam tournaments?" }, { "role": "assistant", "content": "SELECT \"2004\" FROM \"singles_performance_timeline\" WHERE \"2009\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2008\"='a' AND \"2005\"='q1' AND \"2004\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2005 value for the 2010 grand slam tournaments?" }, { "role": "assistant", "content": "SELECT \"2005\" FROM \"singles_performance_timeline\" WHERE \"2010\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2003 value for the 2008 grand slam tournaments?" }, { "role": "assistant", "content": "SELECT \"2003\" FROM \"singles_performance_timeline\" WHERE \"2008\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003?" }, { "role": "assistant", "content": "SELECT \"2005\" FROM \"singles_performance_timeline\" WHERE \"2011\"='q2' AND \"2012\"='q1' AND \"2003\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the 2009 value for the 2003 grand slam tournaments?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2003\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the high amount of assists before game 60?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"<60;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"afc_cup\" (\n \"match\" real,\n \"date\" text,\n \"round\" text,\n \"home_away\" text,\n \"opponent_team\" text,\n \"score\" text\n);\n\nQuestion: What date was match 5?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"afc_cup\" WHERE \"match\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"afc_cup\" (\n \"match\" real,\n \"date\" text,\n \"round\" text,\n \"home_away\" text,\n \"opponent_team\" text,\n \"score\" text\n);\n\nQuestion: What was the game score on april 2, 2008?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"afc_cup\" WHERE \"date\"='april 2, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"afc_cup\" (\n \"match\" real,\n \"date\" text,\n \"round\" text,\n \"home_away\" text,\n \"opponent_team\" text,\n \"score\" text\n);\n\nQuestion: What is the average match when the singapore armed forces played away against perak fa (malaysia)?" }, { "role": "assistant", "content": "SELECT AVG(\"match\") FROM \"afc_cup\" WHERE \"home_away\"='away' AND \"opponent_team\"='perak fa (malaysia)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the ICAO for Seewoosagur Ramgoolam airport?" }, { "role": "assistant", "content": "SELECT \"icao\" FROM \"references\" WHERE \"airport\"='seewoosagur ramgoolam airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the IATA for San Francisco airport?" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"references\" WHERE \"airport\"='san francisco airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Which city has an ICAO of Oejn?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"references\" WHERE \"icao\"='oejn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the IATA for Gatwick airport?" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"references\" WHERE \"airport\"='gatwick airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the ICAO in France with an IATA of Ory?" }, { "role": "assistant", "content": "SELECT \"icao\" FROM \"references\" WHERE \"country\"='france' AND \"iata\"='ory';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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: Which Location Attendance has a Game larger than 67, and a Team of @ charlotte?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"game\">67 AND \"team\"='@ charlotte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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: Which High rebounds have High points of chris bosh (18)?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"high_points\"='chris bosh (18)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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: Which High rebounds have High points of chris bosh (34)?" }, { "role": "assistant", "content": "SELECT \"high_rebounds\" FROM \"regular_season\" WHERE \"high_points\"='chris bosh (34)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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 are Utah's high points?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"regular_season\" WHERE \"team\"='utah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_state_leaders_in_the_20th_centur\" (\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What is Rinnal's title?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"list_of_state_leaders_in_the_20th_centur\" WHERE \"name\"='rinnal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_state_leaders_in_the_20th_centur\" (\n \"type\" text,\n \"name\" text,\n \"title\" text,\n \"royal_house\" text,\n \"from\" text\n);\n\nQuestion: What title was used in 1911 bc?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"list_of_state_leaders_in_the_20th_centur\" WHERE \"from\"='1911 bc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which player from United States is in place of t6?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"country\"='united states' AND \"place\"='t6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Phil Mickelson has what To par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"player\"='phil mickelson';" } ]
[ { "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_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What high assists have a game greater than 46?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\">46;" } ]
[ { "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_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What are the high points that have 42 as the game?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"game\"=42;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What record has 46 as the game?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=46;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT IS THE PLACE WITH A SCORE OF 67-70=137?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='67-70=137';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT PLAYER HAS A SCORE OF 66-73=139?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"score\"='66-73=139';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT PLACE WAS A SCORE 67-70=137?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='67-70=137';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT COUNTRY HAS A T7 PLACE, WITH IAN WOOSNAM?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t7' AND \"player\"='ian woosnam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHAT COUNTRY HAS A SCORE OF 68-70=138?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='68-70=138';" } ]
[ { "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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What was the earliest week when the New Orleans Saints were the opponents?" }, { "role": "assistant", "content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"opponent\"='new orleans saints';" } ]
[ { "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 \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What was the name of the opponent that having a TV time of Bye?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"tv_time\"='bye';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: What is the Parameter that has the third phase of 0.50 m?" }, { "role": "assistant", "content": "SELECT \"parameter\" FROM \"specifications\" WHERE \"3rd_stage\"='0.50 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: What is the second stage that has the third phase of 20kn?" }, { "role": "assistant", "content": "SELECT \"2nd_stage\" FROM \"specifications\" WHERE \"3rd_stage\"='20kn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: What is the third stage that has the first phase of 5,443kg?" }, { "role": "assistant", "content": "SELECT \"3rd_stage\" FROM \"specifications\" WHERE \"1st_stage\"='5,443kg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: What is the Parameter that has the third phase of 20kn?" }, { "role": "assistant", "content": "SELECT \"parameter\" FROM \"specifications\" WHERE \"3rd_stage\"='20kn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What year did the Grizzlies play for the UNLV team?" }, { "role": "assistant", "content": "SELECT \"years_for_grizzlies\" FROM \"a\" WHERE \"school_club_team\"='unlv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What nationality is the forward/center position?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"a\" WHERE \"position\"='forward/center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What team is from the United States and plays a guard position for the Grizzlies in 2012?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"a\" WHERE \"nationality\"='united states' AND \"position\"='guard' AND \"years_for_grizzlies\"='2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position is the player from the United States play for the Grizzlies from 2000-2001?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"a\" WHERE \"nationality\"='united states' AND \"years_for_grizzlies\"='2000-2001';" } ]
[ { "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 total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"gold\">0 AND \"rank\"='4' AND \"total\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?" }, { "role": "assistant", "content": "SELECT COUNT(\"total\") FROM \"medal_table\" WHERE \"gold\"<1 AND \"silver\">0 AND \"rank\"='14' AND \"nation\"='afghanistan';" } ]