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 \"round_14\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What was the away team that scored 63-69?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_14\" WHERE \"score\"='63-69';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Where is the player Davis Love III?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"first_round\" WHERE \"player\"='davis love iii';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081?"
},
{
"role": "assistant",
"content": "SELECT \"qual_2\" FROM \"qualifying_results\" WHERE \"team\"='dale coyne racing' AND \"qual_1\"='1:00.081';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: Which team had a second qualifying time of 58.539?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"qualifying_results\" WHERE \"qual_2\"='58.539';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the best time from patrick carpentier from the forsythe racing team?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"team\"='forsythe racing' AND \"name\"='patrick carpentier';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the best time for a team with a first-qualifying time of 59.448?"
},
{
"role": "assistant",
"content": "SELECT \"best\" FROM \"qualifying_results\" WHERE \"qual_1\"='59.448';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the name of the racer with a best time of 57.546?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"qualifying_results\" WHERE \"best\"='57.546';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying_results\" (\n \"name\" text,\n \"team\" text,\n \"qual_1\" text,\n \"qual_2\" text,\n \"best\" text\n);\n\nQuestion: What is the name of the racer with a first-qualifying time of 58.991?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"qualifying_results\" WHERE \"qual_1\"='58.991';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text\n);\n\nQuestion: What is the average Points, when Played is greater than 126?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"relegation\" WHERE \"played\">126;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text\n);\n\nQuestion: What is the sum of Average, when 2006 is \"36/40\", and when Played is greater than 126?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"average\") FROM \"relegation\" WHERE \"2006\"='36/40' AND \"played\">126;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text\n);\n\nQuestion: What is 2006, when Team is \"Tacuary\"?"
},
{
"role": "assistant",
"content": "SELECT \"2006\" FROM \"relegation\" WHERE \"team\"='tacuary';"
}
] |
[
{
"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: Which Rank has a Bronze of 3?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"medal_table\" WHERE \"bronze\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"winner\" text,\n \"country\" text,\n \"score\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What are the Runner(s)-up of the 1956 Championship?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"winners\" WHERE \"year\"='1956';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"winner\" text,\n \"country\" text,\n \"score\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What are the Runner(s)-up of the 1972 Championship?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"winners\" WHERE \"year\"='1972';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"winner\" text,\n \"country\" text,\n \"score\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the Country of the Championship with a Score of 293?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"winners\" WHERE \"score\"='293';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: What is the total enrollment at the school that has the nickname of the Fightin' Blue Hens?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"enrollment\") FROM \"membership\" WHERE \"nickname\"='fightin'' blue hens';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pool_h\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What was the score for set 3 when set 1 was 14\u201325?"
},
{
"role": "assistant",
"content": "SELECT \"set_3\" FROM \"pool_h\" WHERE \"set_1\"='14\u201325';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pool_h\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What is the time when the set 3 score is 31\u201329?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"pool_h\" WHERE \"set_3\"='31\u201329';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pool_h\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What is the total when the score for set 1 is 14\u201325?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"pool_h\" WHERE \"set_1\"='14\u201325';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pool_h\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What is the total when the score for set 2 is 20\u201325?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"pool_h\" WHERE \"set_2\"='20\u201325';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pool_h\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text\n);\n\nQuestion: What is the total when the score for set 2 is 25\u201322?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"pool_h\" WHERE \"set_2\"='25\u201322';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"switzerland\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the price of 150 mbps downstread?"
},
{
"role": "assistant",
"content": "SELECT \"price\" FROM \"switzerland\" WHERE \"downstream\"='150 mbps';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"switzerland\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the upstream with the price 65 chf?"
},
{
"role": "assistant",
"content": "SELECT \"upstream\" FROM \"switzerland\" WHERE \"price\"='65 chf';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"switzerland\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the price of the internet 150 plans?"
},
{
"role": "assistant",
"content": "SELECT \"price\" FROM \"switzerland\" WHERE \"internet_plan\"='internet 150';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"switzerland\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the upstream for the 100 mbps downstream?"
},
{
"role": "assistant",
"content": "SELECT \"upstream\" FROM \"switzerland\" WHERE \"downstream\"='100 mbps';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"switzerland\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the price of 60 mbps downstream?"
},
{
"role": "assistant",
"content": "SELECT \"price\" FROM \"switzerland\" WHERE \"downstream\"='60 mbps';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"switzerland\" (\n \"internet_plan\" text,\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth_included\" text,\n \"price\" text\n);\n\nQuestion: What is the upstream for the internet 100 plans?"
},
{
"role": "assistant",
"content": "SELECT \"upstream\" FROM \"switzerland\" WHERE \"internet_plan\"='internet 100';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: Which club team was the player from who was selected in a round under 4?"
},
{
"role": "assistant",
"content": "SELECT \"club_team\" FROM \"draft_picks\" WHERE \"round\"<4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: What was the club team for Kyle de Coste?"
},
{
"role": "assistant",
"content": "SELECT \"club_team\" FROM \"draft_picks\" WHERE \"player\"='kyle de coste';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"coach\" text,\n \"first_yr\" real,\n \"last_yr\" real,\n \"w_lpct\" real,\n \"g_500\" real,\n \"yr_plyf\" real,\n \"g_plyf\" real,\n \"w_plyf\" real,\n \"l_plyf\" real\n);\n\nQuestion: What is the highest w plyf with a first yr before 1960, a G plyf greater than 0, a G > .500 less than 43, and a w-l% less than 0.578?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"w_plyf\") FROM \"coaches\" WHERE \"first_yr\"<1960 AND \"g_plyf\">0 AND \"g_500\"<43 AND \"w_lpct\"<0.578;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"coach\" text,\n \"first_yr\" real,\n \"last_yr\" real,\n \"w_lpct\" real,\n \"g_500\" real,\n \"yr_plyf\" real,\n \"g_plyf\" real,\n \"w_plyf\" real,\n \"l_plyf\" real\n);\n\nQuestion: What is the sum of the yr plyf of coach ed robinson, who has a G plyf of 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"yr_plyf\") FROM \"coaches\" WHERE \"g_plyf\"=0 AND \"coach\"='ed robinson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"coach\" text,\n \"first_yr\" real,\n \"last_yr\" real,\n \"w_lpct\" real,\n \"g_500\" real,\n \"yr_plyf\" real,\n \"g_plyf\" real,\n \"w_plyf\" real,\n \"l_plyf\" real\n);\n\nQuestion: What is the total number of yr plyf with a G plyf less than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"yr_plyf\") FROM \"coaches\" WHERE \"g_plyf\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"coach\" text,\n \"first_yr\" real,\n \"last_yr\" real,\n \"w_lpct\" real,\n \"g_500\" real,\n \"yr_plyf\" real,\n \"g_plyf\" real,\n \"w_plyf\" real,\n \"l_plyf\" real\n);\n\nQuestion: Who is the coach with a w-l% greater than 0.516, a first yr before 1925, a yr plyf greater than 2, and a last yr in 1967?"
},
{
"role": "assistant",
"content": "SELECT \"coach\" FROM \"coaches\" WHERE \"w_lpct\">0.516 AND \"first_yr\"<1925 AND \"yr_plyf\">2 AND \"last_yr\"=1967;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"coach\" text,\n \"first_yr\" real,\n \"last_yr\" real,\n \"w_lpct\" real,\n \"g_500\" real,\n \"yr_plyf\" real,\n \"g_plyf\" real,\n \"w_plyf\" real,\n \"l_plyf\" real\n);\n\nQuestion: What is the average last yr with an l plyf less than 0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"last_yr\") FROM \"coaches\" WHERE \"l_plyf\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"coaches\" (\n \"coach\" text,\n \"first_yr\" real,\n \"last_yr\" real,\n \"w_lpct\" real,\n \"g_500\" real,\n \"yr_plyf\" real,\n \"g_plyf\" real,\n \"w_plyf\" real,\n \"l_plyf\" real\n);\n\nQuestion: What is the earliest last year with a yr plyf less than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"last_yr\") FROM \"coaches\" WHERE \"yr_plyf\"<0;"
}
] |
[
{
"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 To par of the Player with a Score of 69-70=139?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"score\"='69-70=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 is Bob Gilder in Place T3's To par?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"place\"='t3' AND \"player\"='bob gilder';"
}
] |
[
{
"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 High Points, when Game is less than 82, when Location Attendance is \"Quicken Loans Arena 20,562\", and when High Rebounds is \"\u017dydr\u016bnas Ilgauskas (13)\"?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"game\"<82 AND \"location_attendance\"='quicken loans arena 20,562' AND \"high_rebounds\"='\u017eydr\u016bnas ilgauskas (13)';"
}
] |
[
{
"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 lowest Game, when High Assists is \"Maurice Williams (8)\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"high_assists\"='maurice williams (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 lowest Game, when Date is \"April 12\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"date\"='april 12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Winner, when Date is 5 Sep?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"date\"='5 sep';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Team, when Circuit is Queensland Raceway, and when Winner is Garth Tander?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"race_calendar\" WHERE \"circuit\"='queensland raceway' AND \"winner\"='garth tander';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Date, when Team is Holden Racing Team, and when Circuit is Eastern Creek Raceway?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"team\"='holden racing team' AND \"circuit\"='eastern creek raceway';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Team, when Circuit is Phillip Island Grand Prix Circuit?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"race_calendar\" WHERE \"circuit\"='phillip island grand prix circuit';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Circuit, when Series is ASTC Round 4?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"race_calendar\" WHERE \"series\"='astc round 4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What is the total number of React, when Name is Sean Wroe, and when Lane is greater than 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"react\") FROM \"final\" WHERE \"name\"='sean wroe' AND \"lane\">2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What is the highest Lane, when Mark is 46.65, and when React is greater than 0.251?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"lane\") FROM \"final\" WHERE \"mark\"='46.65' AND \"react\">0.251;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What is the lowest React, when Mark is 46.26 sb, and when Lane is greater than 6?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"react\") FROM \"final\" WHERE \"mark\"='46.26 sb' AND \"lane\">6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What is Mark, when Lane is greater than 2, and when Country is Bahamas?"
},
{
"role": "assistant",
"content": "SELECT \"mark\" FROM \"final\" WHERE \"lane\">2 AND \"country\"='bahamas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: What is the number of the belarusian language?"
},
{
"role": "assistant",
"content": "SELECT \"number\" FROM \"language\" WHERE \"language\"='belarusian';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: What is the number with an 80.62 percentage?"
},
{
"role": "assistant",
"content": "SELECT \"number\" FROM \"language\" WHERE \"percentage_pct\"='80.62';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"language\" (\n \"language\" text,\n \"number\" text,\n \"percentage_pct\" text,\n \"males\" text,\n \"females\" text\n);\n\nQuestion: How many males have a percentage of 80.62?"
},
{
"role": "assistant",
"content": "SELECT \"males\" FROM \"language\" WHERE \"percentage_pct\"='80.62';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_in_the_nba\" (\n \"name\" text,\n \"wsu_year_s\" text,\n \"position\" text,\n \"team\" text,\n \"pro_year_s\" text\n);\n\nQuestion: What is Name, when Team is New York Knicks, and when WSU Year(s) is 1965-68?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"players_in_the_nba\" WHERE \"team\"='new york knicks' AND \"wsu_year_s\"='1965-68';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_in_the_nba\" (\n \"name\" text,\n \"wsu_year_s\" text,\n \"position\" text,\n \"team\" text,\n \"pro_year_s\" text\n);\n\nQuestion: What is Name, when WSU Year(s) is 1981-82?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"players_in_the_nba\" WHERE \"wsu_year_s\"='1981-82';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_in_the_nba\" (\n \"name\" text,\n \"wsu_year_s\" text,\n \"position\" text,\n \"team\" text,\n \"pro_year_s\" text\n);\n\nQuestion: What is WSU Year(s), when Pro Year(s) is 1974-77?"
},
{
"role": "assistant",
"content": "SELECT \"wsu_year_s\" FROM \"players_in_the_nba\" WHERE \"pro_year_s\"='1974-77';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_in_the_nba\" (\n \"name\" text,\n \"wsu_year_s\" text,\n \"position\" text,\n \"team\" text,\n \"pro_year_s\" text\n);\n\nQuestion: What is Pro Year(s), when Team is Cincinnati Royals?"
},
{
"role": "assistant",
"content": "SELECT \"pro_year_s\" FROM \"players_in_the_nba\" WHERE \"team\"='cincinnati royals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_in_the_nba\" (\n \"name\" text,\n \"wsu_year_s\" text,\n \"position\" text,\n \"team\" text,\n \"pro_year_s\" text\n);\n\nQuestion: What is Position, when Team is Cincinnati Royals?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"players_in_the_nba\" WHERE \"team\"='cincinnati royals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"players_in_the_nba\" (\n \"name\" text,\n \"wsu_year_s\" text,\n \"position\" text,\n \"team\" text,\n \"pro_year_s\" text\n);\n\nQuestion: What is Name, when Team is Detroit Pistons, and when WSU Year(s) is 1979-82?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"players_in_the_nba\" WHERE \"team\"='detroit pistons' AND \"wsu_year_s\"='1979-82';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is Position, when Overallis less than 314, and when Pick is less than 8?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"washington_redskins_draft_history\" WHERE \"overall\"<314 AND \"pick\"<8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the average value of Overall, when Round is greater than 11, and when Pick is greater than 10?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"round\">11 AND \"pick\">10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is Name, when Overall is greater than 132, and when Round is 12?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"washington_redskins_draft_history\" WHERE \"overall\">132 AND \"round\"=12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is College, when Pick is 20?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"washington_redskins_draft_history\" WHERE \"pick\"=20;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is average Overall, when Pick is 19?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"pick\"=19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: What is the average pick for Princeton after round 3?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"pick\") FROM \"draft_picks\" WHERE \"round\">3 AND \"college\"='princeton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: What is the earliest round Clark was in?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"draft_picks\" WHERE \"college\"='clark';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the tie number when the home team was gillingham?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"second_round\" WHERE \"home_team\"='gillingham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the score when the home team was goole town?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"home_team\"='goole town';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What date had the home team as brentford?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"second_round\" WHERE \"home_team\"='brentford';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the tie number when bradford park avenue was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"second_round\" WHERE \"away_team\"='bradford park avenue';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1950_1999\" (\n \"1950\" real,\n \"general_1950\" text,\n \"senate_1950\" text,\n \"house_1950\" text,\n \"governors_1950\" text\n);\n\nQuestion: What shows for House 1950 when the Governors 1950 show governors 1995?"
},
{
"role": "assistant",
"content": "SELECT \"house_1950\" FROM \"1950_1999\" WHERE \"governors_1950\"='governors 1995';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1950_1999\" (\n \"1950\" real,\n \"general_1950\" text,\n \"senate_1950\" text,\n \"house_1950\" text,\n \"governors_1950\" text\n);\n\nQuestion: What shows for House 1950 when the General 1950 is general 1986?"
},
{
"role": "assistant",
"content": "SELECT \"house_1950\" FROM \"1950_1999\" WHERE \"general_1950\"='general 1986';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1950_1999\" (\n \"1950\" real,\n \"general_1950\" text,\n \"senate_1950\" text,\n \"house_1950\" text,\n \"governors_1950\" text\n);\n\nQuestion: What is the Governors 1950 when the General 1950 is general 1979?"
},
{
"role": "assistant",
"content": "SELECT \"governors_1950\" FROM \"1950_1999\" WHERE \"general_1950\"='general 1979';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1950_1999\" (\n \"1950\" real,\n \"general_1950\" text,\n \"senate_1950\" text,\n \"house_1950\" text,\n \"governors_1950\" text\n);\n\nQuestion: What shows for House 1950 with a 1950 less than 1980, and Governors 1950 of governors 1970?"
},
{
"role": "assistant",
"content": "SELECT \"house_1950\" FROM \"1950_1999\" WHERE \"1950\"<1980 AND \"governors_1950\"='governors 1970';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"month\" text,\n \"single\" text,\n \"album\" text,\n \"record_label\" text\n);\n\nQuestion: What's the average year for the good things happening album's single \"lady lady lay\"?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"singles\" WHERE \"album\"='good things happening' AND \"single\"='\\\"lady lady lay\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"month\" text,\n \"single\" text,\n \"album\" text,\n \"record_label\" text\n);\n\nQuestion: What album came out before 1975 with the dawn record label and the single \"lady lady lay\"?"
},
{
"role": "assistant",
"content": "SELECT \"album\" FROM \"singles\" WHERE \"year\"<1975 AND \"record_label\"='dawn' AND \"single\"='\\\"lady lady lay\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"month\" text,\n \"single\" text,\n \"album\" text,\n \"record_label\" text\n);\n\nQuestion: What's the earliest year listed for \"where are you going to my love\" from the album united we stand?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"singles\" WHERE \"album\"='united we stand' AND \"single\"='\\\"where are you going to my love\\\"';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"month\" text,\n \"single\" text,\n \"album\" text,\n \"record_label\" text\n);\n\nQuestion: What month before 1973 is listed for the album united we stand?"
},
{
"role": "assistant",
"content": "SELECT \"month\" FROM \"singles\" WHERE \"year\"<1973 AND \"album\"='united we stand';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"panchayatana\" (\n \"name_of_deity\" text,\n \"bhuta_tatwa\" text,\n \"name_of_the_stone_sila\" text,\n \"name_of_the_river\" text,\n \"name_of_the_state_where_found_in_india\" text\n);\n\nQuestion: What is the name of the river found in Madhya Pradesh, India?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_the_river\" FROM \"panchayatana\" WHERE \"name_of_the_state_where_found_in_india\"='madhya pradesh';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"panchayatana\" (\n \"name_of_deity\" text,\n \"bhuta_tatwa\" text,\n \"name_of_the_stone_sila\" text,\n \"name_of_the_river\" text,\n \"name_of_the_state_where_found_in_india\" text\n);\n\nQuestion: What is the name of the deity that the state of Bihar was named after?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_deity\" FROM \"panchayatana\" WHERE \"name_of_the_state_where_found_in_india\"='bihar';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"panchayatana\" (\n \"name_of_deity\" text,\n \"bhuta_tatwa\" text,\n \"name_of_the_stone_sila\" text,\n \"name_of_the_river\" text,\n \"name_of_the_state_where_found_in_india\" text\n);\n\nQuestion: What is the name of the diety for the river of sone?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_deity\" FROM \"panchayatana\" WHERE \"name_of_the_river\"='sone';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"panchayatana\" (\n \"name_of_deity\" text,\n \"bhuta_tatwa\" text,\n \"name_of_the_stone_sila\" text,\n \"name_of_the_river\" text,\n \"name_of_the_state_where_found_in_india\" text\n);\n\nQuestion: What is the name of the stone found in Andhra Pradesh, India?"
},
{
"role": "assistant",
"content": "SELECT \"name_of_the_stone_sila\" FROM \"panchayatana\" WHERE \"name_of_the_state_where_found_in_india\"='andhra pradesh';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What date was the game score 103-94?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_11\" WHERE \"score\"='103-94';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: Who is the away team that played home team of Perth Wildcats?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_11\" WHERE \"home_team\"='perth wildcats';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What is the score of the game that was played on 29 November at State Sports Centre?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_11\" WHERE \"date\"='29 november' AND \"venue\"='state sports centre';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What date did home team Gold Coast Blaze play?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_11\" WHERE \"home_team\"='gold coast blaze';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What kind of report was for the game played on 29 November with Melbourne Tigers being the away team?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"round_11\" WHERE \"date\"='29 november' AND \"away_team\"='melbourne tigers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: Who is the away team that played home team Perth Wildcats?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_11\" WHERE \"home_team\"='perth wildcats';"
}
] |
[
{
"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: Who did they play in week 11?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=11;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What day did they play in week 6?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"allsvenskan_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"attendance\" text\n);\n\nQuestion: Name the Date which has a Score of 3-1 and Attendances of 32 590?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"allsvenskan_2004\" WHERE \"score\"='3-1' AND \"attendance\"='32 590';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"allsvenskan_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"attendance\" text\n);\n\nQuestion: Which Venue is on 2004-07-24?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"allsvenskan_2004\" WHERE \"date\"='2004-07-24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"allsvenskan_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"attendance\" text\n);\n\nQuestion: Which Score has a Venue of idrottsparken?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"allsvenskan_2004\" WHERE \"venue\"='idrottsparken';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"allsvenskan_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"attendance\" text\n);\n\nQuestion: Which Comp is on 2004-10-17?"
},
{
"role": "assistant",
"content": "SELECT \"comp\" FROM \"allsvenskan_2004\" WHERE \"date\"='2004-10-17';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"allsvenskan_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"attendance\" text\n);\n\nQuestion: Which Venue has a Opponents of halmstad and a Score of 1-1?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"allsvenskan_2004\" WHERE \"opponents\"='halmstad' AND \"score\"='1-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"allsvenskan_2004\" (\n \"date\" text,\n \"venue\" text,\n \"opponents\" text,\n \"score\" text,\n \"comp\" text,\n \"attendance\" text\n);\n\nQuestion: Which Attendance that has a Venue of ryavallen?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"allsvenskan_2004\" WHERE \"venue\"='ryavallen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_16_9_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_16_9_7\" WHERE \"outcome\"='winner' AND \"date\"='13 july 2013';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_16_9_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Date, when Outcome is Winner, and when Opponent is An-Sophie Mestach?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"singles_16_9_7\" WHERE \"outcome\"='winner' AND \"opponent\"='an-sophie mestach';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_16_9_7\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is Score, when Date is 10 July 2011?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"singles_16_9_7\" WHERE \"date\"='10 july 2011';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"pregame_host\" text\n);\n\nQuestion: What network has a Play-by-play by Jack Edwards in 2000?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"2000s\" WHERE \"play_by_play\"='jack edwards' AND \"year\"=2000;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2000s\" (\n \"year\" real,\n \"network\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"pregame_host\" text\n);\n\nQuestion: What is the name of the pregame host when Bold was the network?"
},
{
"role": "assistant",
"content": "SELECT \"pregame_host\" FROM \"2000s\" WHERE \"network\"='bold';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.