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 \"events\" (\n \"tournament\" text,\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"surface\" text,\n \"singles_champions\" text,\n \"doubles_champions\" text\n);\n\nQuestion: How many singles tournaments did Ludovic Walter win?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tournament\") FROM \"events\" WHERE \"singles_champions\"='Ludovic Walter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"n\" real,\n \"p\" text,\n \"name\" text,\n \"eu\" text,\n \"country\" text,\n \"age\" real,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the type where the country is esp?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"in\" WHERE \"country\"='ESP';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"n\" real,\n \"p\" text,\n \"name\" text,\n \"eu\" text,\n \"country\" text,\n \"age\" real,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the name where p is mf?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"in\" WHERE \"p\"='MF';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"in\" (\n \"n\" real,\n \"p\" text,\n \"name\" text,\n \"eu\" text,\n \"country\" text,\n \"age\" real,\n \"type\" text,\n \"moving_from\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: What is the type where the name is bojan?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"in\" WHERE \"name\"='Bojan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: What was the first day cover cancellation for the University of Saskatchewan themed stamp?"
},
{
"role": "assistant",
"content": "SELECT \"first_day_cover_cancellation\" FROM \"2007\" WHERE \"theme\"='University of Saskatchewan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: Who was responsible for the design of the Jasper National Park theme?"
},
{
"role": "assistant",
"content": "SELECT \"design\" FROM \"2007\" WHERE \"theme\"='Jasper National Park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: What is the paper type of the University of Saskatchewan themed stamp?"
},
{
"role": "assistant",
"content": "SELECT \"paper_type\" FROM \"2007\" WHERE \"theme\"='University of Saskatchewan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2007\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: Who created the illustration for the stamp that was themed 100 years of scouting?"
},
{
"role": "assistant",
"content": "SELECT \"illustration\" FROM \"2007\" WHERE \"theme\"='100 Years of Scouting';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"family_history\" (\n \"full_name\" text,\n \"nickname\" text,\n \"gender\" text,\n \"weight_at_birth\" text,\n \"meaning\" text\n);\n\nQuestion: What is the number of nicknames for the meaning of god knows my journey."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nickname\") FROM \"family_history\" WHERE \"meaning\"='God Knows My Journey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"family_history\" (\n \"full_name\" text,\n \"nickname\" text,\n \"gender\" text,\n \"weight_at_birth\" text,\n \"meaning\" text\n);\n\nQuestion: What is the number of meaning where full name is chidinma anulika?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"meaning\") FROM \"family_history\" WHERE \"full_name\"='Chidinma Anulika';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"family_history\" (\n \"full_name\" text,\n \"nickname\" text,\n \"gender\" text,\n \"weight_at_birth\" text,\n \"meaning\" text\n);\n\nQuestion: What is the nickname that means god holds my life?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"family_history\" WHERE \"meaning\"='God Holds My Life';"
}
]
|
[
{
"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 for game 49?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=49;"
}
]
|
[
{
"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 score for the game in which Emeka Okafor (10) had high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_rebounds\"='Emeka Okafor (10)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_number\" text,\n \"district\" text,\n \"location\" text,\n \"type\" text,\n \"appliances\" text,\n \"registrations\" text\n);\n\nQuestion: what is the total number of\u00a0location\u00a0where\u00a0station number\u00a0is c03"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"stations\" WHERE \"station_number\"='C03';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_number\" text,\n \"district\" text,\n \"location\" text,\n \"type\" text,\n \"appliances\" text,\n \"registrations\" text\n);\n\nQuestion: what are all the\u00a0type\u00a0where\u00a0station number\u00a0is c08"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"stations\" WHERE \"station_number\"='C08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_number\" text,\n \"district\" text,\n \"location\" text,\n \"type\" text,\n \"appliances\" text,\n \"registrations\" text\n);\n\nQuestion: what are all the\u00a0type\u00a0where\u00a0location\u00a0is st ives, cambridgeshire"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"stations\" WHERE \"location\"='St Ives, Cambridgeshire';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_number\" text,\n \"district\" text,\n \"location\" text,\n \"type\" text,\n \"appliances\" text,\n \"registrations\" text\n);\n\nQuestion: what are all the\u00a0registrations\u00a0where\u00a0station number\u00a0is c26"
},
{
"role": "assistant",
"content": "SELECT \"registrations\" FROM \"stations\" WHERE \"station_number\"='C26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_number\" text,\n \"district\" text,\n \"location\" text,\n \"type\" text,\n \"appliances\" text,\n \"registrations\" text\n);\n\nQuestion: what are all the\u00a0location\u00a0where\u00a0station number\u00a0is c11"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"stations\" WHERE \"station_number\"='C11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station_number\" text,\n \"district\" text,\n \"location\" text,\n \"type\" text,\n \"appliances\" text,\n \"registrations\" text\n);\n\nQuestion: what are all the\u00a0registrations\u00a0where\u00a0location\u00a0is yaxley"
},
{
"role": "assistant",
"content": "SELECT \"registrations\" FROM \"stations\" WHERE \"location\"='Yaxley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commemorative_silver_dollar_series\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"mintage_proof\" text,\n \"issue_price_proof\" text,\n \"mintage_bu_clarification_needed\" text,\n \"issue_price_bu_clarification_needed\" text\n);\n\nQuestion: What is the issue price (proof) where the issue price (bu) is 34.95?"
},
{
"role": "assistant",
"content": "SELECT \"issue_price_proof\" FROM \"commemorative_silver_dollar_series\" WHERE \"issue_price_bu_clarification_needed\"='34.95';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commemorative_silver_dollar_series\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"mintage_proof\" text,\n \"issue_price_proof\" text,\n \"mintage_bu_clarification_needed\" text,\n \"issue_price_bu_clarification_needed\" text\n);\n\nQuestion: What is the earliest year where the mintage (proof) is 25,000?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"commemorative_silver_dollar_series\" WHERE \"mintage_proof\"='25,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commemorative_silver_dollar_series\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"mintage_proof\" text,\n \"issue_price_proof\" text,\n \"mintage_bu_clarification_needed\" text,\n \"issue_price_bu_clarification_needed\" text\n);\n\nQuestion: What is the mintage (bu) with the artist Royal Canadian Mint Staff and has an issue price (proof) of $54.95?"
},
{
"role": "assistant",
"content": "SELECT \"mintage_bu_clarification_needed\" FROM \"commemorative_silver_dollar_series\" WHERE \"artist\"='Royal Canadian Mint Staff' AND \"issue_price_proof\"='$54.95';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commemorative_silver_dollar_series\" (\n \"year\" real,\n \"theme\" text,\n \"artist\" text,\n \"mintage_proof\" text,\n \"issue_price_proof\" text,\n \"mintage_bu_clarification_needed\" text,\n \"issue_price_bu_clarification_needed\" text\n);\n\nQuestion: What is the year that the issue price (bu) is $26.95?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"commemorative_silver_dollar_series\" WHERE \"issue_price_bu_clarification_needed\"='$26.95';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"no\" text,\n \"player\" text,\n \"date_of_birth\" text,\n \"batting_style\" text,\n \"bowling_style\" text,\n \"first_class_team\" text\n);\n\nQuestion: What is the number of first class team with birthday of 5 december 1970?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"first_class_team\") FROM \"new_zealand\" WHERE \"date_of_birth\"='5 December 1970';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"no\" text,\n \"player\" text,\n \"date_of_birth\" text,\n \"batting_style\" text,\n \"bowling_style\" text,\n \"first_class_team\" text\n);\n\nQuestion: What is the number when birthday is 15 november 1973?"
},
{
"role": "assistant",
"content": "SELECT \"no\" FROM \"new_zealand\" WHERE \"date_of_birth\"='15 November 1973';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"no\" text,\n \"player\" text,\n \"date_of_birth\" text,\n \"batting_style\" text,\n \"bowling_style\" text,\n \"first_class_team\" text\n);\n\nQuestion: What is the bowling style of chris harris?"
},
{
"role": "assistant",
"content": "SELECT \"bowling_style\" FROM \"new_zealand\" WHERE \"player\"='Chris Harris';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_zealand\" (\n \"no\" text,\n \"player\" text,\n \"date_of_birth\" text,\n \"batting_style\" text,\n \"bowling_style\" text,\n \"first_class_team\" text\n);\n\nQuestion: Where is the first class team of date of birth 20 november 1969?"
},
{
"role": "assistant",
"content": "SELECT \"first_class_team\" FROM \"new_zealand\" WHERE \"date_of_birth\"='20 November 1969';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"india\" (\n \"no\" text,\n \"player\" text,\n \"date_of_birth\" text,\n \"batting_style\" text,\n \"bowling_style\" text,\n \"first_class_team\" text\n);\n\nQuestion: What's Javagal Srinath's batting style?"
},
{
"role": "assistant",
"content": "SELECT \"batting_style\" FROM \"india\" WHERE \"player\"='Javagal Srinath';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"west_indies\" (\n \"no\" text,\n \"player\" text,\n \"date_of_birth\" text,\n \"batting_style\" text,\n \"bowling_style\" text,\n \"first_class_team\" text\n);\n\nQuestion: Shivnarine Chanderpaul used what bowling style? "
},
{
"role": "assistant",
"content": "SELECT \"bowling_style\" FROM \"west_indies\" WHERE \"player\"='Shivnarine Chanderpaul';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1995_1996\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many musical guests and songs were in episodes with a production code k0519?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"musical_guest_and_song\") FROM \"season_2_1995_1996\" WHERE \"production_code\"='K0519';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1995_1996\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many episodes originally aired on August 31, 1995?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"season_2_1995_1996\" WHERE \"original_air_date\"='August 31, 1995';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1995_1996\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What's the musical guest and the song in the episode titled \"Checkmate\"?"
},
{
"role": "assistant",
"content": "SELECT \"musical_guest_and_song\" FROM \"season_2_1995_1996\" WHERE \"title\"='\\\"Checkmate\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2_1995_1996\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many episodes were titled \"Man's best friend\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"season_2_1995_1996\" WHERE \"title\"='\\\"Man''s Best Friend\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1996_1997\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the season # when the musical guest and song is lisa stansfield \" you know how to love me \"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season_num\") FROM \"season_3_1996_1997\" WHERE \"musical_guest_and_song\"='Lisa Stansfield \\\" You Know How to Love Me \\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1996_1997\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is theoriginal air date of the episode directed by timothy van patten?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"season_3_1996_1997\" WHERE \"directed_by\"='Timothy Van Patten';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1996_1997\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the original air date for the title \"no place like hell\"?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"season_3_1996_1997\" WHERE \"title\"='\\\"No Place Like Hell\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1996_1997\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the season # where production code is k1505?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"season_num\") FROM \"season_3_1996_1997\" WHERE \"production_code\"='K1505';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1996_1997\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the original air date where the musical guest and song is blackstreet \" yearning for your love \"?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"season_3_1996_1997\" WHERE \"musical_guest_and_song\"='BLACKstreet \\\" Yearning for Your Love \\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_1996_1997\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"musical_guest_and_song\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the title of the episode with the original air date of february 6, 1997?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"season_3_1996_1997\" WHERE \"original_air_date\"='February 6, 1997';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_1998\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many titles are there for season 8"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"season_4_1998\" WHERE \"season_num\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_1998\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Which tittles have an original air date of March 19, 1998"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"season_4_1998\" WHERE \"original_air_date\"='March 19, 1998';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_1998\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: what are the original air dates with a title of \"spare Parts\""
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"season_4_1998\" WHERE \"title\"='\\\"Spare Parts\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the attendance of the game November 24"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='November 24';"
}
]
|
[
{
"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 highest assists on November 4"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='November 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the highest rebounds on November 4"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='November 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many numbers were listed under attendance for March 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"date\"='March 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the final score on March 26?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='March 26';"
}
]
|
[
{
"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 is the team when the score is 88\u201386?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"score\"='88\u201386';"
}
]
|
[
{
"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 is the score when high points is from pierce (30)?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_points\"='Pierce (30)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times is the score 98\u201390?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"score\"='98\u201390';"
}
]
|
[
{
"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 is the game that the location attendance is pepsi center 19,894?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"location_attendance\"='Pepsi Center 19,894';"
}
]
|
[
{
"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 is the team when location attendance is us airways center 18,422?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"location_attendance\"='US Airways Center 18,422';"
}
]
|
[
{
"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 is the record where high assists is pierce (6)?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_assists\"='Pierce (6)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the result of the game when the raptors played @ cleveland?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='@ Cleveland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Who did the high points of game 5?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"playoffs\" WHERE \"game\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: How many high points were at the wachovia center 18,347?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"playoffs\" WHERE \"location_attendance\"='Wachovia Center 18,347';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the team of april 25?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"playoffs\" WHERE \"date\"='April 25';"
}
]
|
[
{
"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 rebounds when Chris Bosh (16) had the high points?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_points\"='Chris Bosh (16)';"
}
]
|
[
{
"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 score when the location attendance was Air Canada Centre 18,067?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"location_attendance\"='Air Canada Centre 18,067';"
}
]
|
[
{
"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: When did Chris Bosh (14) have the high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_rebounds\"='Chris Bosh (14)';"
}
]
|
[
{
"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 on January 23?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='January 23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times was the game 39?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"game_log\" WHERE \"game\"=39;"
}
]
|
[
{
"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 is San Antonio game number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") 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: Who had high points when high rebound is gray (8)?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_rebounds\"='Gray (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the date deng (20) had high points?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_points\"='Deng (20)';"
}
]
|
[
{
"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 score of united center 22,097?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"location_attendance\"='United Center 22,097';"
}
]
|
[
{
"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: When gordon (27) had high points, what was the number of high assists?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"high_points\"='Gordon (27)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the location attendance on the date of November 15?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='November 15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Where was the game played when the high assists were scored by billups , stuckey (4)?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"playoffs\" WHERE \"high_assists\"='Billups , Stuckey (4)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What date was the game for the score L 88\u201379?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"playoffs\" WHERE \"score\"='L 88\u201379';"
}
]
|
[
{
"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: How many high points were there in the game 67?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"regular_season\" WHERE \"game\"=67;"
}
]
|
[
{
"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 team was played when the high points was from Wallace (20)?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"regular_season\" WHERE \"high_points\"='Wallace (20)';"
}
]
|
[
{
"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 date was the team playing @ Memphis?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"team\"='@ Memphis';"
}
]
|
[
{
"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: how many times was the high rebounds by Mcdyess (9) and the high assists was by Billups (10)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"regular_season\" WHERE \"high_rebounds\"='McDyess (9)' AND \"high_assists\"='Billups (10)';"
}
]
|
[
{
"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: Who had the high assists on the date December 12?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"regular_season\" WHERE \"date\"='December 12';"
}
]
|
[
{
"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 date was game 57 held on?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"game\"=57;"
}
]
|
[
{
"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: How many players had the most points in the game @ Milwaukee?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"regular_season\" WHERE \"team\"='@ Milwaukee';"
}
]
|
[
{
"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 did the most high rebounds in the game 24?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=24;"
}
]
|
[
{
"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 score of the game played on December 8?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='December 8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the total number of games where A. Johnson (6) gave the most high assists?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"high_assists\"='A. Johnson (6)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What's the minimal game number in the season?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What is the location when the high rebounds was from A. Horford (13)?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"playoffs\" WHERE \"high_rebounds\"='A. Horford (13)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: How had the high points when the high assists were from J. Johnson (7)?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"playoffs\" WHERE \"high_assists\"='J. Johnson (7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Who had the high rebounds when the high assists were from J. Johnson (7)?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"playoffs\" WHERE \"high_assists\"='J. Johnson (7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Which team was played on April 20?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"playoffs\" WHERE \"date\"='April 20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Who had the high rebounds for the game on april 23?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"playoffs\" WHERE \"date\"='April 23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What was the score in the game on May 11? "
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"playoffs\" WHERE \"date\"='May 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Who was the high scorer and how much did they score in the game on May 3? "
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"playoffs\" WHERE \"date\"='May 3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What was the series count at for game 5? "
},
{
"role": "assistant",
"content": "SELECT \"series\" FROM \"playoffs\" WHERE \"game\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Where was the game on May 15 and how many were in attendance? "
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"playoffs\" WHERE \"date\"='May 15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the attendance on March 17?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='March 17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: What was the high assist total on May 11?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"playoffs\" WHERE \"date\"='May 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What is the lowest #?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"april\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What is the score of the game with the streak l5"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"april\" WHERE \"streak\"='L5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What is the attendance for the home game at Los Angeles Lakers?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"april\" WHERE \"home\"='Los Angeles Lakers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What is the record for the game at home Los Angeles Lakers?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"april\" WHERE \"home\"='Los Angeles Lakers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"december\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What was the result and score of Game #29?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"december\" WHERE \"num\"=29;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"december\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: Who was the leading scorer in Game #26?"
},
{
"role": "assistant",
"content": "SELECT \"leading_scorer\" FROM \"december\" WHERE \"num\"=26;"
}
]
|
[
{
"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 rebounds when the score was l 84\u2013102 (ot)?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"score\"='L 84\u2013102 (OT)';"
}
]
|
[
{
"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 when the high rebounds were from Nick Collison (15)?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"high_rebounds\"='Nick Collison (15)';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.