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 \"table1_228439_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: What district is Samuel A. Bridges ( D ) assigned to as a successor?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"table1_228439_4\" WHERE \"successor\"='Samuel A. Bridges ( D )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228439_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: what was the reason Richard K. Meade ( d ) became a successor?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_228439_4\" WHERE \"successor\"='Richard K. Meade ( D )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228439_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Who is the successor for massachusetts 8th?"
},
{
"role": "assistant",
"content": "SELECT \"successor\" FROM \"table1_228439_4\" WHERE \"district\"='Massachusetts 8th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"cards_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the opponent for 11-1"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='11-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"cards_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the record for kentucky"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='Kentucky';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_15_8_titles_7_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who is the opponent in the match with final score 3\u20136, 4\u20136, 7\u20135, 4\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_the_final\" FROM \"singles_15_8_titles_7_runner_ups\" WHERE \"score_in_the_final\"='3\u20136, 4\u20136, 7\u20135, 4\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_15_8_titles_7_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the outcome of the match with score 4\u20136, 3\u20136, 2\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_15_8_titles_7_runner_ups\" WHERE \"score_in_the_final\"='4\u20136, 3\u20136, 2\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_15_8_titles_7_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What is the most recent year where the final score is 4\u20136, 3\u20136, 6\u20134, 5\u20137?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"singles_15_8_titles_7_runner_ups\" WHERE \"score_in_the_final\"='4\u20136, 3\u20136, 6\u20134, 5\u20137';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_15_8_titles_7_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What championship had a final score of 6\u20134, 6\u20132, 6\u20132?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"singles_15_8_titles_7_runner_ups\" WHERE \"score_in_the_final\"='6\u20134, 6\u20132, 6\u20132';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: If the year is 2007, what is the top ten?"
},
{
"role": "assistant",
"content": "SELECT \"top_10s\" FROM \"lpga_tour_career_summary\" WHERE \"year\"=2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: What is the possible maximum money list rank?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"money_list_rank\") FROM \"lpga_tour_career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lpga_tour_career_summary\" (\n \"year\" real,\n \"tournaments_played\" real,\n \"cuts_made\" real,\n \"wins\" real,\n \"2nd\" real,\n \"top_10s\" real,\n \"best_finish\" text,\n \"earnings\" real,\n \"money_list_rank\" real,\n \"scoring_average\" text,\n \"scoring_rank\" real\n);\n\nQuestion: If the scoring average is 72.46, what is the best finish?"
},
{
"role": "assistant",
"content": "SELECT \"best_finish\" FROM \"lpga_tour_career_summary\" WHERE \"scoring_average\"='72.46';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_14\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: Name the result for wesley moodie"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"singles_14\" WHERE \"opponent\"='Wesley Moodie';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_14\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: Name the surface against monaco"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_14\" WHERE \"against\"='Monaco';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_14\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: Name the result for alexander shvec"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"singles_14\" WHERE \"opponent\"='Alexander Shvec';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_14\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: Name the opponent for 3\u20136, 4\u20136, 6\u20131, 6\u20137 (7\u20139)"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_14\" WHERE \"result\"='3\u20136, 4\u20136, 6\u20131, 6\u20137 (7\u20139)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22854436_1\" (\n \"administrative_region\" text,\n \"population_2002_census_data\" real,\n \"surface_km_2\" real,\n \"main_rivers\" text,\n \"average_annual_rainfall_mm\" text,\n \"average_annual_runoff_mm\" text,\n \"per_capita_average_annual_renewable_water_resources_m_3\" real\n);\n\nQuestion: Name the annual rainfail for 2002 population being 493984"
},
{
"role": "assistant",
"content": "SELECT \"average_annual_rainfall_mm\" FROM \"table1_22854436_1\" WHERE \"population_2002_census_data\"=493984;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22854436_1\" (\n \"administrative_region\" text,\n \"population_2002_census_data\" real,\n \"surface_km_2\" real,\n \"main_rivers\" text,\n \"average_annual_rainfall_mm\" text,\n \"average_annual_runoff_mm\" text,\n \"per_capita_average_annual_renewable_water_resources_m_3\" real\n);\n\nQuestion: Name the most population 2002"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_2002_census_data\") FROM \"table1_22854436_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22854436_1\" (\n \"administrative_region\" text,\n \"population_2002_census_data\" real,\n \"surface_km_2\" real,\n \"main_rivers\" text,\n \"average_annual_rainfall_mm\" text,\n \"average_annual_runoff_mm\" text,\n \"per_capita_average_annual_renewable_water_resources_m_3\" real\n);\n\nQuestion: Name the total water resources m3 for rainfall being 650"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"per_capita_average_annual_renewable_water_resources_m_3\") FROM \"table1_22854436_1\" WHERE \"average_annual_rainfall_mm\"='650';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_singles_statistics\" (\n \"year\" real,\n \"tournaments\" real,\n \"titles\" real,\n \"hardcourt_w_l\" text,\n \"clay_w_l\" text,\n \"grass_w_l\" text,\n \"carpet_w_l\" text,\n \"overall_w_l\" text,\n \"win_pct\" text,\n \"year_end_ranking\" text\n);\n\nQuestion: What were the carpet w-l in 1993?"
},
{
"role": "assistant",
"content": "SELECT \"carpet_w_l\" FROM \"career_singles_statistics\" WHERE \"year\"=1993;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_7_finals_3_titles_4_runner_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What is the amount of US open runner-up score?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"score_in_final\") FROM \"grand_slam_7_finals_3_titles_4_runner_up\" WHERE \"championship\"='US Open' AND \"outcome\"='Runner-up';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_7_finals_3_titles_4_runner_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What is the year where the runner-up outcome was at its basic minimum?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"grand_slam_7_finals_3_titles_4_runner_up\" WHERE \"outcome\"='Runner-up';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_7_finals_3_titles_4_runner_up\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: How many championships have there been with Steffi Graf?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"grand_slam_7_finals_3_titles_4_runner_up\" WHERE \"opponent_in_final\"='Steffi Graf';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_37_31_6\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: How many opponents have wimbledon (2) as the championship?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"opponents\") FROM \"doubles_37_31_6\" WHERE \"championship\"='Wimbledon (2)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_37_31_6\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the surface when the us open is the championship in the year 1979?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"doubles_37_31_6\" WHERE \"championship\"='US Open' AND \"year\"=1979;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: What is the game number that was on November 27? "
},
{
"role": "assistant",
"content": "SELECT \"num\" FROM \"game_log\" WHERE \"date\"='November 27';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: What was the score when the team was @ New Jersey? "
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='@ New Jersey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: How many high rebound catagories are listed for game number 5? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"num\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"terps_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Who were the opponents when the record was 11-2?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"season_schedule\" WHERE \"record\"='11-2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"terps_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: What were the records when the opponents had 50 points?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"season_schedule\" WHERE \"opp_points\"=50;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"terps_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: What are the terps points for the nov. 25/05 game?"
},
{
"role": "assistant",
"content": "SELECT \"terps_points\" FROM \"season_schedule\" WHERE \"date\"='Nov. 25/05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"terps_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Where were games played when the record was 9-1?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"season_schedule\" WHERE \"record\"='9-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"terps_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: What is the highest number of terps points in games where the opponent made 53 points?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"terps_points\") FROM \"season_schedule\" WHERE \"opp_points\"=53;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"terps_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Where was the game on jan. 16/06 played?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"season_schedule\" WHERE \"date\"='Jan. 16/06';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"arena_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the high points for 21-45 record"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"record\"='21-45';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"arena_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the visitor for march 23"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"game_log\" WHERE \"date\"='March 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 \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"arena_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the high rebounds for td garden 18,624"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"arena_attendance\"='TD Garden 18,624';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"arena_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the record for march 16"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='March 16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the total number for score l 110-112"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num\") FROM \"game_log\" WHERE \"score\"='L 110-112';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the team for w 125-115 score"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"score\"='W 125-115';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"record\" text\n);\n\nQuestion: Name the high assists for american airlines center 19,585"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"location_attendance\"='American Airlines Center 19,585';"
}
]
|
[
{
"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 \"series\" text\n);\n\nQuestion: Who has the high points when 3-2 is the series?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"series\"='3-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 \"series\" text\n);\n\nQuestion: Who has the high assists when 0-1 is the series?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"series\"='0-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 \"series\" text\n);\n\nQuestion: How many high rebounds are in series 3-3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"series\"='3-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 \"series\" text\n);\n\nQuestion: How many games are on the date of April 30?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"date\"='April 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: Who did the high points in the game played on December 18?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='December 18';"
}
]
|
[
{
"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 December 2?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='December 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What's the record of the game in which Carlos Delfino (17) did the most high points?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_points\"='Carlos Delfino (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: Who did the high rebounds in the game in which Brandon Jennings (8) did the high assists?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"high_assists\"='Brandon Jennings (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"field_goals\" text,\n \"three_pointers\" text,\n \"free_throws\" text,\n \"assists\" real,\n \"steals\" real,\n \"rebounds\" text,\n \"points\" text\n);\n\nQuestion: Which player has 18-50 .360 field goals?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"player_stats\" WHERE \"field_goals\"='18-50 .360';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"field_goals\" text,\n \"three_pointers\" text,\n \"free_throws\" text,\n \"assists\" real,\n \"steals\" real,\n \"rebounds\" text,\n \"points\" text\n);\n\nQuestion: What is the most assists for points 129-3.9?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"assists\") FROM \"player_stats\" WHERE \"points\"='129-3.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"field_goals\" text,\n \"three_pointers\" text,\n \"free_throws\" text,\n \"assists\" real,\n \"steals\" real,\n \"rebounds\" text,\n \"points\" text\n);\n\nQuestion: Which player has 18-50 .360 field goals?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"player_stats\" WHERE \"field_goals\"='18-50 .360';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"irish_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the date for irish points being 89"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"irish_points\"=89;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"irish_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the number of location for 22-1"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"schedule\" WHERE \"record\"='22-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"irish_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the opponent for 2-27-10"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='2-27-10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"irish_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the max irish points for eastern michigan"
},
{
"role": "assistant",
"content": "SELECT MAX(\"irish_points\") FROM \"schedule\" WHERE \"opponent\"='Eastern Michigan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"irish_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the irish points for 23-1 record"
},
{
"role": "assistant",
"content": "SELECT \"irish_points\" FROM \"schedule\" WHERE \"record\"='23-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 \"series\" text\n);\n\nQuestion: Name the number of high rebounds for l 92\u201396 (ot)"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"score\"='L 92\u201396 (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 ist he date of game 29?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"game\"=29;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: what is the location attendance for game 27?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=27;"
}
]
|
[
{
"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 high rebounds for minnesota?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_rebounds\") FROM \"game_log\" WHERE \"team\"='Minnesota';"
}
]
|
[
{
"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 were the high rebounds on April 4?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='April 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score when the game was 80?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=80;"
}
]
|
[
{
"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 date was the record 11-67?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='11-67';"
}
]
|
[
{
"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 high rebounds were there on April 7?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"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: What was the high points when rebounds were Terrence Williams (8)?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"high_rebounds\"='Terrence Williams (8)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When the record was 2-29 who had the most assists?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"record\"='2-29';"
}
]
|
[
{
"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 we played Houston who had the most points?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" 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: Name the number of high points for ford center"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"location_attendance\"='Ford Center';"
}
]
|
[
{
"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 american airlines center"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"location_attendance\"='American Airlines Center';"
}
]
|
[
{
"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 l 90\u2013100 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='L 90\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 location attendance for l 83\u2013106 (ot)"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"score\"='L 83\u2013106 (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 score for 49-31"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='49-31';"
}
]
|
[
{
"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 location attendance for minnesota"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Minnesota';"
}
]
|
[
{
"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 location had a record of 20-12, and how many people attended?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='20-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: What was the total score for january 18?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"score\") FROM \"game_log\" WHERE \"date\"='January 18';"
}
]
|
[
{
"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 game 41 held, and how many people attended?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"=41;"
}
]
|
[
{
"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 for the record 23-13?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='23-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 high point for January 20?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='January 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 was the location and how many attended when Golden State played? "
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='Golden State';"
}
]
|
[
{
"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 highest game number where the team was Cleveland? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") 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 \"australian_ratings\" (\n \"order\" real,\n \"episode\" text,\n \"original_airdate\" text,\n \"timeslot\" text,\n \"viewers_100000s\" text,\n \"nightly_rank\" real,\n \"weekly_rank\" real\n);\n\nQuestion: What is the highest numbered nightly rank for any episode? "
},
{
"role": "assistant",
"content": "SELECT MAX(\"nightly_rank\") FROM \"australian_ratings\";"
}
]
|
[
{
"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 \"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 attended on december 2?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"regular_season\" WHERE \"date\"='December 2';"
}
]
|
[
{
"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 \"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 he opponent on december 11?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"regular_season\" WHERE \"date\"='December 11';"
}
]
|
[
{
"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 \"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 against houston?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"team\"='Houston';"
}
]
|
[
{
"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 \"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 did the @ indiana game take place?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"regular_season\" WHERE \"team\"='@ Indiana';"
}
]
|
[
{
"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 \"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 madison square garden 18,828"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"location_attendance\"='Madison Square Garden 18,828';"
}
]
|
[
{
"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 \"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 date for dallas"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"regular_season\" WHERE \"team\"='Dallas';"
}
]
|
[
{
"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 \"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 january 15"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"regular_season\" WHERE \"date\"='January 15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the name of the episode that aired originally on November 10, 1998?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_228973_5\" WHERE \"original_air_date\"='November 10, 1998';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What episode number in the series originally aired on April 27, 1999?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_228973_5\" WHERE \"original_air_date\"='April 27, 1999';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many people wrote episode 68 in the series?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"written_by\") FROM \"table1_228973_5\" WHERE \"no_in_series\"=68;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many writers were there for episode named \"embassy\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"written_by\") FROM \"table1_228973_5\" WHERE \"title\"='\\\"Embassy\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What date did \"dungaree justice\" originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_228973_5\" WHERE \"title\"='\\\"Dungaree Justice\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who directed the episode that originally aired on February 16, 1999?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_228973_5\" WHERE \"original_air_date\"='February 16, 1999';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_11\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who directed the episode titled \"Two Towns\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_228973_11\" WHERE \"title\"='\\\"Two Towns\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_11\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: The episode which originally aired on February 11, 2005 had which episode # of the season?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_season\" FROM \"table1_228973_11\" WHERE \"original_air_date\"='February 11, 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_11\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: The episode which originally aired on December 17, 2004 was written by whom?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_228973_11\" WHERE \"original_air_date\"='December 17, 2004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_11\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: David James Elliott directed which episode number within the series?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_228973_11\" WHERE \"directed_by\"='David James Elliott';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_228973_11\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who directed the episode which originally aired February 4, 2005?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_228973_11\" WHERE \"original_air_date\"='February 4, 2005';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.