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 \"division_ii\" (\n \"year\" real,\n \"champion\" text,\n \"score\" text,\n \"runner_up\" text,\n \"location\" text,\n \"semi_finalist_num1\" text,\n \"semi_finalist_num2\" text\n);\n\nQuestion: Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"division_ii\" WHERE \"location\"='morrisville, nc' AND \"semi_finalist_num2\"='clemson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"year\" real,\n \"champion\" text,\n \"score\" text,\n \"runner_up\" text,\n \"location\" text,\n \"semi_finalist_num1\" text,\n \"semi_finalist_num2\" text\n);\n\nQuestion: Which champion got a score of 12-1?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"division_ii\" WHERE \"score\"='12-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"year\" real,\n \"champion\" text,\n \"score\" text,\n \"runner_up\" text,\n \"location\" text,\n \"semi_finalist_num1\" text,\n \"semi_finalist_num2\" text\n);\n\nQuestion: Who was champion in 2005 where the semi-finalist was #1 in western Carolina?"
},
{
"role": "assistant",
"content": "SELECT \"champion\" FROM \"division_ii\" WHERE \"year\"=2005 AND \"semi_finalist_num1\"='western carolina';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"year\" real,\n \"champion\" text,\n \"score\" text,\n \"runner_up\" text,\n \"location\" text,\n \"semi_finalist_num1\" text,\n \"semi_finalist_num2\" text\n);\n\nQuestion: Which runner-up placed in a year prior to 2006 and whose Champion was Elon?"
},
{
"role": "assistant",
"content": "SELECT \"runner_up\" FROM \"division_ii\" WHERE \"year\"<2006 AND \"champion\"='elon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fairbanks_morse\" (\n \"prr_class\" text,\n \"builder_s_model\" text,\n \"build_date\" text,\n \"total_produced\" real,\n \"wheel_arrangement\" text,\n \"service\" text,\n \"power_output\" text\n);\n\nQuestion: What is the wheel arrangement of cf-16-4, and 16 produced?"
},
{
"role": "assistant",
"content": "SELECT \"wheel_arrangement\" FROM \"fairbanks_morse\" WHERE \"builder_s_model\"='cf-16-4' AND \"total_produced\"=16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fairbanks_morse\" (\n \"prr_class\" text,\n \"builder_s_model\" text,\n \"build_date\" text,\n \"total_produced\" real,\n \"wheel_arrangement\" text,\n \"service\" text,\n \"power_output\" text\n);\n\nQuestion: What is the power of b-b wheel arrangement, built in 1952?"
},
{
"role": "assistant",
"content": "SELECT \"power_output\" FROM \"fairbanks_morse\" WHERE \"wheel_arrangement\"='b-b' AND \"build_date\"='1952';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fairbanks_morse\" (\n \"prr_class\" text,\n \"builder_s_model\" text,\n \"build_date\" text,\n \"total_produced\" real,\n \"wheel_arrangement\" text,\n \"service\" text,\n \"power_output\" text\n);\n\nQuestion: When was the build date for c-c wheel arrangement and freight service?"
},
{
"role": "assistant",
"content": "SELECT \"build_date\" FROM \"fairbanks_morse\" WHERE \"service\"='freight' AND \"wheel_arrangement\"='c-c';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fairbanks_morse\" (\n \"prr_class\" text,\n \"builder_s_model\" text,\n \"build_date\" text,\n \"total_produced\" real,\n \"wheel_arrangement\" text,\n \"service\" text,\n \"power_output\" text\n);\n\nQuestion: When was the build date for ff20 PRR class and erie built builder's model?"
},
{
"role": "assistant",
"content": "SELECT \"build_date\" FROM \"fairbanks_morse\" WHERE \"prr_class\"='ff20' AND \"builder_s_model\"='erie built';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_representatives\" (\n \"player\" text,\n \"w_l_total\" text,\n \"w_l_singles\" text,\n \"w_l_doubles\" text,\n \"ties\" real,\n \"debut\" real,\n \"years_played\" real\n);\n\nQuestion: what is the debut when the play er is radoslava topalova and the years played is less than 2?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"debut\") FROM \"team_representatives\" WHERE \"player\"='radoslava topalova' AND \"years_played\"<2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"outdoor_sports\" (\n \"league\" text,\n \"sport\" text,\n \"season\" text,\n \"num_of_teams\" real,\n \"games\" real,\n \"total_attendance\" text,\n \"average_attendance\" real\n);\n\nQuestion: What was the average attendance of the 2011 season that had games smaller than 519 with several teams bigger than 14 that were also part of the sport of association football?"
},
{
"role": "assistant",
"content": "SELECT \"average_attendance\" FROM \"outdoor_sports\" WHERE \"season\"='2011' AND \"games\"<519 AND \"num_of_teams\">14 AND \"sport\"='association football';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"outdoor_sports\" (\n \"league\" text,\n \"sport\" text,\n \"season\" text,\n \"num_of_teams\" real,\n \"games\" real,\n \"total_attendance\" text,\n \"average_attendance\" real\n);\n\nQuestion: What was the total number of average attendance for games of 1311?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"average_attendance\") FROM \"outdoor_sports\" WHERE \"games\"=1311;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"outdoor_sports\" (\n \"league\" text,\n \"sport\" text,\n \"season\" text,\n \"num_of_teams\" real,\n \"games\" real,\n \"total_attendance\" text,\n \"average_attendance\" real\n);\n\nQuestion: When was the season that had more teams larger than 14 in the super rugby league?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"outdoor_sports\" WHERE \"num_of_teams\">14 AND \"league\"='super rugby';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog_num\" text\n);\n\nQuestion: What is the label for the album with a catalog number of 83061-2?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"catalog_num\"='83061-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog_num\" text\n);\n\nQuestion: What is the catalog number of the album whose region is the United Kingdom?"
},
{
"role": "assistant",
"content": "SELECT \"catalog_num\" FROM \"release_history\" WHERE \"region\"='united kingdom';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog_num\" text\n);\n\nQuestion: What is the region for the album with a catalog number of 7567-83061-2?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"release_history\" WHERE \"catalog_num\"='7567-83061-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog_num\" text\n);\n\nQuestion: What is the label for the album with a catalog number of 83061-4?"
},
{
"role": "assistant",
"content": "SELECT \"label\" FROM \"release_history\" WHERE \"catalog_num\"='83061-4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog_num\" text\n);\n\nQuestion: What is the catalog number of the album whose label is Atlantic Records and region is the United States?"
},
{
"role": "assistant",
"content": "SELECT \"catalog_num\" FROM \"release_history\" WHERE \"label\"='atlantic records' AND \"region\"='united states';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school/club team did the center Rafael Ara\u00fajo play for?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"a\" WHERE \"position\"='center' AND \"player\"='rafael ara\u00fajo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the nationality of the guard who played for Florida International?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"a\" WHERE \"position\"='guard' AND \"school_club_team\"='florida international';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_jazz\" text,\n \"school_club_team\" text\n);\n\nQuestion: What player had the position guard/forward?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"a\" WHERE \"position\"='guard/forward';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Who is the driver for laps of 45"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"race\" WHERE \"laps\"=45;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"december\" (\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 visiting team on December 17?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"december\" WHERE \"date\"='december 17';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"december\" (\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: How many people were at Washington's home game against Miami?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"december\" WHERE \"visitor\"='miami' AND \"home\"='washington';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"december\" (\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 home team that played against the visiting team Minnesota?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"december\" WHERE \"visitor\"='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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was total attendance on the day they went 17-7?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"attendance\") FROM \"game_log\" WHERE \"record\"='17-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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score on April 22?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='april 22';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wushu\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_16\" text,\n \"quarterfinal\" text,\n \"semifinal\" text,\n \"final\" text\n);\n\nQuestion: What event had zhamash l 1\u20132 in the quarterfinal?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"wushu\" WHERE \"quarterfinal\"='zhamash l 1\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wushu\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_16\" text,\n \"quarterfinal\" text,\n \"semifinal\" text,\n \"final\" text\n);\n\nQuestion: Hossein Ojaghi participated in what semifinal."
},
{
"role": "assistant",
"content": "SELECT \"semifinal\" FROM \"wushu\" WHERE \"athlete\"='hossein ojaghi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wushu\" (\n \"athlete\" text,\n \"event\" text,\n \"round_of_16\" text,\n \"quarterfinal\" text,\n \"semifinal\" text,\n \"final\" text\n);\n\nQuestion: Alireza Rouzbahani did not advance to the quarterfinal in what event?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"wushu\" WHERE \"quarterfinal\"='did not advance' AND \"athlete\"='alireza rouzbahani';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: How many games have more than 288 goals and less than 34 losses?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"games\") FROM \"regular_season\" WHERE \"goals_against\">288 AND \"lost\"<34;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What is the lowest tie with less than 100 points and 277 goals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"tied\") FROM \"regular_season\" WHERE \"points\"<100 AND \"goals_for\"=277;"
}
] |
[
{
"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 \"nationality\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: What is the team with position G?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"draft\" WHERE \"position\"='g';"
}
] |
[
{
"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 \"nationality\" text,\n \"team\" text,\n \"college\" text\n);\n\nQuestion: What is the player from Illinois?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"draft\" WHERE \"college\"='illinois';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fire_station_locations_and_apparatus\" (\n \"station\" text,\n \"engine_company\" text,\n \"ambulance\" text,\n \"address\" text,\n \"phone\" text\n);\n\nQuestion: What is the phone number of the station located at 53 Dayton Road?"
},
{
"role": "assistant",
"content": "SELECT \"phone\" FROM \"fire_station_locations_and_apparatus\" WHERE \"address\"='53 dayton road';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fire_station_locations_and_apparatus\" (\n \"station\" text,\n \"engine_company\" text,\n \"ambulance\" text,\n \"address\" text,\n \"phone\" text\n);\n\nQuestion: What is the name of the engine company that is located at 89 Rope Ferry Road?"
},
{
"role": "assistant",
"content": "SELECT \"engine_company\" FROM \"fire_station_locations_and_apparatus\" WHERE \"address\"='89 rope ferry road';"
}
] |
[
{
"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: What was the Record of the game in which the Trail Blazers was the visiting team?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"november\" WHERE \"visitor\"='trail blazers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the date of the friendly match, ending in a result of 1-1?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"competition\"='friendly match' AND \"result\"='1-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the result of the game held at the As-Salt venue?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"venue\"='as-salt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the team's record on May 17?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='may 17';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_doubles_performances_10\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: Which zone had m\u0103d\u0103lina gojnea monica niculescu as the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"zone\" FROM \"fed_cup_doubles_performances_10\" WHERE \"opponents\"='m\u0103d\u0103lina gojnea monica niculescu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_doubles_performances_10\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: Who was against the opponents, m\u0103d\u0103lina gojnea monica niculescu?"
},
{
"role": "assistant",
"content": "SELECT \"against\" FROM \"fed_cup_doubles_performances_10\" WHERE \"opponents\"='m\u0103d\u0103lina gojnea monica niculescu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_doubles_performances_10\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: What was the surface on the game with margit r\u00fc\u00fctel anett schutting as the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"fed_cup_doubles_performances_10\" WHERE \"opponents\"='margit r\u00fc\u00fctel anett schutting';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fed_cup_doubles_performances_10\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: What is the zone of the game played against Estonia?"
},
{
"role": "assistant",
"content": "SELECT \"zone\" FROM \"fed_cup_doubles_performances_10\" WHERE \"against\"='estonia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the high rebounds on February 24?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='february 24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: On February 10, what was the location attendance?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='february 10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets_in_the_tournament\" (\n \"player\" text,\n \"overs\" text,\n \"runs\" text,\n \"wkts\" text,\n \"mdns\" text,\n \"econ\" text\n);\n\nQuestion: Tell me the player with econ of 4.23"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"most_wickets_in_the_tournament\" WHERE \"econ\"='4.23';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets_in_the_tournament\" (\n \"player\" text,\n \"overs\" text,\n \"runs\" text,\n \"wkts\" text,\n \"mdns\" text,\n \"econ\" text\n);\n\nQuestion: Tell me the runs for b lee"
},
{
"role": "assistant",
"content": "SELECT \"runs\" FROM \"most_wickets_in_the_tournament\" WHERE \"player\"='b lee';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets_in_the_tournament\" (\n \"player\" text,\n \"overs\" text,\n \"runs\" text,\n \"wkts\" text,\n \"mdns\" text,\n \"econ\" text\n);\n\nQuestion: Tell me the player with overs of 87.4"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"most_wickets_in_the_tournament\" WHERE \"overs\"='87.4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets_in_the_tournament\" (\n \"player\" text,\n \"overs\" text,\n \"runs\" text,\n \"wkts\" text,\n \"mdns\" text,\n \"econ\" text\n);\n\nQuestion: Tell me the runs for econ of 3.63"
},
{
"role": "assistant",
"content": "SELECT \"runs\" FROM \"most_wickets_in_the_tournament\" WHERE \"econ\"='3.63';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets_in_the_tournament\" (\n \"player\" text,\n \"overs\" text,\n \"runs\" text,\n \"wkts\" text,\n \"mdns\" text,\n \"econ\" text\n);\n\nQuestion: Tell me the wkts for econ of 4.23"
},
{
"role": "assistant",
"content": "SELECT \"wkts\" FROM \"most_wickets_in_the_tournament\" WHERE \"econ\"='4.23';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_wickets_in_the_tournament\" (\n \"player\" text,\n \"overs\" text,\n \"runs\" text,\n \"wkts\" text,\n \"mdns\" text,\n \"econ\" text\n);\n\nQuestion: Tell me the overs for mdns of 4"
},
{
"role": "assistant",
"content": "SELECT \"overs\" FROM \"most_wickets_in_the_tournament\" WHERE \"mdns\"='4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\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: If collingwood is playing away, who played as the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"away_team\"='collingwood';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 away teams score when they played at kardinia park?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_1\" WHERE \"venue\"='kardinia park';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\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's the highest turnout when carlton was playing as the away team?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_1\" 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_1\" (\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 15.11 (101)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"home_team_score\"='15.11 (101)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 away team played when the crowd was over 27,463 people?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_1\" WHERE \"crowd\">'27,463';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 23.11 (149)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_1\" WHERE \"away_team_score\"='23.11 (149)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"house_of_rohan_chabot\" (\n \"name\" text,\n \"birth\" text,\n \"marriage\" text,\n \"became_duke\" text,\n \"ceased_to_be_duke\" text,\n \"death\" text,\n \"spouse\" text\n);\n\nQuestion: On waht date did Antoinette Jeanne Yvonne Boegner get married?"
},
{
"role": "assistant",
"content": "SELECT \"marriage\" FROM \"house_of_rohan_chabot\" WHERE \"spouse\"='antoinette jeanne yvonne boegner';"
}
] |
[
{
"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 team that has a Home team score of 18.16 (124)?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_6\" WHERE \"home_team_score\"='18.16 (124)';"
}
] |
[
{
"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 largest Crowd number for the Home team of North Melbourne?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_6\" 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_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 total Crowd number for the team that has a Home team score of 13.9 (87)?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"crowd\") FROM \"round_6\" WHERE \"home_team_score\"='13.9 (87)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\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 home team did South Melbourne play as the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_10\" 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 \"round_10\" (\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 against the away team Hawthorn?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_10\" WHERE \"away_team\"='hawthorn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\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 Western Oval venue, what is the average crowd?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"crowd\") FROM \"round_10\" WHERE \"venue\"='western oval';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_10\" (\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 Richmond is the away team, what is the crowd size?"
},
{
"role": "assistant",
"content": "SELECT \"crowd\" FROM \"round_10\" 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 \"1986_nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: Who is the person from round 8?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"1986_nfl_draft\" WHERE \"round\"=8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1986_nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What is the round for Arizona with a pick over 100?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"round\") FROM \"1986_nfl_draft\" WHERE \"school\"='arizona' AND \"pick\">100;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1986_nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What pick had a wide receiver named johnny holloway?"
},
{
"role": "assistant",
"content": "SELECT \"pick\" FROM \"1986_nfl_draft\" WHERE \"position\"='wide receiver' AND \"name\"='johnny holloway';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: Which score has a Home Team of saskatoon accelerators?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season_schedule\" WHERE \"home_team\"='saskatoon accelerators';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: Which Visiting Team has a Stadium of servus centre on march 7?"
},
{
"role": "assistant",
"content": "SELECT \"visiting_team\" FROM \"regular_season_schedule\" WHERE \"stadium\"='servus centre' AND \"date\"='march 7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: Which Visiting Team has a Stadium of servus centre?"
},
{
"role": "assistant",
"content": "SELECT \"visiting_team\" FROM \"regular_season_schedule\" WHERE \"stadium\"='servus centre';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"the_blitz_estimated_luftwaffe_sorties\" (\n \"month_year\" text,\n \"day_sorties_losses\" text,\n \"night_sorties_losses\" text,\n \"luftflotte_2_sorties\" real,\n \"luftflotte_3_sorties\" real,\n \"major_attacks\" text,\n \"heavy_attacks\" real\n);\n\nQuestion: How many heavy attacks did the 450 Luftflotte 2 conduct?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"heavy_attacks\") FROM \"the_blitz_estimated_luftwaffe_sorties\" WHERE \"luftflotte_2_sorties\"=450;"
}
] |
[
{
"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 time/retired for grid 19?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"grid\"=19;"
}
] |
[
{
"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 grid total for bruce mclaren with over 73 laps?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"grid\") FROM \"classification\" WHERE \"laps\">73 AND \"driver\"='bruce mclaren';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"filmography\" (\n \"year\" real,\n \"film\" text,\n \"director\" text,\n \"producer\" text,\n \"cinematographer\" text\n);\n\nQuestion: What film was released in 1971?"
},
{
"role": "assistant",
"content": "SELECT \"film\" FROM \"filmography\" WHERE \"year\"=1971;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ippt_standards\" (\n \"grade\" text,\n \"points\" real,\n \"sit_up_reps\" text,\n \"standing_broad_jump_cm\" text,\n \"chin_up_reps\" text,\n \"shuttle_run_sec\" text,\n \"2_4km_run_min_sec\" text\n);\n\nQuestion: What grade was the 2.4km Run (min:sec) of 13:01-13:40?"
},
{
"role": "assistant",
"content": "SELECT \"grade\" FROM \"ippt_standards\" WHERE \"2_4km_run_min_sec\"='13:01-13:40';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ippt_standards\" (\n \"grade\" text,\n \"points\" real,\n \"sit_up_reps\" text,\n \"standing_broad_jump_cm\" text,\n \"chin_up_reps\" text,\n \"shuttle_run_sec\" text,\n \"2_4km_run_min_sec\" text\n);\n\nQuestion: What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00?"
},
{
"role": "assistant",
"content": "SELECT \"shuttle_run_sec\" FROM \"ippt_standards\" WHERE \"2_4km_run_min_sec\"='12:21-13:00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: When was steve bartalo picked?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pick\") FROM \"nfl_draft\" WHERE \"player\"='steve bartalo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What player is a cornerback?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"position\"='cornerback';"
}
] |
[
{
"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 was the highest crowd turnout when the away team scored 12.13 (85)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"round_6\" WHERE \"away_team_score\"='12.13 (85)';"
}
] |
[
{
"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 venue did the home team score 22.23 (155) at?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_6\" WHERE \"home_team_score\"='22.23 (155)';"
}
] |
[
{
"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: Windy hill is the home to what team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_6\" WHERE \"venue\"='windy hill';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"opponents\" text,\n \"score\" text,\n \"competition\" text,\n \"match_report\" text\n);\n\nQuestion: What is the name of the competition with a score of 1-5?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"results\" WHERE \"score\"='1-5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"date\" text,\n \"opponents\" text,\n \"score\" text,\n \"competition\" text,\n \"match_report\" text\n);\n\nQuestion: What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"results\" WHERE \"opponents\"='sv werder bremen' AND \"score\"='1-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"avg_attendance\" real\n);\n\nQuestion: What regular season result had an average attendance less than 942?"
},
{
"role": "assistant",
"content": "SELECT \"reg_season\" FROM \"year_by_year\" WHERE \"avg_attendance\"<942;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"avg_attendance\" real\n);\n\nQuestion: Which league had a playoffs result of a lost semifinal?"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"playoffs\"='lost semifinal';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"league\" text,\n \"reg_season\" text,\n \"playoffs\" text,\n \"avg_attendance\" real\n);\n\nQuestion: What regular season result had an average attendance bigger than 3,170?"
},
{
"role": "assistant",
"content": "SELECT \"reg_season\" FROM \"year_by_year\" WHERE \"avg_attendance\">'3,170';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecting_links\" (\n \"county\" text,\n \"name\" text,\n \"length_miles\" real,\n \"west_or_south_terminus\" text,\n \"east_or_north_terminus\" text\n);\n\nQuestion: what is the length (miles) when the east or north terminus is ne 2 in lincoln?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"length_miles\") FROM \"connecting_links\" WHERE \"east_or_north_terminus\"='ne 2 in lincoln';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecting_links\" (\n \"county\" text,\n \"name\" text,\n \"length_miles\" real,\n \"west_or_south_terminus\" text,\n \"east_or_north_terminus\" text\n);\n\nQuestion: what is the length (miles) when the name is l-56g?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"length_miles\") FROM \"connecting_links\" WHERE \"name\"='l-56g';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"connecting_links\" (\n \"county\" text,\n \"name\" text,\n \"length_miles\" real,\n \"west_or_south_terminus\" text,\n \"east_or_north_terminus\" text\n);\n\nQuestion: what is the name when the west or south terminus is ne 112 west of blue springs?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"connecting_links\" WHERE \"west_or_south_terminus\"='ne 112 west of blue springs';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"race\" WHERE \"constructor\"='benetton - renault' AND \"driver\"='johnny herbert';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the Time/Retired value for constructor Jordan - Peugeot with 66 laps and grid value 5?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"race\" WHERE \"laps\"='66' AND \"constructor\"='jordan - peugeot' AND \"grid\"='5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the Time/Retired value of driver Pedro Diniz?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"race\" WHERE \"driver\"='pedro diniz';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: Which driver has grid value of 18?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"race\" WHERE \"grid\"='18';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the constructor with grid value 5?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"race\" WHERE \"grid\"='5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" text,\n \"time_retired\" text,\n \"grid\" text\n);\n\nQuestion: What is the grid value which has Time/Retired value of accident?"
},
{
"role": "assistant",
"content": "SELECT \"grid\" FROM \"race\" WHERE \"time_retired\"='accident';"
}
] |
[
{
"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 that was a visitor of the Trail Blazers?"
},
{
"role": "assistant",
"content": "SELECT \"leading_scorer\" FROM \"january\" WHERE \"visitor\"='trail blazers';"
}
] |
[
{
"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 is the leading scorer when they were at home of the Clippers?"
},
{
"role": "assistant",
"content": "SELECT \"leading_scorer\" FROM \"january\" WHERE \"home\"='clippers';"
}
] |
[
{
"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 visitor on January 19, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"january\" WHERE \"date\"='january 19, 2008';"
}
] |
[
{
"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: What was the score when there was a visitor of Magic and at home with the Clippers?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"january\" WHERE \"visitor\"='magic' AND \"home\"='clippers';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.