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 \"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 for the BMW Sauber, and Nick Heidfeld?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"race\" WHERE \"constructor\"='bmw sauber' AND \"driver\"='nick heidfeld';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What were the total number of games in April greater than 83?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"april\") FROM \"schedule_and_results\" WHERE \"game\">83;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defense\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: Which Games\u2191 is the lowest one that has a Position of wlb?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"games\") FROM \"defense\" WHERE \"position\"='wlb';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defense\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: Which Games\u2191 is the lowest one that has a Number of 98?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"games\") FROM \"defense\" WHERE \"number\"=98;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster_and_rotation\" (\n \"name\" text,\n \"number\" real,\n \"team_position\" real,\n \"height\" text,\n \"year\" text\n);\n\nQuestion: What is the height of Josh Tabb?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"roster_and_rotation\" WHERE \"name\"='josh tabb';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_11_2008\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What series episode has stetson hats (part 1) under segment C?"
},
{
"role": "assistant",
"content": "SELECT \"series_ep\" FROM \"season_11_2008\" WHERE \"segment_c\"='stetson hats (part 1)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_11_2008\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What is under segment C when s cuckoo clock is under segment B?"
},
{
"role": "assistant",
"content": "SELECT \"segment_c\" FROM \"season_11_2008\" WHERE \"segment_b\"='s cuckoo clock';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_11_2008\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: When segment B is s pineapple, what is the segment C?"
},
{
"role": "assistant",
"content": "SELECT \"segment_c\" FROM \"season_11_2008\" WHERE \"segment_b\"='s pineapple';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_11_2008\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What series episode has jukeboxes as segment B?"
},
{
"role": "assistant",
"content": "SELECT \"series_ep\" FROM \"season_11_2008\" WHERE \"segment_b\"='jukeboxes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What week ended in a result of w 30-3, and had an attendance less than 62,795?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"week\") FROM \"schedule\" WHERE \"result\"='w 30-3' AND \"attendance\"<'62,795';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" text,\n \"label\" text,\n \"region\" text,\n \"format\" text,\n \"catalog\" real\n);\n\nQuestion: Which Format has a Catalog of 61298, and a Date of september 1984?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_history\" WHERE \"catalog\"=61298 AND \"date\"='september 1984';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" text,\n \"label\" text,\n \"region\" text,\n \"format\" text,\n \"catalog\" real\n);\n\nQuestion: Which Catalog has a Format of 7\" single (second cover)?"
},
{
"role": "assistant",
"content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"format\"='7\\\" single (second cover)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" text,\n \"label\" text,\n \"region\" text,\n \"format\" text,\n \"catalog\" real\n);\n\nQuestion: Which Region has a Label of rca, and a Catalog of 61298, and a Format of 7\" single (first cover)?"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"release_history\" WHERE \"label\"='rca' AND \"catalog\"=61298 AND \"format\"='7\\\" single (first cover)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"date\" text,\n \"label\" text,\n \"region\" text,\n \"format\" text,\n \"catalog\" real\n);\n\nQuestion: Which Format has a Catalog smaller than 61298?"
},
{
"role": "assistant",
"content": "SELECT \"format\" FROM \"release_history\" WHERE \"catalog\"<61298;"
}
] |
[
{
"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 \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the score of the game with 96 points?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"points\"=96;"
}
] |
[
{
"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 \"march\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What was the score of the game with a record of 34\u201317\u201311\u20132?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='34\u201317\u201311\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record after the game at Rich Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"game_site\"='rich stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_goalscorers\" (\n \"name\" text,\n \"goals\" real,\n \"caps\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: When was the first cap associated with 74 caps?"
},
{
"role": "assistant",
"content": "SELECT \"first_cap\" FROM \"top_goalscorers\" WHERE \"caps\"=74;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_goalscorers\" (\n \"name\" text,\n \"goals\" real,\n \"caps\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: How many goals are associated with over 97 caps and a Latest cap of april 24, 2013?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"goals\") FROM \"top_goalscorers\" WHERE \"latest_cap\"='april 24, 2013' AND \"caps\">97;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_goalscorers\" (\n \"name\" text,\n \"goals\" real,\n \"caps\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: When was the first cap associated with 39 caps and under 33 goals?"
},
{
"role": "assistant",
"content": "SELECT \"first_cap\" FROM \"top_goalscorers\" WHERE \"goals\"<33 AND \"caps\"=39;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_goalscorers\" (\n \"name\" text,\n \"goals\" real,\n \"caps\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: What is the highest number of goals associated with 39 caps?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals\") FROM \"top_goalscorers\" WHERE \"caps\"=39;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"april\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many days in April has a record of 42\u201322\u201312\u20133, and less than 99 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"april\") FROM \"regular_season\" WHERE \"record\"='42\u201322\u201312\u20133' AND \"points\"<99;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Name the total number of points for 44 game and january more than 15"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"regular_season\" WHERE \"game\"=44 AND \"january\">15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Men's singles of k\u0119stutis navickas, and a Women's singles of ugn\u0117 urbonait\u0117, and a Year larger than 2004 involved which mens double?"
},
{
"role": "assistant",
"content": "SELECT \"men_s_doubles\" FROM \"past_winners\" WHERE \"men_s_singles\"='k\u0119stutis navickas' AND \"women_s_singles\"='ugn\u0117 urbonait\u0117' AND \"year\">2004;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Women's singles of akvil\u0117 stapu\u0161aityt\u0117, and a Year of 2010 had what mixed doubles?"
},
{
"role": "assistant",
"content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"women_s_singles\"='akvil\u0117 stapu\u0161aityt\u0117' AND \"year\"=2010;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_winners\" (\n \"year\" real,\n \"men_s_singles\" text,\n \"women_s_singles\" text,\n \"men_s_doubles\" text,\n \"women_s_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Year smaller than 1993, and a Women's singles of j\u016brat\u0117 markaityt\u0117, and a Men's singles of ar\u016bnas petkevi\u010dius involved which women's doubles?"
},
{
"role": "assistant",
"content": "SELECT \"women_s_doubles\" FROM \"past_winners\" WHERE \"year\"<1993 AND \"women_s_singles\"='j\u016brat\u0117 markaityt\u0117' AND \"men_s_singles\"='ar\u016bnas petkevi\u010dius';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"week\" text,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"nfl_recap\" text\n);\n\nQuestion: Which Date had a Result of 7\u201320?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"preseason\" WHERE \"result\"='7\u201320';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"week\" text,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"nfl_recap\" text\n);\n\nQuestion: Which Date had an Opponent of buffalo bills?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"preseason\" WHERE \"opponent\"='buffalo bills';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"week\" text,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"nfl_recap\" text\n);\n\nQuestion: Which Kickoff had a Game Site of bank of america stadium?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff\" FROM \"preseason\" WHERE \"game_site\"='bank of america stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"week\" text,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"nfl_recap\" text\n);\n\nQuestion: Which Kickoff had a Game Site of fawcett stadium?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff\" FROM \"preseason\" WHERE \"game_site\"='fawcett stadium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"week\" text,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"nfl_recap\" text\n);\n\nQuestion: Which NFL Recap had a Kickoff of 7:00pm edt?"
},
{
"role": "assistant",
"content": "SELECT \"nfl_recap\" FROM \"preseason\" WHERE \"kickoff\"='7:00pm edt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"week\" text,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text,\n \"nfl_recap\" text\n);\n\nQuestion: Which NFL Recap had a Record of 1\u20133?"
},
{
"role": "assistant",
"content": "SELECT \"nfl_recap\" FROM \"preseason\" WHERE \"record\"='1\u20133';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"january\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What was the Record on Game 50?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"game\"=50;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: what player score is higher than 17"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"round\"=17;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"distribution\" (\n \"region\" text,\n \"total_population\" real,\n \"manchu\" real,\n \"percentage_in_manchu_population\" text,\n \"regional_percentage_of_population\" real\n);\n\nQuestion: What is the lowest population associated with a Regional Percentage of Population of 2.95?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_population\") FROM \"distribution\" WHERE \"regional_percentage_of_population\"=2.95;"
}
] |
[
{
"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: Which opponent has an attendance of 17,015?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"attendance\"='17,015';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which Frequency MHz is the highest one that has a Call sign of k241an?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"frequency_m_hz\") FROM \"translators\" WHERE \"call_sign\"='k241an';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"erp_w\") FROM \"translators\" WHERE \"frequency_m_hz\">88.3 AND \"city_of_license\"='lewis, kansas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which FCC info has a ERP W smaller than 222, and a Call sign of k297ai?"
},
{
"role": "assistant",
"content": "SELECT \"fcc_info\" FROM \"translators\" WHERE \"erp_w\"<222 AND \"call_sign\"='k297ai';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which City of license has a Call sign of k241an?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license\" FROM \"translators\" WHERE \"call_sign\"='k241an';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"translators\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: Which Class has an ERP W of 222?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"translators\" WHERE \"erp_w\"=222;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_tournament_performance_timeli\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"grand_slam_tournament_performance_timeli\" WHERE \"surface\"='clay' AND \"year\">2006 AND \"opponent\"='david ferrer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_tournament_performance_timeli\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which championship is in a year later than 2010 on a grass surface?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"grand_slam_tournament_performance_timeli\" WHERE \"year\">2010 AND \"surface\"='grass';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_slam_tournament_performance_timeli\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"grand_slam_tournament_performance_timeli\" WHERE \"opponent\"='roger federer' AND \"surface\"='clay' AND \"year\"<2007;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: How many weeks have an attendance greater than 21,231, with l 38-10 as the result?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\">'21,231' AND \"result\"='l 38-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\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which opponent has an attendance greater than 57,491, with october 28, 1962 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"attendance\">'57,491' AND \"date\"='october 28, 1962';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the largest attendance that has December 16, 1962 as the date?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"date\"='december 16, 1962';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the largest week that has t 35-35 as the result?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"result\"='t 35-35';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_results_by_season\" (\n \"played\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"pct_win\" text\n);\n\nQuestion: Name the total number of no result for losses more than 1 and played of 38 and wins less than 19"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_result\") FROM \"summary_of_results_by_season\" WHERE \"losses\">1 AND \"played\"=38 AND \"wins\"<19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_results_by_season\" (\n \"played\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"pct_win\" text\n);\n\nQuestion: Name the sum of played with wins more than 19"
},
{
"role": "assistant",
"content": "SELECT SUM(\"played\") FROM \"summary_of_results_by_season\" WHERE \"wins\">19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_results_by_season\" (\n \"played\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"pct_win\" text\n);\n\nQuestion: Name the total number of losses with number result less than 0"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"losses\") FROM \"summary_of_results_by_season\" WHERE \"no_result\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_scorers\" (\n \"rank\" text,\n \"scorer\" text,\n \"club\" text,\n \"goals\" real,\n \"matches\" text\n);\n\nQuestion: Which Rank has Goals larger than 4, and a Scorer of oh seok-jae?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"top_scorers\" WHERE \"goals\">4 AND \"scorer\"='oh seok-jae';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_scorers\" (\n \"rank\" text,\n \"scorer\" text,\n \"club\" text,\n \"goals\" real,\n \"matches\" text\n);\n\nQuestion: Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"goals\") FROM \"top_scorers\" WHERE \"matches\"='16' AND \"scorer\"='park sang-in';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_scorers\" (\n \"rank\" text,\n \"scorer\" text,\n \"club\" text,\n \"goals\" real,\n \"matches\" text\n);\n\nQuestion: Which Club has a Rank of 1?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"top_scorers\" WHERE \"rank\"='1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"top_scorers\" (\n \"rank\" text,\n \"scorer\" text,\n \"club\" text,\n \"goals\" real,\n \"matches\" text\n);\n\nQuestion: Which Goals have a Club of hallelujah fc, and a Rank of 7?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"goals\") FROM \"top_scorers\" WHERE \"club\"='hallelujah fc' AND \"rank\"='7';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_86_ohio_state_0\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many Extra points have Touchdowns larger than 2, and Field goals larger than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"extra_points\") FROM \"michigan_86_ohio_state_0\" WHERE \"touchdowns\">2 AND \"field_goals\">0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_86_ohio_state_0\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Which Field goals is the highest one that has Touchdowns of 0, and Points larger than 4?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"field_goals\") FROM \"michigan_86_ohio_state_0\" WHERE \"touchdowns\"=0 AND \"points\">4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics_at_michigan\" (\n \"year\" text,\n \"tackles\" real,\n \"assists\" real,\n \"totals\" real,\n \"interceptions\" real,\n \"high_game_tackles\" text\n);\n\nQuestion: How many Totals have a High Game Tackles of 19 (purdue), and Interceptions smaller than 3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"totals\") FROM \"statistics_at_michigan\" WHERE \"high_game_tackles\"='19 (purdue)' AND \"interceptions\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"125cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the grid number of Sandro Cortese, who has Aprilia as the manufacturer and less than 19 laps?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"grid\") FROM \"125cc_classification\" WHERE \"manufacturer\"='aprilia' AND \"laps\"<19 AND \"rider\"='sandro cortese';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_ranking_in_the_championship_pla\" (\n \"rank\" real,\n \"club\" text,\n \"seasons\" real,\n \"played\" real,\n \"drew\" real,\n \"lost\" real,\n \"points\" real,\n \"avg_points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_diff\" real\n);\n\nQuestion: Which Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"all_time_ranking_in_the_championship_pla\" WHERE \"lost\"<12 AND \"played\">20 AND \"avg_points\">1.73;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_ranking_in_the_championship_pla\" (\n \"rank\" real,\n \"club\" text,\n \"seasons\" real,\n \"played\" real,\n \"drew\" real,\n \"lost\" real,\n \"points\" real,\n \"avg_points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_diff\" real\n);\n\nQuestion: Which Drew has a Rank of 5, and a Played larger than 30?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"drew\") FROM \"all_time_ranking_in_the_championship_pla\" WHERE \"rank\"=5 AND \"played\">30;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_ranking_in_the_championship_pla\" (\n \"rank\" real,\n \"club\" text,\n \"seasons\" real,\n \"played\" real,\n \"drew\" real,\n \"lost\" real,\n \"points\" real,\n \"avg_points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_diff\" real\n);\n\nQuestion: Which Rank has a Club of zulte waregem, and Points larger than 22?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"all_time_ranking_in_the_championship_pla\" WHERE \"club\"='zulte waregem' AND \"points\">22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_ranking_in_the_championship_pla\" (\n \"rank\" real,\n \"club\" text,\n \"seasons\" real,\n \"played\" real,\n \"drew\" real,\n \"lost\" real,\n \"points\" real,\n \"avg_points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_diff\" real\n);\n\nQuestion: Which Lost has Seasons of 2, and Goals against larger than 43?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"lost\") FROM \"all_time_ranking_in_the_championship_pla\" WHERE \"seasons\"=2 AND \"goals_against\">43;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_time_ranking_in_the_championship_pla\" (\n \"rank\" real,\n \"club\" text,\n \"seasons\" real,\n \"played\" real,\n \"drew\" real,\n \"lost\" real,\n \"points\" real,\n \"avg_points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_diff\" real\n);\n\nQuestion: Which Drew has a Lost larger than 14?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"drew\") FROM \"all_time_ranking_in_the_championship_pla\" WHERE \"lost\">14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"time_et\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: Which Record has a Week smaller than 15, and an Opponent of at new york jets?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"week\"<15 AND \"opponent\"='at new york jets';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"time_et\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: Which Result has a Record of 5\u20134?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"record\"='5\u20134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"time_et\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: Which Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"time_et\"='1:00pm' AND \"opponent\"='kansas city chiefs';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"monday\" (\n \"7_00\" text,\n \"7_30\" text,\n \"8_00\" text,\n \"8_30\" text,\n \"9_00\" text,\n \"9_30\" text,\n \"10_00\" text,\n \"10_30\" text\n);\n\nQuestion: What is the 7:30 feature with an 8:30 feature Melrose Place?"
},
{
"role": "assistant",
"content": "SELECT \"7_30\" FROM \"monday\" WHERE \"8_30\"='melrose place';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"monday\" (\n \"7_00\" text,\n \"7_30\" text,\n \"8_00\" text,\n \"8_30\" text,\n \"9_00\" text,\n \"9_30\" text,\n \"10_00\" text,\n \"10_30\" text\n);\n\nQuestion: What is the 8:30 feature with a 7:00 feature Loft Story?"
},
{
"role": "assistant",
"content": "SELECT \"8_30\" FROM \"monday\" WHERE \"7_00\"='loft story';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"monday\" (\n \"7_00\" text,\n \"7_30\" text,\n \"8_00\" text,\n \"8_30\" text,\n \"9_00\" text,\n \"9_30\" text,\n \"10_00\" text,\n \"10_30\" text\n);\n\nQuestion: What is the 8:00 feature with a 7:00 feature Air Farce?"
},
{
"role": "assistant",
"content": "SELECT \"8_00\" FROM \"monday\" WHERE \"7_00\"='air farce';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"monday\" (\n \"7_00\" text,\n \"7_30\" text,\n \"8_00\" text,\n \"8_30\" text,\n \"9_00\" text,\n \"9_30\" text,\n \"10_00\" text,\n \"10_30\" text\n);\n\nQuestion: What is the 10:30 feature with Hercule as the 7:30 feature?"
},
{
"role": "assistant",
"content": "SELECT \"10_30\" FROM \"monday\" WHERE \"7_30\"='hercule';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"monday\" (\n \"7_00\" text,\n \"7_30\" text,\n \"8_00\" text,\n \"8_30\" text,\n \"9_00\" text,\n \"9_30\" text,\n \"10_00\" text,\n \"10_30\" text\n);\n\nQuestion: What is the 8:00 feature with Mad About You as the 8:30 feature?"
},
{
"role": "assistant",
"content": "SELECT \"8_00\" FROM \"monday\" WHERE \"8_30\"='mad about you';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"monday\" (\n \"7_00\" text,\n \"7_30\" text,\n \"8_00\" text,\n \"8_30\" text,\n \"9_00\" text,\n \"9_30\" text,\n \"10_00\" text,\n \"10_30\" text\n);\n\nQuestion: What is the 7:30 feature with an 8:00 feature of Cosby?"
},
{
"role": "assistant",
"content": "SELECT \"7_30\" FROM \"monday\" WHERE \"8_00\"='cosby';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"hindi\" text,\n \"romani\" text,\n \"domari\" text,\n \"lomavren\" text,\n \"persian\" text\n);\n\nQuestion: What is the Hindi associated with a Domari of t\u00e6r\u0259n?"
},
{
"role": "assistant",
"content": "SELECT \"hindi\" FROM \"classification\" WHERE \"domari\"='t\u00e6r\u0259n';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"hindi\" text,\n \"romani\" text,\n \"domari\" text,\n \"lomavren\" text,\n \"persian\" text\n);\n\nQuestion: What is the Lomavren associated with a Persian of se?"
},
{
"role": "assistant",
"content": "SELECT \"lomavren\" FROM \"classification\" WHERE \"persian\"='se';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"hindi\" text,\n \"romani\" text,\n \"domari\" text,\n \"lomavren\" text,\n \"persian\" text\n);\n\nQuestion: What is the Romani associated with a Domari of na?"
},
{
"role": "assistant",
"content": "SELECT \"romani\" FROM \"classification\" WHERE \"domari\"='na';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"hindi\" text,\n \"romani\" text,\n \"domari\" text,\n \"lomavren\" text,\n \"persian\" text\n);\n\nQuestion: What is the Domari associated with a Persian of yak, yek?"
},
{
"role": "assistant",
"content": "SELECT \"domari\" FROM \"classification\" WHERE \"persian\"='yak, yek';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"hindi\" text,\n \"romani\" text,\n \"domari\" text,\n \"lomavren\" text,\n \"persian\" text\n);\n\nQuestion: What is the Lomavren associated with a Hindi of s\u0101t?"
},
{
"role": "assistant",
"content": "SELECT \"lomavren\" FROM \"classification\" WHERE \"hindi\"='s\u0101t';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"official_versions\" (\n \"version\" text,\n \"length\" text,\n \"album\" text,\n \"remixed_by\" text,\n \"year\" real\n);\n\nQuestion: What is the Version before 2001 with a Length of 7:42?"
},
{
"role": "assistant",
"content": "SELECT \"version\" FROM \"official_versions\" WHERE \"year\"<2001 AND \"length\"='7:42';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"official_versions\" (\n \"version\" text,\n \"length\" text,\n \"album\" text,\n \"remixed_by\" text,\n \"year\" real\n);\n\nQuestion: In what Year is the length of the Song 7:42?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"official_versions\" WHERE \"length\"='7:42';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which College/Junior/Club Team (League) has a Position of right wing, and a Round smaller than 3?"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team_league\" FROM \"draft_picks\" WHERE \"position\"='right wing' AND \"round\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_orbit\" (\n \"orbital_regime\" text,\n \"launches\" real,\n \"successes\" real,\n \"failures\" real,\n \"accidentally_achieved\" real\n);\n\nQuestion: What is the orbital regime of launches greater than 4 and failures less than 2?"
},
{
"role": "assistant",
"content": "SELECT \"orbital_regime\" FROM \"by_orbit\" WHERE \"launches\">4 AND \"failures\"<2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_orbit\" (\n \"orbital_regime\" text,\n \"launches\" real,\n \"successes\" real,\n \"failures\" real,\n \"accidentally_achieved\" real\n);\n\nQuestion: What is the total of medium earth orbital regime, accidentally achieved and successes greater than 3?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"accidentally_achieved\") FROM \"by_orbit\" WHERE \"orbital_regime\"='medium earth' AND \"successes\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_orbit\" (\n \"orbital_regime\" text,\n \"launches\" real,\n \"successes\" real,\n \"failures\" real,\n \"accidentally_achieved\" real\n);\n\nQuestion: What is the greatest successes that have failures greater than 1 and launches less than 28?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"successes\") FROM \"by_orbit\" WHERE \"failures\">1 AND \"launches\"<28;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_orbit\" (\n \"orbital_regime\" text,\n \"launches\" real,\n \"successes\" real,\n \"failures\" real,\n \"accidentally_achieved\" real\n);\n\nQuestion: What is the total failures of heliocentric orbit orbital regimes and launches less than 1?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"failures\") FROM \"by_orbit\" WHERE \"orbital_regime\"='heliocentric orbit' AND \"launches\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" real,\n \"player\" text,\n \"team\" text,\n \"year\" real,\n \"bb_so\" real\n);\n\nQuestion: What was the rank of tris speaker when BB/SO was 7?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"see_also\" WHERE \"player\"='tris speaker' AND \"bb_so\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"rank\" real,\n \"player\" text,\n \"team\" text,\n \"year\" real,\n \"bb_so\" real\n);\n\nQuestion: What is the average rank for team cle when the BB/SO is 10.89?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"rank\") FROM \"see_also\" WHERE \"team\"='cle' AND \"bb_so\"=10.89;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"futures_titles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the name of a partner that played on a hard surface on 18 April 2011?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"futures_titles\" WHERE \"surface\"='hard' AND \"date\"='18 april 2011';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"futures_titles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the score for the final played on 2 July 2012?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"futures_titles\" WHERE \"date\"='2 july 2012';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_10_5\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the Score on February 18, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_15_10_5\" WHERE \"date\"='february 18, 2008';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_10_5\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the Opponent on the game played on a Hard Surface with a Score of 3\u20136, 6\u20133, [7\u201310]?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_the_final\" FROM \"doubles_15_10_5\" WHERE \"surface\"='hard' AND \"score\"='3\u20136, 6\u20133, [7\u201310]';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_10_5\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: On what Surface was the game with Partner David Martin played Scoring 4\u20136, 6\u20137 (4-7)?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"doubles_15_10_5\" WHERE \"partner\"='david martin' AND \"score\"='4\u20136, 6\u20137 (4-7)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_10_5\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the Outcome of the game with a Score of 3\u20136, 4\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"doubles_15_10_5\" WHERE \"score\"='3\u20136, 4\u20136';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_10_5\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the Partner on June 17, 2012?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_15_10_5\" WHERE \"date\"='june 17, 2012';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: What record has Glenn Robinson (16) as the leading scorer?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"april\" WHERE \"leading_scorer\"='glenn robinson (16)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: What date has 136-134 as the score?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"april\" WHERE \"score\"='136-134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"april\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"record\" text\n);\n\nQuestion: What home has 136-134 as the score?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"april\" WHERE \"score\"='136-134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"year\" real,\n \"location\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text\n);\n\nQuestion: What is the most recent year that China won a bronze?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"team\" WHERE \"bronze\"='china';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"year\" real,\n \"location\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text\n);\n\nQuestion: What is the oldest year that the location was at Guangzhou?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"team\" WHERE \"location\"='guangzhou';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"year\" real,\n \"location\" text,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text\n);\n\nQuestion: For how many years was the location at Beijing?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"team\" WHERE \"location\"='beijing';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.