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 \"record_vs_big_12_opponents\" (\n \"oklahoma_vs\" text,\n \"overall_record\" text,\n \"at_norman\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_beginning_of_big_12\" text\n);\n\nQuestion: What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6?"
},
{
"role": "assistant",
"content": "SELECT \"oklahoma_vs\" FROM \"record_vs_big_12_opponents\" WHERE \"current_streak\"='l 1' AND \"at_neutral_site\"='osu, 7-6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_big_12_opponents\" (\n \"oklahoma_vs\" text,\n \"overall_record\" text,\n \"at_norman\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_beginning_of_big_12\" text\n);\n\nQuestion: What is the Overall Record when Since Beginning of Big 12 is ou, 27-3?"
},
{
"role": "assistant",
"content": "SELECT \"overall_record\" FROM \"record_vs_big_12_opponents\" WHERE \"since_beginning_of_big_12\"='ou, 27-3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_big_12_opponents\" (\n \"oklahoma_vs\" text,\n \"overall_record\" text,\n \"at_norman\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_beginning_of_big_12\" text\n);\n\nQuestion: What is the Last 10 Meetings when Norman is ou, 18-6?"
},
{
"role": "assistant",
"content": "SELECT \"last_10_meetings\" FROM \"record_vs_big_12_opponents\" WHERE \"at_norman\"='ou, 18-6';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_big_12_opponents\" (\n \"oklahoma_vs\" text,\n \"overall_record\" text,\n \"at_norman\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_beginning_of_big_12\" text\n);\n\nQuestion: what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2?"
},
{
"role": "assistant",
"content": "SELECT \"since_beginning_of_big_12\" FROM \"record_vs_big_12_opponents\" WHERE \"last_10_meetings\"='ou, 7-3' AND \"at_neutral_site\"='ou, 2-1' AND \"last_5_meetings\"='bu, 3-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_big_12_opponents\" (\n \"oklahoma_vs\" text,\n \"overall_record\" text,\n \"at_norman\" text,\n \"at_opponent_s_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_beginning_of_big_12\" text\n);\n\nQuestion: what is the current streak when the last 5 meetings is osu, 4-1?"
},
{
"role": "assistant",
"content": "SELECT \"current_streak\" FROM \"record_vs_big_12_opponents\" WHERE \"last_5_meetings\"='osu, 4-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"record\" text\n);\n\nQuestion: What is the record for a game lower than 79?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"game\"<79;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_10_6_4\" (\n \"outcome\" text,\n \"date\" real,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who was the partner when the final score was 7\u20136, 3\u20136, 6\u20137?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_finals_10_6_4\" WHERE \"score_in_the_final\"='7\u20136, 3\u20136, 6\u20137';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_10_6_4\" (\n \"outcome\" text,\n \"date\" real,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who was the partner for the match with a score in the final of 4\u20136, 6\u20137?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_finals_10_6_4\" WHERE \"score_in_the_final\"='4\u20136, 6\u20137';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_finals_10_6_4\" (\n \"outcome\" text,\n \"date\" real,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What tournament took place after 1986 and had a final score of 7\u20136, 3\u20136, 6\u20132?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"doubles_finals_10_6_4\" WHERE \"date\">1986 AND \"score_in_the_final\"='7\u20136, 3\u20136, 6\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_top_50_performances\" (\n \"athlete\" text,\n \"time\" text,\n \"country\" text,\n \"year\" real,\n \"place\" real\n);\n\nQuestion: Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"all_time_top_50_performances\" WHERE \"athlete\"='markus thalmann' AND \"time\"='23:28:24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_top_50_performances\" (\n \"athlete\" text,\n \"time\" text,\n \"country\" text,\n \"year\" real,\n \"place\" real\n);\n\nQuestion: Which Year is the lowest one that has a Time of 24:55:58, and a Place larger than 3?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"all_time_top_50_performances\" WHERE \"time\"='24:55:58' AND \"place\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_top_50_performances\" (\n \"athlete\" text,\n \"time\" text,\n \"country\" text,\n \"year\" real,\n \"place\" real\n);\n\nQuestion: Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country of gre, and a Time of 21:57:00?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"all_time_top_50_performances\" WHERE \"place\"=1 AND \"year\"<1988 AND \"country\"='gre' AND \"time\"='21:57:00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_top_50_performances\" (\n \"athlete\" text,\n \"time\" text,\n \"country\" text,\n \"year\" real,\n \"place\" real\n);\n\nQuestion: Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"all_time_top_50_performances\" WHERE \"year\">1985 AND \"place\"<2 AND \"athlete\"='riochy sekiya';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_schedule\" (\n \"game\" text,\n \"day_date\" text,\n \"anand\" text,\n \"gelfand\" text,\n \"standing\" text\n);\n\nQuestion: What was Anand's score in game 8?"
},
{
"role": "assistant",
"content": "SELECT \"anand\" FROM \"regular_schedule\" WHERE \"game\"='8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_schedule\" (\n \"game\" text,\n \"day_date\" text,\n \"anand\" text,\n \"gelfand\" text,\n \"standing\" text\n);\n\nQuestion: What is the day and date of game 2?"
},
{
"role": "assistant",
"content": "SELECT \"day_date\" FROM \"regular_schedule\" WHERE \"game\"='2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='november 24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: WHAT IS THE LOCATION ATTENDANCE FOR GAME 4?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: WHAT IS THE RECORD FOR DATE NOVEMBER 14?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='november 14';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_12_9_3\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What tournament is on 18 May 1992?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"doubles_12_9_3\" WHERE \"date\"='18 may 1992';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_12_9_3\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the score of the tournament with a carpet surface and tim henman as the partnering?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_12_9_3\" WHERE \"surface\"='carpet' AND \"partnering\"='tim henman';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_10_4_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: On what surface did Katarina Srebotnik play Paola Su\u00e1rez?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_10_4_6\" WHERE \"opponent_in_final\"='paola su\u00e1rez';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_10_4_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: At what tournament was the Score 5\u20137, 7\u20135, 6\u20134?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_10_4_6\" WHERE \"score_in_final\"='5\u20137, 7\u20135, 6\u20134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_10_4_6\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What was the Final Score on February 24, 2002?"
},
{
"role": "assistant",
"content": "SELECT \"score_in_final\" FROM \"singles_10_4_6\" WHERE \"date\"='february 24, 2002';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the smallest crowd when the away team scored 12.16 (88)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"crowd\") FROM \"1st_round\" WHERE \"away_team_score\"='12.16 (88)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the average crowd size for a home team score of 11.11 (77)?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"1st_round\" WHERE \"home_team_score\"='11.11 (77)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_preliminary_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 1st leg when the 2nd leg was 67-83?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"first_preliminary_round\" WHERE \"2nd_leg\"='67-83';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_preliminary_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Which Team #1 had a 1st leg of 78-78?"
},
{
"role": "assistant",
"content": "SELECT \"team_num1\" FROM \"first_preliminary_round\" WHERE \"1st_leg\"='78-78';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_preliminary_round\" (\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who was Team #1 when Team #2 was galatasaray cc i\u0307stanbul?"
},
{
"role": "assistant",
"content": "SELECT \"team_num1\" FROM \"first_preliminary_round\" WHERE \"team_num2\"='galatasaray cc i\u0307stanbul';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What are the Podiums that has a Poles of 3?"
},
{
"role": "assistant",
"content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"poles\"='3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the Team that has a Races of 4, and a Points of 0?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"races\"='4' AND \"points\"='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 to par is located in the united states and has a player by the name of hal sutton?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"country\"='united states' AND \"player\"='hal sutton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player is in the place of t1 and has the score of 67-70=137?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"place\"='t1' AND \"score\"='67-70=137';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place has the score of 67-74=141?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='67-74=141';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What player has the score of 67-72=139?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"second_round\" WHERE \"score\"='67-72=139';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What was Gassaway's record at the fight in mississippi, united states against anthony macias?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"location\"='mississippi, united states' AND \"opponent\"='anthony macias';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What was the location the fight was held at that lasted 5 rounds?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"round\"='5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"round\" text,\n \"location\" text\n);\n\nQuestion: What was the location of the fight when Gassaway fought kevin knabjian?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='kevin knabjian';"
}
] |
[
{
"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 place did Fred Couples finish in?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"player\"='fred couples';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fortune_2013_list\" (\n \"rank\" real,\n \"company\" text,\n \"country\" text,\n \"industry\" text,\n \"revenue_in_usd\" text\n);\n\nQuestion: What is the rank of the company who has a revenue of $428.2 billion?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"fortune_2013_list\" WHERE \"revenue_in_usd\"='$428.2 billion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fortune_2013_list\" (\n \"rank\" real,\n \"company\" text,\n \"country\" text,\n \"industry\" text,\n \"revenue_in_usd\" text\n);\n\nQuestion: What is the rank of the petroleum company who has a revenue of $481.7 billion?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"fortune_2013_list\" WHERE \"industry\"='petroleum' AND \"revenue_in_usd\"='$481.7 billion';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is Tournament, when 2005 is \"N/A\", and when 2002 is \"0 / 1\"?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2005\"='n/a' AND \"2002\"='0 / 1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is Career Win-Loss, when 2002 is \"A\", and when 2001 is \"4R\"?"
},
{
"role": "assistant",
"content": "SELECT \"career_win_loss\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2002\"='a' AND \"2001\"='4r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is Tournament, when 2001 is \"1R\"?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"2001\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_qualifying_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What was the score in the 1st leg when 2nd leg was 1\u20134?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"second_qualifying_round\" WHERE \"2nd_leg\"='1\u20134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"panchayatana\" (\n \"center\" text,\n \"north_east\" text,\n \"south_east\" text,\n \"south_west\" text,\n \"north_west\" text\n);\n\nQuestion: Who is in the south-west next to Vishnu on the east, Durga on the west, and in the center of Ganapati?"
},
{
"role": "assistant",
"content": "SELECT \"south_west\" FROM \"panchayatana\" WHERE \"north_east\"='vishnu' AND \"north_west\"='durga' AND \"center\"='ganapati';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the final score of game 26?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=26;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What game was played on December 8?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"game\") FROM \"game_log\" WHERE \"date\"='december 8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the highest score for a California home game with over 10,870 in attendance?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"game_log\" WHERE \"attendance\">'10,870' AND \"home\"='california';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"carleton_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the sum of the areas for populations of 542?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"area_km_2\") FROM \"carleton_county_new_brunswick\" WHERE \"population\"=542;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"carleton_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the highest area for locations named Centreville having populations over 532?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"area_km_2\") FROM \"carleton_county_new_brunswick\" WHERE \"population\">532 AND \"official_name\"='centreville';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: what is the competition when the result is 1-1 and venue is gwangju?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"result\"='1-1' AND \"venue\"='gwangju';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: what is the date when the competition is 1998 asian games?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"competition\"='1998 asian games';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: what is the venue when the score is 1 goal and the date is october 11, 1997?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"score\"='1 goal' AND \"date\"='october 11, 1997';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: what is the competition when the result is 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"result\"='2-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: what is the result when the date is august 24, 1997?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"date\"='august 24, 1997';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: what is the venue when the date is december 7, 1998?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"date\"='december 7, 1998';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"fin_pos\" text,\n \"car_no\" text,\n \"driver\" text,\n \"team\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"laps_led\" text,\n \"points\" text\n);\n\nQuestion: Who is the driver with a time/retired of +5.2684?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"classification\" WHERE \"time_retired\"='+5.2684';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"fin_pos\" text,\n \"car_no\" text,\n \"driver\" text,\n \"team\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"laps_led\" text,\n \"points\" text\n);\n\nQuestion: What is the grid of driver tomas scheckter from vision racing team?"
},
{
"role": "assistant",
"content": "SELECT \"grid\" FROM \"classification\" WHERE \"team\"='vision racing' AND \"driver\"='tomas scheckter';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"fin_pos\" text,\n \"car_no\" text,\n \"driver\" text,\n \"team\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"laps_led\" text,\n \"points\" text\n);\n\nQuestion: What is the grid of car no. 3?"
},
{
"role": "assistant",
"content": "SELECT \"grid\" FROM \"classification\" WHERE \"car_no\"='3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"fin_pos\" text,\n \"car_no\" text,\n \"driver\" text,\n \"team\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"laps_led\" text,\n \"points\" text\n);\n\nQuestion: What is the grid with a +6.8359 time/retired?"
},
{
"role": "assistant",
"content": "SELECT \"grid\" FROM \"classification\" WHERE \"time_retired\"='+6.8359';"
}
] |
[
{
"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 \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: WHAT TEAM 1 HAS A 1st leg of 1\u20131, and a 2nd leg of 1\u20133?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"round_of_16\" WHERE \"1st_leg\"='1\u20131' AND \"2nd_leg\"='1\u20133';"
}
] |
[
{
"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 \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"round_of_16\" WHERE \"team_2\"='athletic';"
}
] |
[
{
"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 \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"round_of_16\" WHERE \"team_1\"='sporting';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Sum of cuyo selection as the opposing team?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"against\") FROM \"matches\" WHERE \"opposing_team\"='cuyo selection';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Lowest against for tour match on 21 july 1990?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"against\") FROM \"matches\" WHERE \"status\"='tour match' AND \"date\"='21 july 1990';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"computer_encoding\" (\n \"character\" text,\n \"code\" text,\n \"name\" text,\n \"version\" real,\n \"year\" real\n);\n\nQuestion: Name the lowest version with a code of u+1034a that began after 2001."
},
{
"role": "assistant",
"content": "SELECT MIN(\"version\") FROM \"computer_encoding\" WHERE \"code\"='u+1034a' AND \"year\">2001;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"computer_encoding\" (\n \"character\" text,\n \"code\" text,\n \"name\" text,\n \"version\" real,\n \"year\" real\n);\n\nQuestion: What character was the version 5.1 and had a Greek capital letter Archaic Sampi?"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"computer_encoding\" WHERE \"version\"=5.1 AND \"name\"='greek capital letter archaic sampi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"computer_encoding\" (\n \"character\" text,\n \"code\" text,\n \"name\" text,\n \"version\" real,\n \"year\" real\n);\n\nQuestion: Give the sum of the version with the coptic small letter sampi, and a year after 2005."
},
{
"role": "assistant",
"content": "SELECT SUM(\"version\") FROM \"computer_encoding\" WHERE \"name\"='coptic small letter sampi' AND \"year\">2005;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"computer_encoding\" (\n \"character\" text,\n \"code\" text,\n \"name\" text,\n \"version\" real,\n \"year\" real\n);\n\nQuestion: What is the year that has a name with the Greek small letter sampi?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"computer_encoding\" WHERE \"name\"='greek small letter sampi';"
}
] |
[
{
"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 country id Bob Rosburg from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='bob rosburg';"
}
] |
[
{
"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 country has a score of 73-72-67=212?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='73-72-67=212';"
}
] |
[
{
"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 Mike Souchak's to par?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"player\"='mike souchak';"
}
] |
[
{
"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 Mike Souchak's to par score?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"player\"='mike souchak';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What was the finish for the golfer with a total of 285?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"total\"=285;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What was the total for the golfer who had a year won of 1987?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1987';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What was the finish for the golfer with a To par of +2?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"to_par\"='+2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What was the total for the golfer who had a To par of +10 and year won of 1971?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total\") FROM \"made_the_cut\" WHERE \"to_par\"='+10' AND \"year_s_won\"='1971';"
}
] |
[
{
"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 team played before game 71 and had a score w 91\u201386 (ot)?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"game\"<71 AND \"score\"='w 91\u201386 (ot)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the high assist for game 66?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=66;"
}
] |
[
{
"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 is jos\u00e9 mar\u00eda olaz\u00e1bal's country?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_leaderboard\" WHERE \"player\"='jos\u00e9 mar\u00eda olaz\u00e1bal';"
}
] |
[
{
"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: Which Player has a Score of 74-67-74-71=286?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_leaderboard\" WHERE \"score\"='74-67-74-71=286';"
}
] |
[
{
"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: Which Place has a Country of united states, and a Player of corey pavin?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"country\"='united states' AND \"player\"='corey pavin';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" real\n);\n\nQuestion: Who is the opponent in week 15?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" real\n);\n\nQuestion: What is the highest attendance a result of W 30-7?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"result\"='w 30-7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" real\n);\n\nQuestion: What is the average attendance at week earlier than 6 on October 14, 2001?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"week\"<6 AND \"date\"='october 14, 2001';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: what is the record when the method is submission (armbar) and the round is less than 3?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (armbar)' AND \"round\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"promotion_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: How many average points did svg burgkirchen have with a loss smaller than 6?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"promotion_round\" WHERE \"name\"='svg burgkirchen' AND \"lost\"<6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"promotion_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: Who had points smaller than 22 and a drawn of 2?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"promotion_round\" WHERE \"points\"<22 AND \"drawn\"=2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"promotion_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: Who lost 2 and had a position bigger than 1?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"promotion_round\" WHERE \"lost\"=2 AND \"position\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"issued_title\" text,\n \"year\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006?"
},
{
"role": "assistant",
"content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"issued_title\"='1958 miles' AND \"label\"='sony' AND \"year\"<2006;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"issued_title\" text,\n \"year\" real,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What is the label of the Year before 1979?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"year\"<1979;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS?"
},
{
"role": "assistant",
"content": "SELECT \"2011\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='miami masters';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER STATISTICS?"
},
{
"role": "assistant",
"content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"2007\"='career statistics';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2010\"='a' AND \"2009\"='a' AND \"2011\"='q1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A?"
},
{
"role": "assistant",
"content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2012\"='2r' AND \"2011\"='1r' AND \"2007\"='a' AND \"2008\"='a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3?"
},
{
"role": "assistant",
"content": "SELECT \"2011\" FROM \"singles_performance_timeline\" WHERE \"2007\"='q3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which Score has a Place of t2?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_round\" WHERE \"place\"='t2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What was spain's score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_round\" WHERE \"country\"='spain';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: Which To par has a Score of 70-73-80-68=291?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"score\"='70-73-80-68=291';"
}
] |
[
{
"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: From what Country is T6 Place Player Tom Weiskopf?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t6' AND \"player\"='tom weiskopf';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.