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 \"classification\" (\n \"fin_pos\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: How many positions did the car with a final time of +10.8098 finish in?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"fin_pos\") FROM \"classification\" WHERE \"time_retired\"='+10.8098';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: Darren Manning finished in what position?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"fin_pos\") FROM \"classification\" WHERE \"driver\"='Darren Manning';"
}
]
|
[
{
"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\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What was the position for the Josef Kaufmann Racing team?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"career_summary\" WHERE \"team\"='Josef Kaufmann Racing';"
}
]
|
[
{
"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\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: How many poles did the player have during the Formula BMW Pacific race?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"poles\") FROM \"career_summary\" WHERE \"series\"='Formula BMW Pacific';"
}
]
|
[
{
"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\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: Which season did he have 0 points and 31st position?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"career_summary\" WHERE \"points\"=0 AND \"position\"='31st';"
}
]
|
[
{
"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\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: How many wins did the player have in the Formula BMW World Final?"
},
{
"role": "assistant",
"content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"series\"='Formula BMW World Final';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_events\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"event_1\" text,\n \"event_2\" text,\n \"event_3\" text,\n \"event_4\" text\n);\n\nQuestion: On what date was the episode aired where event 2 was Hang Tough?"
},
{
"role": "assistant",
"content": "SELECT \"air_date\" FROM \"episode_events\" WHERE \"event_2\"='Hang Tough';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_events\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"event_1\" text,\n \"event_2\" text,\n \"event_3\" text,\n \"event_4\" text\n);\n\nQuestion: When event 4 was Whiplash, what was event 2?"
},
{
"role": "assistant",
"content": "SELECT \"event_2\" FROM \"episode_events\" WHERE \"event_4\"='Whiplash';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_events\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"event_1\" text,\n \"event_2\" text,\n \"event_3\" text,\n \"event_4\" text\n);\n\nQuestion: On how many different dates was event 1 Suspension Bridge?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"air_date\") FROM \"episode_events\" WHERE \"event_1\"='Suspension Bridge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_events\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"event_1\" text,\n \"event_2\" text,\n \"event_3\" text,\n \"event_4\" text\n);\n\nQuestion: On which episode number is event 4 The Wall and event 1 the Pendulum?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode_number\") FROM \"episode_events\" WHERE \"event_4\"='The Wall' AND \"event_1\"='Pendulum';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_events\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"event_1\" text,\n \"event_2\" text,\n \"event_3\" text,\n \"event_4\" text\n);\n\nQuestion: What was event 2 when event 1 was Atlasphere?"
},
{
"role": "assistant",
"content": "SELECT \"event_2\" FROM \"episode_events\" WHERE \"event_1\"='Atlasphere';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is the car number driven by Darren Manning?"
},
{
"role": "assistant",
"content": "SELECT \"car_no\" FROM \"classification\" WHERE \"driver\"='Darren Manning';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: Which position earned 50 points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"fin_pos\") FROM \"classification\" WHERE \"points\"='50';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: How many drivers on the grid are called Vitor Meira?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"grid\") FROM \"classification\" WHERE \"driver\"='Vitor Meira';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"0_728_throw_3_times\" (\n \"1st_throw\" real,\n \"2nd_throw\" real,\n \"3rd_throw\" real,\n \"equation\" text,\n \"result\" real\n);\n\nQuestion: If the equation is 0 \u00d7 9\u00b2 + 3 \u00d7 9 + 3, what is the result?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"result\") FROM \"0_728_throw_3_times\" WHERE \"equation\"='0 \u00d7 9\u00b2 + 3 \u00d7 9 + 3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"0_728_throw_3_times\" (\n \"1st_throw\" real,\n \"2nd_throw\" real,\n \"3rd_throw\" real,\n \"equation\" text,\n \"result\" real\n);\n\nQuestion: If the equation is 6 \u00d7 9\u00b2 + 6 \u00d7 9 + 6, what is the 3rd throw?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"3rd_throw\") FROM \"0_728_throw_3_times\" WHERE \"equation\"='6 \u00d7 9\u00b2 + 6 \u00d7 9 + 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"0_728_throw_3_times\" (\n \"1st_throw\" real,\n \"2nd_throw\" real,\n \"3rd_throw\" real,\n \"equation\" text,\n \"result\" real\n);\n\nQuestion: If the equation is 8 \u00d7 9\u00b2 + 8 \u00d7 9 + 8, what is the 2nd throw?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2nd_throw\") FROM \"0_728_throw_3_times\" WHERE \"equation\"='8 \u00d7 9\u00b2 + 8 \u00d7 9 + 8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"0_728_throw_3_times\" (\n \"1st_throw\" real,\n \"2nd_throw\" real,\n \"3rd_throw\" real,\n \"equation\" text,\n \"result\" real\n);\n\nQuestion: If the equation is 1 \u00d7 9\u00b2 + 4 \u00d7 9 + 0, what is the 2nd throw?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_throw\" FROM \"0_728_throw_3_times\" WHERE \"equation\"='1 \u00d7 9\u00b2 + 4 \u00d7 9 + 0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"0_728_throw_3_times\" (\n \"1st_throw\" real,\n \"2nd_throw\" real,\n \"3rd_throw\" real,\n \"equation\" text,\n \"result\" real\n);\n\nQuestion: If the equation is 6 \u00d7 9\u00b2 + 6 \u00d7 9 + 6, what is the 2nd throw?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"2nd_throw\") FROM \"0_728_throw_3_times\" WHERE \"equation\"='6 \u00d7 9\u00b2 + 6 \u00d7 9 + 6';"
}
]
|
[
{
"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_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: When they played San Lorenzo, what was the score of the second leg?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"round_of_16\" WHERE \"team_num1\"='San Lorenzo';"
}
]
|
[
{
"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_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: When they played Universidad de Chile, what was the score of the first leg?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"1st_leg\") FROM \"round_of_16\" WHERE \"team_num2\"='Universidad de Chile';"
}
]
|
[
{
"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_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who played San Lorenzo?"
},
{
"role": "assistant",
"content": "SELECT \"team_num2\" FROM \"round_of_16\" WHERE \"team_num1\"='San Lorenzo';"
}
]
|
[
{
"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_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who played River Plate?"
},
{
"role": "assistant",
"content": "SELECT \"team_num2\" FROM \"round_of_16\" WHERE \"team_num1\"='River Plate';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What was the score on the 1st leg if the team 2 is botafogo?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"1st_leg\") FROM \"first_stage\" WHERE \"team_num2\"='Botafogo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who played against team 1 Vit\u00f3ria?"
},
{
"role": "assistant",
"content": "SELECT \"team_num2\" FROM \"first_stage\" WHERE \"team_num1\"='Vit\u00f3ria';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who played against team 1 Liverpool? "
},
{
"role": "assistant",
"content": "SELECT \"team_num2\" FROM \"first_stage\" WHERE \"team_num1\"='Liverpool';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_stage\" (\n \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What was the game's points against Team 2 Deportivo Anzo\u00e1tegui?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"first_stage\" WHERE \"team_num2\"='Deportivo Anzo\u00e1tegui';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many different items appear in the high points column when the location attendance was US Airways Center 18,422?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"location_attendance\"='US Airways Center 18,422';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the high assists on April 7?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='April 7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the score for the game played on January 25?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='January 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the record for the team on January 19?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='January 19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many times did Ron Artest (24) receive the record for high points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"game_log\" WHERE \"high_points\"='Ron Artest (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: At what location and what was the attendance when Rafer Alston (10) achieved high assists? "
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"high_assists\"='Rafer Alston (10)';"
}
]
|
[
{
"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: At what game number was the attendance at Conseco Fieldhouse 14,486?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"location_attendance\"='Conseco Fieldhouse 14,486';"
}
]
|
[
{
"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 number of the game that was played on January 19?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"date\"='January 19';"
}
]
|
[
{
"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: Name the record for verizon center 20,173"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"location_attendance\"='Verizon Center 20,173';"
}
]
|
[
{
"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: Name the date for score l 89\u201391 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='L 89\u201391 (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 team record when the team was Cleveland?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Cleveland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"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: Name the high assists for l 93\u2013103 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"score\"='L 93\u2013103 (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 date of game 21?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=21;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17289604_38\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text\n);\n\nQuestion: What were the results for round of 32 for Nicole Vaidi\u0161ov\u00e1?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_32\" FROM \"table1_17289604_38\" WHERE \"athlete\"='Nicole Vaidi\u0161ov\u00e1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17289604_38\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text\n);\n\nQuestion: How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6\u20132, 3\u20136, 5\u20137?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"athlete\") FROM \"table1_17289604_38\" WHERE \"round_of_64\"='Llagostera Vives ( ESP ) L 6\u20132, 3\u20136, 5\u20137';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17289604_38\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text\n);\n\nQuestion: What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2\u20136, 6\u20131, 7\u20135?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_16\" FROM \"table1_17289604_38\" WHERE \"round_of_32\"='Koryttseva ( UKR ) W 2\u20136, 6\u20131, 7\u20135';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17289604_38\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text\n);\n\nQuestion: What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Bene\u0161ov\u00e1?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_64\" FROM \"table1_17289604_38\" WHERE \"event\"='Singles' AND \"round_of_16\"='Did not advance' AND \"athlete\"='Iveta Bene\u0161ov\u00e1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17289604_38\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_64\" text,\n \"round_of_32\" text,\n \"round_of_16\" text,\n \"quarterfinals\" text\n);\n\nQuestion: What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6\u20134, 5\u20137, 1\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"quarterfinals\" FROM \"table1_17289604_38\" WHERE \"round_of_32\"='S Williams / V Williams ( USA ) L 6\u20134, 5\u20137, 1\u20136';"
}
]
|
[
{
"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: On what day did Dirk Nowitzki (14) have a high rebound? "
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_rebounds\"='Dirk Nowitzki (14)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: High points earned by Josh Howard (19) resulted in how many high rebounds?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"high_points\"='Josh Howard (19)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high assists while Erick Dampier (8) had the high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"high_rebounds\"='Erick Dampier (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high points while Dirk Nowitzki (13) had the high rebounds?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_rebounds\"='Dirk Nowitzki (13)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the final record for the game in which Dirk Nowitzki (19) had the high points?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='Dirk Nowitzki (19)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_doubles_11_5_6\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Which championship had the final opponents of nathalie dechy andy ram?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"mixed_doubles_11_5_6\" WHERE \"opponents_in_the_final\"='Nathalie Dechy Andy Ram';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"turkey\" (\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth\" text,\n \"price_tl\" text,\n \"every_1_gb\" text,\n \"max\" text\n);\n\nQuestion: What is the upstream speed of the network that costs 39 tl?"
},
{
"role": "assistant",
"content": "SELECT \"upstream\" FROM \"turkey\" WHERE \"price_tl\"='39 TL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"turkey\" (\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth\" text,\n \"price_tl\" text,\n \"every_1_gb\" text,\n \"max\" text\n);\n\nQuestion: How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"upstream\") FROM \"turkey\" WHERE \"downstream\"='20 Mbit/s' AND \"bandwidth\"='40 GB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"turkey\" (\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth\" text,\n \"price_tl\" text,\n \"every_1_gb\" text,\n \"max\" text\n);\n\nQuestion: What is the upstream speed that you get for 89 tl?"
},
{
"role": "assistant",
"content": "SELECT \"upstream\" FROM \"turkey\" WHERE \"price_tl\"='89 TL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"turkey\" (\n \"downstream\" text,\n \"upstream\" text,\n \"bandwidth\" text,\n \"price_tl\" text,\n \"every_1_gb\" text,\n \"max\" text\n);\n\nQuestion: What is the bandwidth for downstream of 20 mbit/s for 69 tl?"
},
{
"role": "assistant",
"content": "SELECT \"bandwidth\" FROM \"turkey\" WHERE \"downstream\"='20 Mbit/s' AND \"price_tl\"='69 TL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17302440_1\" (\n \"year\" real,\n \"west_manila\" text,\n \"east_manila\" text,\n \"consumer_price_index_2005_100\" text,\n \"west_manila_as_a_share_of_1996_real_tariff\" text,\n \"east_manila_as_a_share_of_1996_real_tariff\" text\n);\n\nQuestion: What was the year when West Manila has a tariff increase of 6.5?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"table1_17302440_1\" WHERE \"west_manila\"='6.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17302440_1\" (\n \"year\" real,\n \"west_manila\" text,\n \"east_manila\" text,\n \"consumer_price_index_2005_100\" text,\n \"west_manila_as_a_share_of_1996_real_tariff\" text,\n \"east_manila_as_a_share_of_1996_real_tariff\" text\n);\n\nQuestion: What was East Manila's share of 1996 real tariff when its Consumer Price Index is 119.4?"
},
{
"role": "assistant",
"content": "SELECT \"east_manila_as_a_share_of_1996_real_tariff\" FROM \"table1_17302440_1\" WHERE \"consumer_price_index_2005_100\"='119.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17302440_1\" (\n \"year\" real,\n \"west_manila\" text,\n \"east_manila\" text,\n \"consumer_price_index_2005_100\" text,\n \"west_manila_as_a_share_of_1996_real_tariff\" text,\n \"east_manila_as_a_share_of_1996_real_tariff\" text\n);\n\nQuestion: What was West Manila's tariff increase when its CPI is 60.6?"
},
{
"role": "assistant",
"content": "SELECT \"west_manila\" FROM \"table1_17302440_1\" WHERE \"consumer_price_index_2005_100\"='60.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17302440_1\" (\n \"year\" real,\n \"west_manila\" text,\n \"east_manila\" text,\n \"consumer_price_index_2005_100\" text,\n \"west_manila_as_a_share_of_1996_real_tariff\" text,\n \"east_manila_as_a_share_of_1996_real_tariff\" text\n);\n\nQuestion: What was West Manila's tariff increase when its CPI is 119.4?"
},
{
"role": "assistant",
"content": "SELECT \"west_manila\" FROM \"table1_17302440_1\" WHERE \"consumer_price_index_2005_100\"='119.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17302440_1\" (\n \"year\" real,\n \"west_manila\" text,\n \"east_manila\" text,\n \"consumer_price_index_2005_100\" text,\n \"west_manila_as_a_share_of_1996_real_tariff\" text,\n \"east_manila_as_a_share_of_1996_real_tariff\" text\n);\n\nQuestion: What was the CPI of West Manila when its share of 1996 real tariff is 189%?"
},
{
"role": "assistant",
"content": "SELECT \"consumer_price_index_2005_100\" FROM \"table1_17302440_1\" WHERE \"west_manila_as_a_share_of_1996_real_tariff\"='189%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17302440_1\" (\n \"year\" real,\n \"west_manila\" text,\n \"east_manila\" text,\n \"consumer_price_index_2005_100\" text,\n \"west_manila_as_a_share_of_1996_real_tariff\" text,\n \"east_manila_as_a_share_of_1996_real_tariff\" text\n);\n\nQuestion: What was West Manila's share of 1996 real tariff when it CPI was 92.9?"
},
{
"role": "assistant",
"content": "SELECT \"west_manila_as_a_share_of_1996_real_tariff\" FROM \"table1_17302440_1\" WHERE \"consumer_price_index_2005_100\"='92.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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: Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"regular_season\" WHERE \"opponent\"='Cincinnati Bengals';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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: When did the Broncos play the Miami Dolphins?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"opponent\"='Miami Dolphins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\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: In the game with an attendance of 18304, what was the final score?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"regular_season\" WHERE \"attendance\"=18304;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: How many pressure figures are given for the .380 acp cartridge?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"max_pressure\") FROM \"38_comparisons\" WHERE \"cartridge\"='.380 ACP';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the max pressure of the cartridge where the muzzle energy is 201ft\u2022lbf (273 j)?"
},
{
"role": "assistant",
"content": "SELECT \"max_pressure\" FROM \"38_comparisons\" WHERE \"muzzle_energy\"='201ft\u2022lbf (273 J)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the max pressure of the .38 long colt cartridge?"
},
{
"role": "assistant",
"content": "SELECT \"max_pressure\" FROM \"38_comparisons\" WHERE \"cartridge\"='.38 Long Colt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the bullet weight when the max pressure is 12,000 cup?"
},
{
"role": "assistant",
"content": "SELECT \"bullet_weight\" FROM \"38_comparisons\" WHERE \"max_pressure\"='12,000 CUP';"
}
]
|
[
{
"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 are the scores made by Charlotte team"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='Charlotte';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who made highest assists when high rebounds was Al Horford (17)"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"high_rebounds\"='Al Horford (17)';"
}
]
|
[
{
"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: Give the score when high rebounds was zaza pachulia (8)"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_rebounds\"='Zaza Pachulia (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"season\" text,\n \"games\" real,\n \"gs\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"blocks\" text,\n \"steals\" text,\n \"turnovers\" text\n);\n\nQuestion: Name the gs for points being 12.1"
},
{
"role": "assistant",
"content": "SELECT \"gs\" FROM \"external_links\" WHERE \"points\"='12.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"season\" text,\n \"games\" real,\n \"gs\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"blocks\" text,\n \"steals\" text,\n \"turnovers\" text\n);\n\nQuestion: Name the assists for 157 games"
},
{
"role": "assistant",
"content": "SELECT \"assists\" FROM \"external_links\" WHERE \"games\"=157;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"season\" text,\n \"games\" real,\n \"gs\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"blocks\" text,\n \"steals\" text,\n \"turnovers\" text\n);\n\nQuestion: Name the steals for season 2007/2008"
},
{
"role": "assistant",
"content": "SELECT \"steals\" FROM \"external_links\" WHERE \"season\"='2007/2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"season\" text,\n \"games\" real,\n \"gs\" real,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"blocks\" text,\n \"steals\" text,\n \"turnovers\" text\n);\n\nQuestion: Name the total number of assists for 77 blocks"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"assists\") FROM \"external_links\" WHERE \"blocks\"='77';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When mike bibby (8) had the highest amount of assists what is the record?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_assists\"='Mike Bibby (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When mike bibby (9) has the highest amount of assists what is the location and attendance?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"high_assists\"='Mike Bibby (9)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the team played on January 23?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='January 23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Where was the game held and what was the attendance when they played Orlando?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Orlando';"
}
]
|
[
{
"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: In what game did Miami play Charlotte? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"game_log\" WHERE \"team\"='Charlotte';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high points on February 6?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='February 6';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is the highest number of laps led with 16 points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"laps_led\") FROM \"classification\" WHERE \"points\"='16';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: How many drivers were there for Samax Motorsport?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"driver\") FROM \"classification\" WHERE \"team\"='SAMAX Motorsport';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is the team whose driver Jeff Simmons?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"classification\" WHERE \"driver\"='Jeff Simmons';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: How many drivers where there when the time/retired +3 laps and points were 24?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"driver\") FROM \"classification\" WHERE \"time_retired\"='+3 Laps' AND \"points\"='24';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: What is the highest number of laps for Darren Manning?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"laps\") FROM \"classification\" WHERE \"driver\"='Darren Manning';"
}
]
|
[
{
"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\" real,\n \"car_no\" real,\n \"driver\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"laps_led\" real,\n \"points\" text\n);\n\nQuestion: How many car numbers were recorded when the time/retired is +4.0019?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"car_no\") FROM \"classification\" WHERE \"time_retired\"='+4.0019';"
}
]
|
[
{
"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 number was played on January 28?"
},
{
"role": "assistant",
"content": "SELECT \"game\" FROM \"game_log\" WHERE \"date\"='January 28';"
}
]
|
[
{
"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 amount of points on February 11?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='February 11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who has the most assists on Denver?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"team\"='Denver';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17322817_10\" (\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: Name the location attendance for april 13"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"table1_17322817_10\" WHERE \"date\"='April 13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17322817_10\" (\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: Name the location attendance for april 5"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"table1_17322817_10\" WHERE \"date\"='April 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high points on December 17?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='December 17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many scores are listed for the game against Houston"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"team\"='Houston';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the location and attendance of the game when High Assists were Andre Miller (7)?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"high_assists\"='Andre Miller (7)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the High Assist in game 1?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the High Assist when the High Rebounds was andre iguodala (8)?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"high_rebounds\"='Andre Iguodala (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the W-L record when HIgh Points was andre miller (30)?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='Andre Miller (30)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score and game outcome when High Points was andre miller (17)?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"high_points\"='Andre Miller (17)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games was High Points andre iguodala (29)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"game_log\" WHERE \"high_points\"='Andre Iguodala (29)';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.