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 \"list_of_performances_on\" (\n \"week\" text,\n \"theme\" text,\n \"song_sung\" text,\n \"artist\" text,\n \"status\" text\n);\n\nQuestion: Which song was sung by Artist Luther Vandross in the Week Top 20?"
},
{
"role": "assistant",
"content": "SELECT \"song_sung\" FROM \"list_of_performances_on\" WHERE \"artist\"='luther vandross' AND \"week\"='top 20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_performances_on\" (\n \"week\" text,\n \"theme\" text,\n \"song_sung\" text,\n \"artist\" text,\n \"status\" text\n);\n\nQuestion: Which Artist has a Week of Top 12?"
},
{
"role": "assistant",
"content": "SELECT \"artist\" FROM \"list_of_performances_on\" WHERE \"week\"='top 12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_performances_on\" (\n \"week\" text,\n \"theme\" text,\n \"song_sung\" text,\n \"artist\" text,\n \"status\" text\n);\n\nQuestion: What Status does Freddie Jackson have?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"list_of_performances_on\" WHERE \"artist\"='freddie jackson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_performances_on\" (\n \"week\" text,\n \"theme\" text,\n \"song_sung\" text,\n \"artist\" text,\n \"status\" text\n);\n\nQuestion: Which Song Sung has a Status of Eliminated?"
},
{
"role": "assistant",
"content": "SELECT \"song_sung\" FROM \"list_of_performances_on\" WHERE \"status\"='eliminated';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place of the player with a 71-69-66=206 score?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='71-69-66=206';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place of the player with a 71-66-64=201 score?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='71-66-64=201';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the to par of player peter senior?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"player\"='peter senior';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_list\" (\n \"year\" real,\n \"champion\" text,\n \"finalist\" text,\n \"score\" text,\n \"place\" text\n);\n\nQuestion: What is Finalist, when Year is \"2008\"?"
},
{
"role": "assistant",
"content": "SELECT \"finalist\" FROM \"prize_list\" WHERE \"year\"=2008;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_list\" (\n \"year\" real,\n \"champion\" text,\n \"finalist\" text,\n \"score\" text,\n \"place\" text\n);\n\nQuestion: What is Place, when Year is greater than 2006, and when Champion is \"Asvel\"?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"prize_list\" WHERE \"year\">2006 AND \"champion\"='asvel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_list\" (\n \"year\" real,\n \"champion\" text,\n \"finalist\" text,\n \"score\" text,\n \"place\" text\n);\n\nQuestion: What is Champion, when Year is greater than 2007, and when Finalist is \"Asvel\"?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"prize_list\" WHERE \"year\">2007 AND \"finalist\"='asvel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m_ps_1832_1885\" (\n \"election\" text,\n \"first_member\" text,\n \"1st_party\" text,\n \"second_member\" text,\n \"2nd_party\" text\n);\n\nQuestion: What is Election, when 2nd Party is \"Constituency Abolished\"?"
},
{
"role": "assistant",
"content": "SELECT \"election\" FROM \"m_ps_1832_1885\" WHERE \"2nd_party\"='constituency abolished';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m_ps_1832_1885\" (\n \"election\" text,\n \"first_member\" text,\n \"1st_party\" text,\n \"second_member\" text,\n \"2nd_party\" text\n);\n\nQuestion: What is 2nd Party, when Election is \"1865\"?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_party\" FROM \"m_ps_1832_1885\" WHERE \"election\"='1865';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m_ps_1832_1885\" (\n \"election\" text,\n \"first_member\" text,\n \"1st_party\" text,\n \"second_member\" text,\n \"2nd_party\" text\n);\n\nQuestion: What is Election, when 2nd Party is \"Conservative\", and when First Member is \"Edmund Antrobus\"?"
},
{
"role": "assistant",
"content": "SELECT \"election\" FROM \"m_ps_1832_1885\" WHERE \"2nd_party\"='conservative' AND \"first_member\"='edmund antrobus';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m_ps_1832_1885\" (\n \"election\" text,\n \"first_member\" text,\n \"1st_party\" text,\n \"second_member\" text,\n \"2nd_party\" text\n);\n\nQuestion: What is First Member, when Election is \"1871 by-election\"?"
},
{
"role": "assistant",
"content": "SELECT \"first_member\" FROM \"m_ps_1832_1885\" WHERE \"election\"='1871 by-election';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m_ps_1832_1885\" (\n \"election\" text,\n \"first_member\" text,\n \"1st_party\" text,\n \"second_member\" text,\n \"2nd_party\" text\n);\n\nQuestion: What is 1st Party, when First Member is \"Peter John Locke King\", and when Second Member is \"James Watney\"?"
},
{
"role": "assistant",
"content": "SELECT \"1st_party\" FROM \"m_ps_1832_1885\" WHERE \"first_member\"='peter john locke king' AND \"second_member\"='james watney';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m_ps_1832_1885\" (\n \"election\" text,\n \"first_member\" text,\n \"1st_party\" text,\n \"second_member\" text,\n \"2nd_party\" text\n);\n\nQuestion: What is Second Member, when Election is \"1835\"?"
},
{
"role": "assistant",
"content": "SELECT \"second_member\" FROM \"m_ps_1832_1885\" WHERE \"election\"='1835';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: How much Played has Goals Against of 45, and Goals For smaller than 65?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"played\") FROM \"second_division_final_table\" WHERE \"goals_against\"=45 AND \"goals_for\"<65;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: How many Goals Against have a Position of 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"goals_against\") FROM \"second_division_final_table\" WHERE \"position\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest total when bronze is less than 1 and gold more than 0?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total\") FROM \"medal_table\" WHERE \"bronze\"<1 AND \"gold\">0;"
}
]
|
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"bronze\") FROM \"medal_table\" WHERE \"rank\"=5 AND \"nation\"='poland' AND \"gold\"<0;"
}
]
|
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the sum of silver when the rank is 3, nation is france and bronze is less than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"silver\") FROM \"medal_table\" WHERE \"rank\"=3 AND \"nation\"='france' AND \"bronze\"<0;"
}
]
|
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many times is the nation china and bronze more than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"medal_table\" WHERE \"nation\"='china' AND \"bronze\">0;"
}
]
|
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many times is the rank higher than 3 and bronze more than 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"gold\") FROM \"medal_table\" WHERE \"rank\">3 AND \"bronze\">1;"
}
]
|
[
{
"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\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"medal_table\" WHERE \"bronze\"=1 AND \"rank\"<2 AND \"gold\">4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What is the average value for Draws, when Against is \"2177\", and when Byes is less than 4?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"draws\") FROM \"2008_ladder_and_finals\" WHERE \"against\"=2177 AND \"byes\"<4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What is the total number of Losses, when Wins is \"16\", and when Against is less than 772?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"losses\") FROM \"2008_ladder_and_finals\" WHERE \"wins\"=16 AND \"against\"<772;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What is the lowest value for Draws, when Losses is \"0\", and when Byes is greater than 4?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"draws\") FROM \"2008_ladder_and_finals\" WHERE \"losses\"=0 AND \"byes\">4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is \"Swanpool\", and when Against is less than 2177?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"byes\") FROM \"2008_ladder_and_finals\" WHERE \"wins\"<16 AND \"benalla_dfl\"='swanpool' AND \"against\"<2177;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008_ladder_and_finals\" (\n \"benalla_dfl\" text,\n \"wins\" real,\n \"losses\" real,\n \"draws\" real,\n \"byes\" real,\n \"against\" real\n);\n\nQuestion: What is the highest value for Byes, when Against is less than 1794, when Losses is \"6\", and when Draws is less than 0?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"byes\") FROM \"2008_ladder_and_finals\" WHERE \"against\"<1794 AND \"losses\"=6 AND \"draws\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1_fc_nuremberg_versus_sp_vgg_f_rth\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: what is the teams for season 1950-51?"
},
{
"role": "assistant",
"content": "SELECT \"teams\" FROM \"1_fc_nuremberg_versus_sp_vgg_f_rth\" WHERE \"season\"='1950-51';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1_fc_nuremberg_versus_sp_vgg_f_rth\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What is the league for season 1955-56?"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"1_fc_nuremberg_versus_sp_vgg_f_rth\" WHERE \"season\"='1955-56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"florida_league_alumni_top_5_round_picks_\" (\n \"player\" text,\n \"fcsl_team\" text,\n \"years_played\" text,\n \"year_drafted\" real,\n \"round\" text,\n \"mlb_team\" text\n);\n\nQuestion: What is the drafted year when the FCSL Team was Winter Park, in the 4th round?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year_drafted\") FROM \"florida_league_alumni_top_5_round_picks_\" WHERE \"fcsl_team\"='winter park' AND \"round\"='4th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"florida_league_alumni_top_5_round_picks_\" (\n \"player\" text,\n \"fcsl_team\" text,\n \"years_played\" text,\n \"year_drafted\" real,\n \"round\" text,\n \"mlb_team\" text\n);\n\nQuestion: What is the FCSL Team when the MLB Team is Toronto Blue Jays, in the 4th round?"
},
{
"role": "assistant",
"content": "SELECT \"fcsl_team\" FROM \"florida_league_alumni_top_5_round_picks_\" WHERE \"mlb_team\"='toronto blue jays' AND \"round\"='4th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was John Fought's score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_leaderboard\" WHERE \"player\"='john fought';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is the to par of the player from Argentina with a t8 place?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"place\"='t8' AND \"country\"='argentina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: How much money does the player with a 68-67-69-71=275 score have?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round\" WHERE \"score\"='68-67-69-71=275';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What is the country of t1 place player wayne grady?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_round\" WHERE \"place\"='t1' AND \"player\"='wayne grady';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: How much money does the player with a 68-71-68-72=279 score have?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round\" WHERE \"score\"='68-71-68-72=279';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: How much money does the player with a 69-70-72-64=275 score have?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round\" WHERE \"score\"='69-70-72-64=275';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was the money when the place was t8 and the score was 74-72-75-71=292?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_leaderboard\" WHERE \"place\"='t8' AND \"score\"='74-72-75-71=292';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was the average money when the score was 74-72-75-71=292?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"money\") FROM \"final_leaderboard\" WHERE \"score\"='74-72-75-71=292';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was Tim Simpson's place?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"player\"='tim simpson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What country placed 3?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_leaderboard\" WHERE \"place\"='3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_heavy_naphtha_feedstocks\" (\n \"crude_oil_name_rightarrow_location_rightarrow\" text,\n \"barrow_island_australia\" real,\n \"mutineer_exeter_australia\" real,\n \"cpc_blend_kazakhstan\" real,\n \"draugen_north_sea\" real\n);\n\nQuestion: What is the average Barrow Island Australia when Draugen north sea is 17 and Mutineer-Exeter Australia is smaller than 6?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"barrow_island_australia\") FROM \"typical_heavy_naphtha_feedstocks\" WHERE \"draugen_north_sea\"=17 AND \"mutineer_exeter_australia\"<6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_heavy_naphtha_feedstocks\" (\n \"crude_oil_name_rightarrow_location_rightarrow\" text,\n \"barrow_island_australia\" real,\n \"mutineer_exeter_australia\" real,\n \"cpc_blend_kazakhstan\" real,\n \"draugen_north_sea\" real\n);\n\nQuestion: What is the lowest Barrow Island Australia when the Crude oil name \\Rightarrow Location \\Rightarrow of initial boiling point, \u00b0c, and a draugen north sea is larger than 150?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"barrow_island_australia\") FROM \"typical_heavy_naphtha_feedstocks\" WHERE \"crude_oil_name_rightarrow_location_rightarrow\"='initial boiling point, \u00b0c' AND \"draugen_north_sea\">150;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_heavy_naphtha_feedstocks\" (\n \"crude_oil_name_rightarrow_location_rightarrow\" text,\n \"barrow_island_australia\" real,\n \"mutineer_exeter_australia\" real,\n \"cpc_blend_kazakhstan\" real,\n \"draugen_north_sea\" real\n);\n\nQuestion: What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"cpc_blend_kazakhstan\") FROM \"typical_heavy_naphtha_feedstocks\" WHERE \"barrow_island_australia\"<12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_heavy_naphtha_feedstocks\" (\n \"crude_oil_name_rightarrow_location_rightarrow\" text,\n \"barrow_island_australia\" real,\n \"mutineer_exeter_australia\" real,\n \"cpc_blend_kazakhstan\" real,\n \"draugen_north_sea\" real\n);\n\nQuestion: What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"cpc_blend_kazakhstan\") FROM \"typical_heavy_naphtha_feedstocks\" WHERE \"draugen_north_sea\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What race did eugenio silvani win?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"other_grands_prix\" WHERE \"winning_driver\"='eugenio silvani';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Which race did Mercedes win?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='mercedes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Which circuit did alfa romeo win?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='alfa romeo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"passenger_train_locomotives\" (\n \"class\" text,\n \"number_range\" text,\n \"quantity\" text,\n \"year_s_built\" text,\n \"type\" text\n);\n\nQuestion: What is the number range for the 56 quantity?"
},
{
"role": "assistant",
"content": "SELECT \"number_range\" FROM \"passenger_train_locomotives\" WHERE \"quantity\"='56';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"daytona_500_results\" (\n \"year\" real,\n \"manufacturer\" text,\n \"start\" text,\n \"finish\" text,\n \"team\" text\n);\n\nQuestion: Which team in 1987 had a start of 28 and drove a chrysler?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"daytona_500_results\" WHERE \"year\"<1987 AND \"manufacturer\"='chrysler' AND \"start\"='28';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tennessee\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What is Party, when District is \"Tennessee 8\"?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"tennessee\" WHERE \"district\"='tennessee 8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tennessee\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What is the total number of First Elected, when Party is \"Democratic\", and when District is \"Tennessee 5\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"first_elected\") FROM \"tennessee\" WHERE \"party\"='democratic' AND \"district\"='tennessee 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tennessee\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What is the lowest First Elected, when Results is \"Re-elected\", and when Incumbent is \"Lincoln Davis\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"first_elected\") FROM \"tennessee\" WHERE \"results\"='re-elected' AND \"incumbent\"='lincoln davis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tennessee\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What is the highest First Elected, when Results is \"Re-elected\", and when Incumbent is \"Lincoln Davis\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"first_elected\") FROM \"tennessee\" WHERE \"results\"='re-elected' AND \"incumbent\"='lincoln davis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economics\" (\n \"commercial_balance\" text,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real\n);\n\nQuestion: Which 2004 has a 2006 of 4,67, and a 2005 larger than 7,77?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2004\") FROM \"economics\" WHERE \"2006\"='4,67' AND \"2005\">'7,77';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economics\" (\n \"commercial_balance\" text,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real\n);\n\nQuestion: How much 2005 has a 2006 larger than 4,67, and a 2004 of -14,76?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"2005\") FROM \"economics\" WHERE \"2006\">'4,67' AND \"2004\"='-14,76';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economics\" (\n \"commercial_balance\" text,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real\n);\n\nQuestion: Which 2004 has a 2005 larger than -80,04, and a 2003 of 36,60?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"2004\") FROM \"economics\" WHERE \"2005\">'-80,04' AND \"2003\"='36,60';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"economics\" (\n \"commercial_balance\" text,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real\n);\n\nQuestion: Which 2005 has a 2003 of -13,25, and a 2004 smaller than -8,37?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2005\") FROM \"economics\" WHERE \"2003\"='-13,25' AND \"2004\"<'-8,37';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is the Status of the 44 Against?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"2008\" WHERE \"against\"=44;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2008\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is the date of the 42 Against?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"2008\" WHERE \"against\"=42;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_both_cuts\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the total number for Seve Ballesteros?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"made_both_cuts\" WHERE \"player\"='seve ballesteros';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_both_cuts\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the lowest to par for Bob Charles?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"to_par\") FROM \"made_both_cuts\" WHERE \"player\"='bob charles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"serbia_and_montenegro\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: Who is born on 1982-01-29?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"serbia_and_montenegro\" WHERE \"date_of_birth\"='1982-01-29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"serbia_and_montenegro\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the position played by the man born on 1976-09-20?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"serbia_and_montenegro\" WHERE \"date_of_birth\"='1976-09-20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: What country was the golfer with a score of 72-72-72=216 representing?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='72-72-72=216';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_divisional_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text\n);\n\nQuestion: Which Division Two team were champions as the same time the Premier Division Leominster town team were champs?"
},
{
"role": "assistant",
"content": "SELECT \"division_two\" FROM \"recent_divisional_champions\" WHERE \"premier_division\"='leominster town';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_divisional_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text\n);\n\nQuestion: Which Season was the Division Three Hampton Park Rangers champions?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"recent_divisional_champions\" WHERE \"division_three\"='hampton park rangers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_divisional_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text\n);\n\nQuestion: Which Season was the Division Two Fownhope Reserves champions?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"recent_divisional_champions\" WHERE \"division_two\"='fownhope reserves';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_divisional_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text\n);\n\nQuestion: What Division One team were champions at the same time the Division Two Hereford Lads Club Colts were champs?"
},
{
"role": "assistant",
"content": "SELECT \"division_one\" FROM \"recent_divisional_champions\" WHERE \"division_two\"='hereford lads club colts';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"recent_divisional_champions\" (\n \"season\" text,\n \"premier_division\" text,\n \"division_one\" text,\n \"division_two\" text,\n \"division_three\" text\n);\n\nQuestion: Which year were both the Premier Division Ewyas Harold and Division Three Stoke Prior champions?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"recent_divisional_champions\" WHERE \"premier_division\"='ewyas harold' AND \"division_three\"='stoke prior';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"years\" text\n);\n\nQuestion: What engine has an output of ps (kw; hp) @4700 rpm?"
},
{
"role": "assistant",
"content": "SELECT \"engine\" FROM \"engines\" WHERE \"output\"='ps (kw; hp) @4700 rpm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"years\" text\n);\n\nQuestion: What is the output of the engine AEX/APQ that uses petrol?"
},
{
"role": "assistant",
"content": "SELECT \"output\" FROM \"engines\" WHERE \"fuel\"='petrol' AND \"engine_id_code_s\"='aex/apq';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"years\" text\n);\n\nQuestion: What is the 0\u2013100km/h,s for the output of ps (kw; hp) @4000 rpm?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"0_100km_h_s\") FROM \"engines\" WHERE \"output\"='ps (kw; hp) @4000 rpm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Who were the opposing teams on 08/02/1969?"
},
{
"role": "assistant",
"content": "SELECT \"opposing_teams\" FROM \"1969\" WHERE \"date\"='08/02/1969';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is the highest number against on 12/04/1969?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"against\") FROM \"1969\" WHERE \"date\"='12/04/1969';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is the venue of the match with more than 8 against and ireland as the opposing team?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"1969\" WHERE \"against\">8 AND \"opposing_teams\"='ireland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: which Place has a Player of mark brooks?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='mark brooks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which Place has a Player of justin leonard?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='justin leonard';"
}
]
|
[
{
"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: Name the Place which has a Score of 67-71=138, united states?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"country\"='united states' AND \"score\"='67-71=138';"
}
]
|
[
{
"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: Name the Player which has a To par of \u20136?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"to_par\"='\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was their record on week 11?"
},
{
"role": "assistant",
"content": "SELECT \"record\" 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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Who did they play at Atlanta-Fulton County Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='atlanta-fulton county stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was their record when they played at Riverfront Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"game_site\"='riverfront stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is Another She's Label?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"studio_albums\" WHERE \"english_title\"='another she';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is \u4f60 \u670b\u53cb's Label?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"studio_albums\" WHERE \"chinese_simplified\"='\u4f60 \u670b\u53cb';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What Label was Released on December 7, 2012?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"studio_albums\" WHERE \"release_date\"='december 7, 2012';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is \u4f60 \u670b\u53cb's English title?"
},
{
"role": "assistant",
"content": "SELECT \"english_title\" FROM \"studio_albums\" WHERE \"chinese_simplified\"='\u4f60 \u670b\u53cb';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"albumnum\" text,\n \"english_title\" text,\n \"chinese_traditional\" text,\n \"chinese_simplified\" text,\n \"release_date\" text,\n \"label\" text\n);\n\nQuestion: What is the Release date of the Album Your Friend?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"studio_albums\" WHERE \"english_title\"='your friend';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"rank\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"total\" real\n);\n\nQuestion: What was the runner-up when champion is 0, 4th place is 0 and rank is 6?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"women\" WHERE \"champion\"='0' AND \"fourth_place\"='0' AND \"rank\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"rank\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"total\" real\n);\n\nQuestion: What is the runner-up for rank of 7?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"women\" WHERE \"rank\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"rank\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"third_place\" text,\n \"fourth_place\" text,\n \"total\" real\n);\n\nQuestion: What is the runner-up when the total is 5?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"women\" WHERE \"total\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"team_1\" text,\n \"score\" text,\n \"team_2\" text,\n \"1st_round\" text,\n \"2nd_round\" text\n);\n\nQuestion: What was the score of team 2 Stade Lavallois (D1)?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"round_of_16\" WHERE \"team_2\"='stade lavallois (d1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"racing_vehicles\" (\n \"model\" text,\n \"year\" text,\n \"type\" text,\n \"engine\" text,\n \"displacement_cc\" text\n);\n\nQuestion: What is the CC displacement for 1965?"
},
{
"role": "assistant",
"content": "SELECT \"displacement_cc\" FROM \"racing_vehicles\" WHERE \"year\"='1965';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"racing_vehicles\" (\n \"model\" text,\n \"year\" text,\n \"type\" text,\n \"engine\" text,\n \"displacement_cc\" text\n);\n\nQuestion: What year was the Grand Prix with an i8 engine and a cc displacement of 1500?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"racing_vehicles\" WHERE \"type\"='grand prix' AND \"engine\"='i8' AND \"displacement_cc\"='1500';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"racing_vehicles\" (\n \"model\" text,\n \"year\" text,\n \"type\" text,\n \"engine\" text,\n \"displacement_cc\" text\n);\n\nQuestion: What type of car has the model 6cm?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"racing_vehicles\" WHERE \"model\"='6cm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"racing_vehicles\" (\n \"model\" text,\n \"year\" text,\n \"type\" text,\n \"engine\" text,\n \"displacement_cc\" text\n);\n\nQuestion: What cc displacement has an i6 engine in 1936?"
},
{
"role": "assistant",
"content": "SELECT \"displacement_cc\" FROM \"racing_vehicles\" WHERE \"engine\"='i6' AND \"year\"='1936';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"racing_vehicles\" (\n \"model\" text,\n \"year\" text,\n \"type\" text,\n \"engine\" text,\n \"displacement_cc\" text\n);\n\nQuestion: What type of car has the v16 engine?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"racing_vehicles\" WHERE \"engine\"='v16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: What is the total number of years won by Justin Leonard with a to par under 9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year_s_won\") FROM \"missed_the_cut\" WHERE \"player\"='justin leonard' AND \"to_par\"<9;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.