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 \"standings\" (\n \"province\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: When the blank ends at 1, what is the PA?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pa\") FROM \"standings\" WHERE \"blank_ends\"=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: How many times did the team play charlotte?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") 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: What day did the team play charlotte?"
},
{
"role": "assistant",
"content": "SELECT \"date\" 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: When was the game with score l 99\u2013107 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='L 99\u2013107 (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: Where was the game with record 20\u201323 and how many people attended it"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='20\u201323';"
}
]
|
[
{
"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 scored highest rebounds high points is charlie villanueva (32)"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_points\"='Charlie Villanueva (32)';"
}
]
|
[
{
"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 of game 46"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=46;"
}
]
|
[
{
"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 scored the high points on the date November 2?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='November 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: In how many locations did Game 13 take place?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"game\"=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: Where was the game that took place in November 21 located and how many attended?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='November 21';"
}
]
|
[
{
"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 reobounds for april 7"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" 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: How many games was game 43?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"game_log\" WHERE \"game\"=43;"
}
]
|
[
{
"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 total number of high rebounds for february 10"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"date\"='February 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: Name the record for december 6"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='December 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the final score in game 38?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=38;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the Trail Blazers play on January 2?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='January 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17058226_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: On how many dates did the Timberwolves play Phoenix? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"table1_17058226_10\" WHERE \"team\"='Phoenix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17058226_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: What was the Timberwolves' record on April 3? "
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"table1_17058226_10\" WHERE \"date\"='April 3';"
}
]
|
[
{
"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 are all of Utah's games held and how many have attended?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Utah';"
}
]
|
[
{
"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 performed all the high rebounds when craig smith (4) was the lead for high assists?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_assists\"='Craig Smith (4)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had all the high rebounds when kevin love (20) scored the highest points?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_points\"='Kevin Love (20)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What opposing team was playing when sebastian telfair (7) had the highest assists?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"high_assists\"='Sebastian Telfair (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: Name the score for january 26"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='January 26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who did the high points in the game played on April 12?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='April 12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"no\" real,\n \"driver\" text,\n \"constructor\" text,\n \"q1_order\" real,\n \"q1_time\" text,\n \"q1_pos\" real,\n \"q1_q2_time\" text\n);\n\nQuestion: What is the constructor when the Q1 order is 4?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"qualifying\" WHERE \"q1_order\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"no\" real,\n \"driver\" text,\n \"constructor\" text,\n \"q1_order\" real,\n \"q1_time\" text,\n \"q1_pos\" real,\n \"q1_q2_time\" text\n);\n\nQuestion: What is the Q1 order for Felipe Massa?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"q1_order\") FROM \"qualifying\" WHERE \"driver\"='Felipe Massa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"no\" real,\n \"driver\" text,\n \"constructor\" text,\n \"q1_order\" real,\n \"q1_time\" text,\n \"q1_pos\" real,\n \"q1_q2_time\" text\n);\n\nQuestion: What is the Q1 time for the driver with Q1 order of 6?"
},
{
"role": "assistant",
"content": "SELECT \"q1_time\" FROM \"qualifying\" WHERE \"q1_order\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualifying\" (\n \"pos\" text,\n \"no\" real,\n \"driver\" text,\n \"constructor\" text,\n \"q1_order\" real,\n \"q1_time\" text,\n \"q1_pos\" real,\n \"q1_q2_time\" text\n);\n\nQuestion: How many Q1 figures are given for Alexander Wurz?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"q1_order\") FROM \"qualifying\" WHERE \"driver\"='Alexander Wurz';"
}
]
|
[
{
"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 all had the most assists in game 12?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"game\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Which position offers winnings of $4,228,889?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nascar_sprint_cup_series\" WHERE \"winnings\"='$4,228,889';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many poles did team #14 ginn racing have?"
},
{
"role": "assistant",
"content": "SELECT \"poles\" FROM \"nascar_sprint_cup_series\" WHERE \"team_s\"='#14 Ginn Racing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: When the poles are 0 and the position is 14th, how much are the winnings?"
},
{
"role": "assistant",
"content": "SELECT \"winnings\" FROM \"nascar_sprint_cup_series\" WHERE \"poles\"=0 AND \"position\"='14th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Which start won $1,301,370?"
},
{
"role": "assistant",
"content": "SELECT \"starts\" FROM \"nascar_sprint_cup_series\" WHERE \"winnings\"='$1,301,370';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"top_5\") FROM \"nascar_sprint_cup_series\" WHERE \"top_10\"=5 AND \"team_s\"='#40 Chip Ganassi Racing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: what is the posisiotn where the start is 3?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nascar_nationwide_series\" WHERE \"starts\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_nationwide_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: what is the team where winnings is $81,690?"
},
{
"role": "assistant",
"content": "SELECT \"team_s\" FROM \"nascar_nationwide_series\" WHERE \"winnings\"='$81,690';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the attendance of the Indiana game?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Indiana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triathlon\" (\n \"athlete\" text,\n \"event\" text,\n \"swim_1_5km\" text,\n \"trans_1\" text,\n \"bike_40km\" text,\n \"trans_2\" text,\n \"run_10km\" text,\n \"total_time\" text,\n \"rank\" real\n);\n\nQuestion: What is the trans 2 duration if the biking stage is covered within 58:20?"
},
{
"role": "assistant",
"content": "SELECT \"trans_2\" FROM \"triathlon\" WHERE \"bike_40km\"='58:20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triathlon\" (\n \"athlete\" text,\n \"event\" text,\n \"swim_1_5km\" text,\n \"trans_1\" text,\n \"bike_40km\" text,\n \"trans_2\" text,\n \"run_10km\" text,\n \"total_time\" text,\n \"rank\" real\n);\n\nQuestion: What is the trans 2 duration if the total time is 1:51:19.45?"
},
{
"role": "assistant",
"content": "SELECT \"trans_2\" FROM \"triathlon\" WHERE \"total_time\"='1:51:19.45';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triathlon\" (\n \"athlete\" text,\n \"event\" text,\n \"swim_1_5km\" text,\n \"trans_1\" text,\n \"bike_40km\" text,\n \"trans_2\" text,\n \"run_10km\" text,\n \"total_time\" text,\n \"rank\" real\n);\n\nQuestion: What was the duration of Daniela Ryf's swimming stage?"
},
{
"role": "assistant",
"content": "SELECT \"swim_1_5km\" FROM \"triathlon\" WHERE \"athlete\"='Daniela Ryf';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triathlon\" (\n \"athlete\" text,\n \"event\" text,\n \"swim_1_5km\" text,\n \"trans_1\" text,\n \"bike_40km\" text,\n \"trans_2\" text,\n \"run_10km\" text,\n \"total_time\" text,\n \"rank\" real\n);\n\nQuestion: How many athletes completed a trans 1 within 0:26?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"athlete\") FROM \"triathlon\" WHERE \"trans_1\"='0:26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"triathlon\" (\n \"athlete\" text,\n \"event\" text,\n \"swim_1_5km\" text,\n \"trans_1\" text,\n \"bike_40km\" text,\n \"trans_2\" text,\n \"run_10km\" text,\n \"total_time\" text,\n \"rank\" real\n);\n\nQuestion: Who was the athlete that covered biking within 58:52?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"triathlon\" WHERE \"bike_40km\"='58:52';"
}
]
|
[
{
"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: All high points are team new york."
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"team\"='New York';"
}
]
|
[
{
"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: February 12 is the date for all location attendance."
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='February 12';"
}
]
|
[
{
"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: 54 is the game where location attendance are."
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=54;"
}
]
|
[
{
"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: All high points were record by corey maggette (25)."
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='Corey Maggette (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 total number of attendance where the date is december 29?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"game_log\" WHERE \"date\"='December 29';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the manner in which Petrik Sander departed?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Petrik Sander';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"team\"='Stuttgarter Kickers' AND \"outgoing_manager\"='Edgar Schmitt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the date of appointment when J\u00fcrgen Kohler was the outgoing manager?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='J\u00fcrgen Kohler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How many appointment dates were recorded when J\u00fcrgen Kohler was the replaced by?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date_of_appointment\") FROM \"managerial_changes\" WHERE \"replaced_by\"='J\u00fcrgen Kohler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_score\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What are the swimsuit scores of participants with score 9.366 in interview"
},
{
"role": "assistant",
"content": "SELECT \"swimsuit\" FROM \"final_competition_score\" WHERE \"interview\"='9.366';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_score\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: State average scores of participants from arizona"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"final_competition_score\" WHERE \"country\"='Arizona';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_score\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: Number of participants with a score 8.895 in preliminary"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"interview\") FROM \"final_competition_score\" WHERE \"preliminary\"='8.895';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_score\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: Evening gown scores of participants with 8.988 swimsuit score"
},
{
"role": "assistant",
"content": "SELECT \"evening_gown\" FROM \"final_competition_score\" WHERE \"swimsuit\"='8.988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_score\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What are the average scores of participants with 9.226 in evening gown "
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"final_competition_score\" WHERE \"evening_gown\"='9.226';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_score\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: Give swimsuit scores of participants 8.847 in preliminary"
},
{
"role": "assistant",
"content": "SELECT \"swimsuit\" FROM \"final_competition_score\" WHERE \"preliminary\"='8.847';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" text,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the official name of the land with an area of 276.84 km2?"
},
{
"role": "assistant",
"content": "SELECT \"official_name\" FROM \"albert_county_new_brunswick\" WHERE \"area_km_2\"='276.84';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" text,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the total number of population in the land with an area of 149.32 km2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population\") FROM \"albert_county_new_brunswick\" WHERE \"area_km_2\"='149.32';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" text,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the maximum population of the land with an area of 276.84 km2?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population\") FROM \"albert_county_new_brunswick\" WHERE \"area_km_2\"='276.84';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" text,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the land area of Hopewell parish in km2?"
},
{
"role": "assistant",
"content": "SELECT \"area_km_2\" FROM \"albert_county_new_brunswick\" WHERE \"official_name\"='Hopewell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1708610_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: Name the march 27-29 for november 3 being 133"
},
{
"role": "assistant",
"content": "SELECT \"march_27_29\" FROM \"table1_1708610_3\" WHERE \"november_3\"='133';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1708610_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: Name march 27-29 where january 15-16 is january 15, 1991"
},
{
"role": "assistant",
"content": "SELECT \"march_27_29\" FROM \"table1_1708610_3\" WHERE \"january_15_16\"='January 15, 1991';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1708610_3\" (\n \"june_10_11\" text,\n \"march_27_29\" text,\n \"january_15_16\" text,\n \"november_3\" text,\n \"august_21_22\" text\n);\n\nQuestion: Name the january 15-16 where march 27-29 where march 29, 2006"
},
{
"role": "assistant",
"content": "SELECT \"january_15_16\" FROM \"table1_1708610_3\" WHERE \"march_27_29\"='March 29, 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17102076_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 number of location attendance for l 141\u2013143 (ot)"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"table1_17102076_10\" WHERE \"score\"='L 141\u2013143 (OT)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17102076_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 record for april 1"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"table1_17102076_10\" WHERE \"date\"='April 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17102076_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 high assists for score being l 98\u2013118 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"table1_17102076_10\" WHERE \"score\"='L 98\u2013118 (OT)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17102076_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 least game for arco arena 13,330"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"table1_17102076_10\" WHERE \"location_attendance\"='ARCO Arena 13,330';"
}
]
|
[
{
"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 rebounds for game 11"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"game\"=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: Name the high points for score being l 92\u2013100 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"score\"='L 92\u2013100 (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: Name the team for arco arena 13,685"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"location_attendance\"='ARCO Arena 13,685';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score of game 35?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=35;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 score of 65-72"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"score\"='65-72';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 july 18"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='July 18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 number of high assists for july 1"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_assists\") FROM \"regular_season\" WHERE \"date\"='July 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 score when game is 19"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"game\"=19;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17103566_1\" (\n \"match_number\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What is the result when team 1 is ICL Pakistan?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"table1_17103566_1\" WHERE \"team_1\"='ICL Pakistan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17103566_1\" (\n \"match_number\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What is the match number where the result is ICL World by 8 wickets?"
},
{
"role": "assistant",
"content": "SELECT \"match_number\" FROM \"table1_17103566_1\" WHERE \"result\"='ICL World by 8 wickets';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17103566_1\" (\n \"match_number\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: What is team 2 where the result is ICL world by 8 wickets?"
},
{
"role": "assistant",
"content": "SELECT \"team_2\" FROM \"table1_17103566_1\" WHERE \"result\"='ICL World by 8 wickets';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17103566_1\" (\n \"match_number\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: Who is man of the match when Team 1 is ICL Pakistan?"
},
{
"role": "assistant",
"content": "SELECT \"man_of_the_match\" FROM \"table1_17103566_1\" WHERE \"team_1\"='ICL Pakistan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17103566_1\" (\n \"match_number\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: How many dates have a Match number of 5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"table1_17103566_1\" WHERE \"match_number\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_17103566_1\" (\n \"match_number\" real,\n \"date\" text,\n \"venue\" text,\n \"team_1\" text,\n \"team_2\" text,\n \"result\" text,\n \"man_of_the_match\" text\n);\n\nQuestion: Who is man of the match for match number 5?"
},
{
"role": "assistant",
"content": "SELECT \"man_of_the_match\" FROM \"table1_17103566_1\" WHERE \"match_number\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: With a score of 68-85, what is the location and attendance?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"score\"='68-85';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 of 64-74"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"score\"='64-74';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 score for game for 25"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"game\"=25;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 attendance location of palace of auburn hills 15,210"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"location_attendance\"='Palace of Auburn Hills 15,210';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 rebounds for score of 64-74"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"regular_season\" WHERE \"score\"='64-74';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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: Namethe score for july 16"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"date\"='July 16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moves_played_compared_with_computer_choi\" (\n \"position\" real,\n \"best_year\" text,\n \"best_2_year_period\" text,\n \"best_3_year_period\" text,\n \"best_5_year_period\" text,\n \"best_10_year_period\" text,\n \"best_15_year_period\" text\n);\n\nQuestion: Which people had the best 10-year period when Fischer had best 15-year period?"
},
{
"role": "assistant",
"content": "SELECT \"best_10_year_period\" FROM \"moves_played_compared_with_computer_choi\" WHERE \"best_15_year_period\"='Fischer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moves_played_compared_with_computer_choi\" (\n \"position\" real,\n \"best_year\" text,\n \"best_2_year_period\" text,\n \"best_3_year_period\" text,\n \"best_5_year_period\" text,\n \"best_10_year_period\" text,\n \"best_15_year_period\" text\n);\n\nQuestion: Which people had the best 10-year period when Capablanca had the best 15-year period?"
},
{
"role": "assistant",
"content": "SELECT \"best_10_year_period\" FROM \"moves_played_compared_with_computer_choi\" WHERE \"best_15_year_period\"='Capablanca';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 june 7"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='June 7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 the score of w 83-69"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"score\"='W 83-69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 score of w 76-67"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"score\"='W 76-67';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 for games played on september 9?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"date\"='September 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 \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score of the game played when the team was 16-17?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"record\"='16-17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" 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 where did the team play game number 32?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"regular_season\" WHERE \"game\"=32;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chessmetrics\" (\n \"rank\" real,\n \"1_year_peak\" text,\n \"5_year_peak\" text,\n \"10_year_peak\" text,\n \"15_year_peak\" text,\n \"20_year_peak\" text\n);\n\nQuestion: What is every 5-year peek with a when Anatoly Karpov, 2820 is 15-year peak?"
},
{
"role": "assistant",
"content": "SELECT \"5_year_peak\" FROM \"chessmetrics\" WHERE \"15_year_peak\"='Anatoly Karpov, 2820';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chessmetrics\" (\n \"rank\" real,\n \"1_year_peak\" text,\n \"5_year_peak\" text,\n \"10_year_peak\" text,\n \"15_year_peak\" text,\n \"20_year_peak\" text\n);\n\nQuestion: What is the highest rank when Garry Kasparov, 2879 is the 1-year peak?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"chessmetrics\" WHERE \"1_year_peak\"='Garry Kasparov, 2879';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chessmetrics\" (\n \"rank\" real,\n \"1_year_peak\" text,\n \"5_year_peak\" text,\n \"10_year_peak\" text,\n \"15_year_peak\" text,\n \"20_year_peak\" text\n);\n\nQuestion: What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?"
},
{
"role": "assistant",
"content": "SELECT \"5_year_peak\" FROM \"chessmetrics\" WHERE \"10_year_peak\"='Emanuel Lasker, 2847';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chessmetrics\" (\n \"rank\" real,\n \"1_year_peak\" text,\n \"5_year_peak\" text,\n \"10_year_peak\" text,\n \"15_year_peak\" text,\n \"20_year_peak\" text\n);\n\nQuestion: What is the highest rank when Anatoly Karpov, 2820 is the 15-year peak?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"chessmetrics\" WHERE \"15_year_peak\"='Anatoly Karpov, 2820';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.