chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: I want the sum of Laps with Grid less than 11 for jean-pierre jarier" }, { "role": "assistant", "content": "SELECT SUM(\"laps\") FROM \"classification\" WHERE \"grid\"<11 AND \"driver\"='jean-pierre jarier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: I want the constructor for brakes and grid less than 14" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"classification\" WHERE \"time_retired\"='brakes' AND \"grid\"<14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"season_no\" real,\n \"season_start\" text,\n \"season_end\" text,\n \"episodes\" real,\n \"host\" text\n);\n\nQuestion: How may episodes did season 1 have?" }, { "role": "assistant", "content": "SELECT COUNT(\"episodes\") FROM \"episodes\" WHERE \"season_no\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1?" }, { "role": "assistant", "content": "SELECT \"chassis\" FROM \"drivers_and_constructors\" WHERE \"entrant\"='larrousse f1' AND \"driver\"='aguri suzuki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: What was the entrant in round 16 were Ferrari was the constructor?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"drivers_and_constructors\" WHERE \"rounds\"='16' AND \"constructor\"='ferrari';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"region\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: Tell me the country with ICAO of zgha" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"icao\"='zgha';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"region\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: I want the ICAO for city of xi'an" }, { "role": "assistant", "content": "SELECT \"icao\" FROM \"destinations\" WHERE \"city\"='xi''an';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"region\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: I want the IATA for ICAO of zgkl" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"destinations\" WHERE \"icao\"='zgkl';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"region\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: I want the region for ICAO of vmmc" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"destinations\" WHERE \"icao\"='vmmc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57?" }, { "role": "assistant", "content": "SELECT MAX(\"grid\") FROM \"classification\" WHERE \"time_retired\"='+ 3 laps' AND \"laps\"<57;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Who built the car that has a Time/Retired of 1:36:38.887?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"classification\" WHERE \"time_retired\"='1:36:38.887';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the leading scorer on 9 January 2008?" }, { "role": "assistant", "content": "SELECT \"leading_scorer\" FROM \"january\" WHERE \"date\"='9 january 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the number played for the Barcelona B club, with wins under 11?" }, { "role": "assistant", "content": "SELECT SUM(\"played\") FROM \"final_table\" WHERE \"club\"='barcelona b' AND \"wins\"<11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What was the biggest draws, for wins under 4, and points of 20-18?" }, { "role": "assistant", "content": "SELECT MAX(\"draws\") FROM \"final_table\" WHERE \"points\"='20-18' AND \"wins\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_table\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" text,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the average of goals against, where overall goals are more than 35 and the goal difference is 20?" }, { "role": "assistant", "content": "SELECT AVG(\"goals_against\") FROM \"final_table\" WHERE \"goals_for\">35 AND \"goal_difference\"=20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the Crowd number for the Away team of Richmond?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_6\" WHERE \"away_team\"='richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the Home team score for the Venue named Glenferrie Oval?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_6\" WHERE \"venue\"='glenferrie oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the smallest Crowd number for the Venue named Princes Park?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_6\" WHERE \"venue\"='princes park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Home team has an Away team score of 6.9 (45)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_6\" WHERE \"away_team_score\"='6.9 (45)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real,\n \"notes\" text\n);\n\nQuestion: Tell me the notes with method of points and event of adcc 2001 absolute with result of loss" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"submission_grappling_record\" WHERE \"method\"='points' AND \"event\"='adcc 2001 absolute' AND \"result\"='loss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real,\n \"notes\" text\n);\n\nQuestion: Tell me the lowest date for result of win and method of points with notes of opening round" }, { "role": "assistant", "content": "SELECT MIN(\"date\") FROM \"submission_grappling_record\" WHERE \"result\"='win' AND \"method\"='points' AND \"notes\"='opening round';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real,\n \"notes\" text\n);\n\nQuestion: Name the result with notes of quarter-finals and event of adcc 2001 absolute" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"submission_grappling_record\" WHERE \"notes\"='quarter-finals' AND \"event\"='adcc 2001 absolute';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real,\n \"notes\" text\n);\n\nQuestion: I want the event for method of points with notes of opening round" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"submission_grappling_record\" WHERE \"method\"='points' AND \"notes\"='opening round';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"leaders\" (\n \"rank\" real,\n \"player\" text,\n \"country\" text,\n \"earnings\" real,\n \"events\" real,\n \"wins\" real\n);\n\nQuestion: How many win total which has the rank smaller than 3 and events smaller than 22" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"leaders\" WHERE \"events\"<22 AND \"rank\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_member_schools\" (\n \"school\" text,\n \"location\" text,\n \"enrolment\" real,\n \"founded\" real,\n \"denomination\" text,\n \"day_boarding\" text,\n \"school_colors\" text\n);\n\nQuestion: What denomination is mt lawley?" }, { "role": "assistant", "content": "SELECT \"denomination\" FROM \"current_member_schools\" WHERE \"location\"='mt lawley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_member_schools\" (\n \"school\" text,\n \"location\" text,\n \"enrolment\" real,\n \"founded\" real,\n \"denomination\" text,\n \"day_boarding\" text,\n \"school_colors\" text\n);\n\nQuestion: Is mt lawley day or boarding?" }, { "role": "assistant", "content": "SELECT \"day_boarding\" FROM \"current_member_schools\" WHERE \"location\"='mt lawley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_member_schools\" (\n \"school\" text,\n \"location\" text,\n \"enrolment\" real,\n \"founded\" real,\n \"denomination\" text,\n \"day_boarding\" text,\n \"school_colors\" text\n);\n\nQuestion: What is the average year founded for schools in claremont?" }, { "role": "assistant", "content": "SELECT AVG(\"founded\") FROM \"current_member_schools\" WHERE \"location\"='claremont';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When north melbourne was the home team who was the Away team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"home_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team scored 19.18 (132)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_13\" WHERE \"home_team_score\"='19.18 (132)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When collingwood played as the home team who was the away team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"home_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the Away team was south melbourne what was the home team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_13\" WHERE \"away_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"stadia_and_attendances\" (\n \"team\" text,\n \"stadium\" text,\n \"capacity\" real,\n \"highest\" real,\n \"lowest\" real,\n \"average\" real\n);\n\nQuestion: What is the lowest attendance for a stadium that has an average smaller than 307?" }, { "role": "assistant", "content": "SELECT AVG(\"lowest\") FROM \"stadia_and_attendances\" WHERE \"average\"<307;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team scored 17.13 (115), where was the venue?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_7\" WHERE \"home_team_score\"='17.13 (115)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team was South Melbourne, what did the away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_7\" WHERE \"home_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"medal_count\" WHERE \"bronze\"<13 AND \"total\"=11 AND \"gold\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?" }, { "role": "assistant", "content": "SELECT MIN(\"bronze\") FROM \"medal_count\" WHERE \"silver\"=9 AND \"total\">13 AND \"gold\">13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest number of silvers a team with more than 95 total medals has?" }, { "role": "assistant", "content": "SELECT MAX(\"silver\") FROM \"medal_count\" WHERE \"total\">95;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_count\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"medal_count\" WHERE \"gold\"<15 AND \"bronze\"<5 AND \"rank\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the home team who plays at Glenferrie Oval?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_13\" WHERE \"venue\"='glenferrie oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did the away team Carlton score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_13\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: In the game where the home team scored 19.21 (135), who was the away team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"home_team_score\"='19.21 (135)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team scored 13.13 (91)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"away_team_score\"='13.13 (91)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003_squad_statistics\" (\n \"player\" text,\n \"position\" text,\n \"tries\" real,\n \"goals\" real,\n \"points\" real\n);\n\nQuestion: What position did Lee Gilmour play while having more than 4 Tries and 20 points?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"2003_squad_statistics\" WHERE \"tries\">4 AND \"points\"=20 AND \"player\"='lee gilmour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cbs_era_1979_2000\" (\n \"year\" real,\n \"network\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text,\n \"host\" text,\n \"ratings\" text,\n \"viewers\" text\n);\n\nQuestion: Who was the host that garnered ratings of 9.4/27?" }, { "role": "assistant", "content": "SELECT \"host\" FROM \"cbs_era_1979_2000\" WHERE \"ratings\"='9.4/27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cbs_era_1979_2000\" (\n \"year\" real,\n \"network\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text,\n \"host\" text,\n \"ratings\" text,\n \"viewers\" text\n);\n\nQuestion: Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?" }, { "role": "assistant", "content": "SELECT \"lap_by_lap\" FROM \"cbs_era_1979_2000\" WHERE \"year\"<1994 AND \"ratings\"='8.0/21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cbs_era_1979_2000\" (\n \"year\" real,\n \"network\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text,\n \"host\" text,\n \"ratings\" text,\n \"viewers\" text\n);\n\nQuestion: Who was the host that garnered ratings of 9.6/26?" }, { "role": "assistant", "content": "SELECT \"host\" FROM \"cbs_era_1979_2000\" WHERE \"ratings\"='9.6/26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cbs_era_1979_2000\" (\n \"year\" real,\n \"network\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text,\n \"host\" text,\n \"ratings\" text,\n \"viewers\" text\n);\n\nQuestion: What were the ratings for host Chris Economaki who had 12.3 million viewers?" }, { "role": "assistant", "content": "SELECT \"ratings\" FROM \"cbs_era_1979_2000\" WHERE \"host\"='chris economaki' AND \"viewers\"='12.3 million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cbs_era_1979_2000\" (\n \"year\" real,\n \"network\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text,\n \"host\" text,\n \"ratings\" text,\n \"viewers\" text\n);\n\nQuestion: Who was the network who had Ken Squier as a host and 13.9 million viewers?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"cbs_era_1979_2000\" WHERE \"host\"='ken squier' AND \"viewers\"='13.9 million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the lowest Attendance for Games played on the Date of February 5?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"february\" WHERE \"date\"='february 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the total Attendance for Games while Chicago was the visiting Team?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"february\" WHERE \"visitor\"='chicago';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?" }, { "role": "assistant", "content": "SELECT \"pole_position\" FROM \"grands_prix\" WHERE \"fastest_lap\"='rubens barrichello' AND \"round\">11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?" }, { "role": "assistant", "content": "SELECT \"grand_prix\" FROM \"grands_prix\" WHERE \"winning_driver\"='david coulthard' AND \"pole_position\"='michael schumacher' AND \"round\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver." }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"grands_prix\" WHERE \"pole_position\"='david coulthard' AND \"winning_driver\"='michael schumacher';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Who had the fastest lap at the Australian Grand Prix?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"grands_prix\" WHERE \"grand_prix\"='australian grand prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the team 2 for team 1 being la nuova piovese (veneto a)" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"second_round\" WHERE \"team_1\"='la nuova piovese (veneto a)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the team 1 for team 2 being civitavecchiese (latium a)" }, { "role": "assistant", "content": "SELECT \"team_1\" FROM \"second_round\" WHERE \"team_2\"='civitavecchiese (latium a)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Tell me the 1st leg for team being budoni (Sardinia)" }, { "role": "assistant", "content": "SELECT \"1st_leg\" FROM \"second_round\" WHERE \"team_1\"='budoni (sardinia)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"st_louis_cardinals_vs_houston_astros\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: How many attended the game at Busch Stadium (ii) when the time was 3:54?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"st_louis_cardinals_vs_houston_astros\" WHERE \"location\"='busch stadium (ii)' AND \"time\"='3:54';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"st_louis_cardinals_vs_houston_astros\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: What dates were the games after game 6 played?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"st_louis_cardinals_vs_houston_astros\" WHERE \"game\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1972\" text,\n \"1973\" text,\n \"1974\" text,\n \"1975\" text,\n \"1976\" text,\n \"1977\" text,\n \"1978\" text\n);\n\nQuestion: What is the 1977 value that had Grand Slam Tournaments in 1972?" }, { "role": "assistant", "content": "SELECT \"1977\" FROM \"singles_performance_timeline\" WHERE \"1972\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1972\" text,\n \"1973\" text,\n \"1974\" text,\n \"1975\" text,\n \"1976\" text,\n \"1977\" text,\n \"1978\" text\n);\n\nQuestion: What is the tournament that had Grand Slam Tournaments in 1976?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"1976\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1972\" text,\n \"1973\" text,\n \"1974\" text,\n \"1975\" text,\n \"1976\" text,\n \"1977\" text,\n \"1978\" text\n);\n\nQuestion: What is the 1976 value of the Australian Open?" }, { "role": "assistant", "content": "SELECT \"1976\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='australian open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1972\" text,\n \"1973\" text,\n \"1974\" text,\n \"1975\" text,\n \"1976\" text,\n \"1977\" text,\n \"1978\" text\n);\n\nQuestion: What is the 1977 value that has a 1974 a value?" }, { "role": "assistant", "content": "SELECT \"1977\" FROM \"singles_performance_timeline\" WHERE \"1974\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Which week led to a record of 4-10?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"record\"='4-10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"kickoff_a\" text,\n \"game_site\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Which week was the game against the San Diego Chargers?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"opponent\"='san diego chargers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text\n);\n\nQuestion: What is the height of the player who is from Huntington, WV?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"2007_boys_team\" WHERE \"hometown\"='huntington, wv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text\n);\n\nQuestion: What school is the player who has a hometown of Chicago, IL from?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"2007_boys_team\" WHERE \"hometown\"='chicago, il';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text\n);\n\nQuestion: Which college is the player from South Medford High School headed to?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"2007_boys_team\" WHERE \"school\"='south medford high school';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text\n);\n\nQuestion: Which school is the player who is headed to Duke from?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"2007_boys_team\" WHERE \"college\"='duke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_boys_team\" (\n \"player\" text,\n \"height\" text,\n \"school\" text,\n \"hometown\" text,\n \"college\" text\n);\n\nQuestion: What is the hometown of the player who is headed to Duke?" }, { "role": "assistant", "content": "SELECT \"hometown\" FROM \"2007_boys_team\" WHERE \"college\"='duke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts_and_directors_of_broadway_and_west\" (\n \"productions\" text,\n \"rose\" text,\n \"louise\" text,\n \"dainty_june\" text,\n \"herbie\" text,\n \"director\" text\n);\n\nQuestion: Who was Louise when Tracy Venner was Dainty June?" }, { "role": "assistant", "content": "SELECT \"louise\" FROM \"casts_and_directors_of_broadway_and_west\" WHERE \"dainty_june\"='tracy venner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts_and_directors_of_broadway_and_west\" (\n \"productions\" text,\n \"rose\" text,\n \"louise\" text,\n \"dainty_june\" text,\n \"herbie\" text,\n \"director\" text\n);\n\nQuestion: Who was Dainty June when Tammy Blanchard was Louise?" }, { "role": "assistant", "content": "SELECT \"dainty_june\" FROM \"casts_and_directors_of_broadway_and_west\" WHERE \"louise\"='tammy blanchard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts_and_directors_of_broadway_and_west\" (\n \"productions\" text,\n \"rose\" text,\n \"louise\" text,\n \"dainty_june\" text,\n \"herbie\" text,\n \"director\" text\n);\n\nQuestion: Who was Dainty June when Boyd Gaines was Herbie?" }, { "role": "assistant", "content": "SELECT \"dainty_june\" FROM \"casts_and_directors_of_broadway_and_west\" WHERE \"herbie\"='boyd gaines';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts_and_directors_of_broadway_and_west\" (\n \"productions\" text,\n \"rose\" text,\n \"louise\" text,\n \"dainty_june\" text,\n \"herbie\" text,\n \"director\" text\n);\n\nQuestion: What production had Angela Lansbury as Rose and Barrie Ingham as Herbie?" }, { "role": "assistant", "content": "SELECT \"productions\" FROM \"casts_and_directors_of_broadway_and_west\" WHERE \"rose\"='angela lansbury' AND \"herbie\"='barrie ingham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts_and_directors_of_broadway_and_west\" (\n \"productions\" text,\n \"rose\" text,\n \"louise\" text,\n \"dainty_june\" text,\n \"herbie\" text,\n \"director\" text\n);\n\nQuestion: Who was rose in the 1975 Broadway Revival?" }, { "role": "assistant", "content": "SELECT \"rose\" FROM \"casts_and_directors_of_broadway_and_west\" WHERE \"productions\"='1975 broadway revival';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts_and_directors_of_broadway_and_west\" (\n \"productions\" text,\n \"rose\" text,\n \"louise\" text,\n \"dainty_june\" text,\n \"herbie\" text,\n \"director\" text\n);\n\nQuestion: Which production had Rex Robbins as Herbie?" }, { "role": "assistant", "content": "SELECT \"productions\" FROM \"casts_and_directors_of_broadway_and_west\" WHERE \"herbie\"='rex robbins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_21\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: On what date was the venue VFL Park?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_21\" WHERE \"venue\"='vfl park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_21\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date did Footscray play at home?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_21\" WHERE \"home_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_21\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did the home team score when they played the away team of Geelong?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_21\" WHERE \"away_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_21\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: For the away team with a score of 14.7 (91) what was the home team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_21\" WHERE \"away_team_score\"='14.7 (91)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: What was the lowest pick number for the Boston Celtics?" }, { "role": "assistant", "content": "SELECT MIN(\"pick\") FROM \"draft\" WHERE \"team\"='boston celtics';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"november\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who is the visitor team on 23 November 2007?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"november\" WHERE \"date\"='23 november 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"november\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who is the leading scorer of the game on 20 November 2007?" }, { "role": "assistant", "content": "SELECT \"leading_scorer\" FROM \"november\" WHERE \"date\"='20 november 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1992_draft_picks\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"nationality\" text,\n \"club_team\" text\n);\n\nQuestion: When was petter ronnquist picked?" }, { "role": "assistant", "content": "SELECT \"overall\" FROM \"1992_draft_picks\" WHERE \"player\"='petter ronnquist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"scored\" real,\n \"competition\" text\n);\n\nQuestion: Which venue has a Result of 1\u20130?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_career\" WHERE \"result\"='1\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"scored\" real,\n \"competition\" text\n);\n\nQuestion: Which venue has a Result of 1\u20132?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_career\" WHERE \"result\"='1\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"scored\" real,\n \"competition\" text\n);\n\nQuestion: What is the highest score with a Result of 1\u20131 on 4 march 2001?" }, { "role": "assistant", "content": "SELECT MAX(\"scored\") FROM \"international_career\" WHERE \"result\"='1\u20131' AND \"date\"='4 march 2001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_career\" (\n \"date\" text,\n \"venue\" text,\n \"result\" text,\n \"scored\" real,\n \"competition\" text\n);\n\nQuestion: What is the result of 2003 eaff championship preliminary on 2 march 2003?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"international_career\" WHERE \"competition\"='2003 eaff championship preliminary' AND \"date\"='2 march 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"entries\" (\n \"driver\" text,\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text\n);\n\nQuestion: I want the engine for luigi villoresi" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"entries\" WHERE \"driver\"='luigi villoresi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"entries\" (\n \"driver\" text,\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tyre\" text\n);\n\nQuestion: I want the chassis for entrant of ecurie lutetia" }, { "role": "assistant", "content": "SELECT \"chassis\" FROM \"entries\" WHERE \"entrant\"='ecurie lutetia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the venue when the away team scored 15.9 (99)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_2\" WHERE \"away_team_score\"='15.9 (99)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date was the game played at princes park?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_2\" WHERE \"venue\"='princes park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the score of the away team when the game was played at vfl park?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_2\" WHERE \"venue\"='vfl park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the venue when the away team scored 17.21 (123)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_2\" WHERE \"away_team_score\"='17.21 (123)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team was the home team when the away team scored 17.21 (123)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_2\" WHERE \"away_team_score\"='17.21 (123)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"block_a\" text,\n \"black_bushi\" text,\n \"bushi\" text,\n \"kaz_hayashi\" text,\n \"kenny_omega\" text,\n \"minoru\" text\n);\n\nQuestion: Name the kaz hayashi for block A being bushi" }, { "role": "assistant", "content": "SELECT \"kaz_hayashi\" FROM \"2011\" WHERE \"block_a\"='bushi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"block_a\" text,\n \"black_bushi\" text,\n \"bushi\" text,\n \"kaz_hayashi\" text,\n \"kenny_omega\" text,\n \"minoru\" text\n);\n\nQuestion: Name the minoru for block A being koji kanemoto" }, { "role": "assistant", "content": "SELECT \"minoru\" FROM \"2011\" WHERE \"block_a\"='koji kanemoto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"block_a\" text,\n \"black_bushi\" text,\n \"bushi\" text,\n \"kaz_hayashi\" text,\n \"kenny_omega\" text,\n \"minoru\" text\n);\n\nQuestion: Name the BUSHI when it has kenny omega of yang (7:27)" }, { "role": "assistant", "content": "SELECT \"bushi\" FROM \"2011\" WHERE \"kenny_omega\"='yang (7:27)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"block_a\" text,\n \"black_bushi\" text,\n \"bushi\" text,\n \"kaz_hayashi\" text,\n \"kenny_omega\" text,\n \"minoru\" text\n);\n\nQuestion: Name the BUSHI that has kaz hayashi of kai (14:01)" }, { "role": "assistant", "content": "SELECT \"bushi\" FROM \"2011\" WHERE \"kaz_hayashi\"='kai (14:01)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011\" (\n \"block_a\" text,\n \"black_bushi\" text,\n \"bushi\" text,\n \"kaz_hayashi\" text,\n \"kenny_omega\" text,\n \"minoru\" text\n);\n\nQuestion: Name the Kaz Hayashi which has BUSHI of yang (9:43)" }, { "role": "assistant", "content": "SELECT \"kaz_hayashi\" FROM \"2011\" WHERE \"bushi\"='yang (9:43)';" } ]