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 \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Date of april 9 had what score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='april 9';" } ]
[ { "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: Record of 11\u201312 involved what average attendance figures?" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"game_log\" WHERE \"record\"='11\u201312';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_special_elections\" (\n \"district\" real,\n \"congress\" text,\n \"date\" text,\n \"predecessor\" text,\n \"winner\" text\n);\n\nQuestion: What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date?" }, { "role": "assistant", "content": "SELECT \"predecessor\" FROM \"list_of_special_elections\" WHERE \"district\"<11 AND \"congress\"='68th' AND \"date\"='may 1, 1923';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"frequency_specifications\" (\n \"hyper_transport_version\" real,\n \"year\" real,\n \"max_ht_frequency\" text,\n \"max_link_width\" text,\n \"max_aggregate_bandwidth_bi_directional\" text,\n \"max_bandwidth_at_16_bit_unidirectional\" text,\n \"max_bandwidth_at_32_bit_unidirectional\" text\n);\n\nQuestion: What Hyper Transport version has 22.4 gb/s of Max. Aggregate bandwidth?" }, { "role": "assistant", "content": "SELECT \"hyper_transport_version\" FROM \"frequency_specifications\" WHERE \"max_aggregate_bandwidth_bi_directional\"='22.4 gb/s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"frequency_specifications\" (\n \"hyper_transport_version\" real,\n \"year\" real,\n \"max_ht_frequency\" text,\n \"max_link_width\" text,\n \"max_aggregate_bandwidth_bi_directional\" text,\n \"max_bandwidth_at_16_bit_unidirectional\" text,\n \"max_bandwidth_at_32_bit_unidirectional\" text\n);\n\nQuestion: What is the Max Aggregate bandwidth with a HyperTransport of 2?" }, { "role": "assistant", "content": "SELECT \"max_aggregate_bandwidth_bi_directional\" FROM \"frequency_specifications\" WHERE \"hyper_transport_version\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1963\" (\n \"date\" text,\n \"city\" text,\n \"opponent\" text,\n \"results\" text,\n \"type_of_game\" text\n);\n\nQuestion: Who was the opposing team during the game in Zagreb?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"1963\" WHERE \"city\"='zagreb';" } ]
[ { "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: The record of 35-31 has what score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"record\"='35-31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: On June 12 what score had an attendance larger than 43,191?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"attendance\">'43,191' AND \"date\"='june 12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which Manufacturer has 1 lap and had an accident?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"250cc_classification\" WHERE \"laps\"=1 AND \"time_retired\"='accident';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which rider has a Manufacturer of honda with a time of +44.814?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"250cc_classification\" WHERE \"manufacturer\"='honda' AND \"time_retired\"='+44.814';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"250cc_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many grids have a time of +1:21.239 and more than 25 laps?" }, { "role": "assistant", "content": "SELECT COUNT(\"grid\") FROM \"250cc_classification\" WHERE \"time_retired\"='+1:21.239' AND \"laps\">25;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: What is the average episode number on 19 March 1993 with Jim Sweeney as performer 1?" }, { "role": "assistant", "content": "SELECT AVG(\"episode\") FROM \"series_5\" WHERE \"performer_1\"='jim sweeney' AND \"date\"='19 march 1993';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4?" }, { "role": "assistant", "content": "SELECT \"performer_2\" FROM \"series_5\" WHERE \"performer_4\"='josie lawrence' AND \"date\"='9 april 1993';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: What is the date of the episode with Ryan Stiles as performer 2, Colin Mochrie as performer 3, and Tony Slattery as performer 4?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"series_5\" WHERE \"performer_2\"='ryan stiles' AND \"performer_3\"='colin mochrie' AND \"performer_4\"='tony slattery';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Who is performer 4 on episode 3, where Jim Sweeney was performer 1?" }, { "role": "assistant", "content": "SELECT \"performer_4\" FROM \"series_5\" WHERE \"performer_1\"='jim sweeney' AND \"episode\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_5\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: What is the episode number where Jim Sweeney was performer 1 and Mike Mcshane was performer 4?" }, { "role": "assistant", "content": "SELECT SUM(\"episode\") FROM \"series_5\" WHERE \"performer_1\"='jim sweeney' AND \"performer_4\"='mike mcshane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"number\" text,\n \"wrestler\" text,\n \"entered\" real,\n \"pinned\" text,\n \"method\" text\n);\n\nQuestion: Which Wrestler has an Entered of 5, and a Pinned of mvp?" }, { "role": "assistant", "content": "SELECT \"wrestler\" FROM \"results\" WHERE \"entered\"=5 AND \"pinned\"='mvp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lines\" (\n \"line_color\" text,\n \"line\" text,\n \"route\" text,\n \"stations_served\" real,\n \"length\" text\n);\n\nQuestion: What route with the line color brown has the lowest number of stations served?" }, { "role": "assistant", "content": "SELECT MIN(\"stations_served\") FROM \"lines\" WHERE \"line_color\"='brown';" } ]
[ { "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 Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"draft_picks\" WHERE \"college_junior_club_team_league\"='torpedo yaroslavl (rus)';" } ]
[ { "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 Round has a Player of todd fedoruk?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"draft_picks\" WHERE \"player\"='todd fedoruk';" } ]
[ { "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: How much Grid has a Time/Retired of +1 lap, and a Driver of s\u00e9bastien bourdais, and Laps larger than 70?" }, { "role": "assistant", "content": "SELECT COUNT(\"grid\") FROM \"race\" WHERE \"time_retired\"='+1 lap' AND \"driver\"='s\u00e9bastien bourdais' AND \"laps\">70;" } ]
[ { "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: How many Laps have a Driver of david coulthard, and a Grid smaller than 14?" }, { "role": "assistant", "content": "SELECT SUM(\"laps\") FROM \"race\" WHERE \"driver\"='david coulthard' AND \"grid\"<14;" } ]
[ { "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: How many Laps have a Grid of 15?" }, { "role": "assistant", "content": "SELECT COUNT(\"laps\") FROM \"race\" WHERE \"grid\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"label\" text,\n \"catalogno\" text,\n \"remark\" text\n);\n\nQuestion: Which Catalogno was #160 us?" }, { "role": "assistant", "content": "SELECT \"catalogno\" FROM \"studio_albums\" WHERE \"remark\"='#160 us';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"label\" text,\n \"catalogno\" text,\n \"remark\" text\n);\n\nQuestion: What title was released in 1971?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"studio_albums\" WHERE \"year\"=1971;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"label\" text,\n \"catalogno\" text,\n \"remark\" text\n);\n\nQuestion: Whati s the format for the catalogno of st 491?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"studio_albums\" WHERE \"catalogno\"='st 491';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"label\" text,\n \"catalogno\" text,\n \"remark\" text\n);\n\nQuestion: What year was remark #104 us?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"studio_albums\" WHERE \"remark\"='#104 us';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"label\" text,\n \"catalogno\" text,\n \"remark\" text\n);\n\nQuestion: What title had a remark of #21 us [riaa certified gold january 3, 1990]?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"studio_albums\" WHERE \"remark\"='#21 us [riaa certified gold january 3, 1990]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"studio_albums\" (\n \"year\" real,\n \"title\" text,\n \"format\" text,\n \"label\" text,\n \"catalogno\" text,\n \"remark\" text\n);\n\nQuestion: What catalogno was in 1971 and had a remark of #27 us?" }, { "role": "assistant", "content": "SELECT \"catalogno\" FROM \"studio_albums\" WHERE \"year\"=1971 AND \"remark\"='#27 us';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: what AAAAA class has the school year of 1990-91?" }, { "role": "assistant", "content": "SELECT \"class_aaaaa\" FROM \"individual_overall\" WHERE \"school_year\"='1990-91';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: what AAA class has a school year of 1989-90?" }, { "role": "assistant", "content": "SELECT \"class_aaa\" FROM \"individual_overall\" WHERE \"school_year\"='1989-90';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What school year has a AAAA class of college station a&m consolidated?" }, { "role": "assistant", "content": "SELECT \"school_year\" FROM \"individual_overall\" WHERE \"class_aaaa\"='college station a&m consolidated';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: what AA class has a AAA class of commerce?" }, { "role": "assistant", "content": "SELECT \"class_aa\" FROM \"individual_overall\" WHERE \"class_aaa\"='commerce';" } ]
[ { "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 average week for the game against baltimore colts with less than 41,062 in attendance?" }, { "role": "assistant", "content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"opponent\"='baltimore colts' AND \"attendance\"<'41,062';" } ]
[ { "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 was the average week for the gaime against the philadelphia eagles with less than 31,066 in attendance?" }, { "role": "assistant", "content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"opponent\"='philadelphia eagles' AND \"attendance\"<'31,066';" } ]
[ { "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 highest attendance for the game after week 1 on November 12, 1961?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"week\">1 AND \"date\"='november 12, 1961';" } ]
[ { "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 was the result of the game on week 4?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\"=4;" } ]
[ { "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 is the lowest Round of joe patterson?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"nfl_draft\" WHERE \"player\"='joe patterson';" } ]
[ { "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: Which School/Club Team has a Round larger than 16?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"nfl_draft\" WHERE \"round\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: What is listed as the highest Points that's got a Position that's smaller than 1?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"torneo_clausura\" WHERE \"position\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the Draws average that has a Played that's smaller than 18?" }, { "role": "assistant", "content": "SELECT AVG(\"draws\") FROM \"torneo_clausura\" WHERE \"played\"<18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the lowest Wins that has the Team of Olimpia and Draws that's smaller than 4?" }, { "role": "assistant", "content": "SELECT MIN(\"wins\") FROM \"torneo_clausura\" WHERE \"team\"='olimpia' AND \"draws\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the highest Played that's for the Team of Cerro Porte\u00f1o, with a Position that's larger than 1?" }, { "role": "assistant", "content": "SELECT MAX(\"played\") FROM \"torneo_clausura\" WHERE \"team\"='cerro porte\u00f1o' AND \"position\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_6_9\" (\n \"outcome\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament included an opponent of Marinko Matosevic?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_2_6_9\" WHERE \"opponent\"='marinko matosevic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_2_6_9\" (\n \"outcome\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Who was the opponent when the score was 6-3, 6-3?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_2_6_9\" WHERE \"score\"='6-3, 6-3';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Can you tell me the Record that has the Home of ny islanders?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"december\" WHERE \"home\"='ny islanders';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Can you tell me the Record that has the Date of december 15?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"december\" WHERE \"date\"='december 15';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Can you tell me the Record that has the Home of detroit, and the Visitor of phoenix?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"december\" WHERE \"home\"='detroit' AND \"visitor\"='phoenix';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Can you tell me the Date that has the Visitor of florida?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"december\" WHERE \"visitor\"='florida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Which position had f/laps that was test driver?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"career_summary\" WHERE \"f_laps\"='test driver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: Which poles were there for the 8th position?" }, { "role": "assistant", "content": "SELECT \"poles\" FROM \"career_summary\" WHERE \"position\"='8th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What race was there in the formula one series when there was a test driver?" }, { "role": "assistant", "content": "SELECT \"races\" FROM \"career_summary\" WHERE \"series\"='formula one' AND \"poles\"='test driver';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"total_points\" real\n);\n\nQuestion: Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?" }, { "role": "assistant", "content": "SELECT AVG(\"extra_points_1_point\") FROM \"scoring_leaders\" WHERE \"total_points\"<30 AND \"touchdowns_5_points\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"total_points\" real\n);\n\nQuestion: How many Touchdowns (5 points) have an Extra points 1 point of 0, and a Field goals (5 points) larger than 0?" }, { "role": "assistant", "content": "SELECT COUNT(\"touchdowns_5_points\") FROM \"scoring_leaders\" WHERE \"extra_points_1_point\"=0 AND \"field_goals_5_points\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"total_points\" real\n);\n\nQuestion: Which Extra points 1 point is the highest one that has a Total Points smaller than 8?" }, { "role": "assistant", "content": "SELECT MAX(\"extra_points_1_point\") FROM \"scoring_leaders\" WHERE \"total_points\"<8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"total_points\" real\n);\n\nQuestion: Which Extra points 1 point is the lowest one that has a Player of walter shaw?" }, { "role": "assistant", "content": "SELECT MIN(\"extra_points_1_point\") FROM \"scoring_leaders\" WHERE \"player\"='walter shaw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"total_points\" real\n);\n\nQuestion: How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13?" }, { "role": "assistant", "content": "SELECT COUNT(\"field_goals_5_points\") FROM \"scoring_leaders\" WHERE \"total_points\"=123 AND \"touchdowns_5_points\">13;" } ]
[ { "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: When did the Mixed double Women's singles of isabel rocha, from the year 1970, and a Women's doubles of isabel rocha ana margarida?" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"women_s_singles\"='isabel rocha' AND \"year\">1970 AND \"women_s_doubles\"='isabel rocha ana margarida';" } ]
[ { "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: What was the Mixed doubles that has a Women's players of maria gomes zamy gomes, and men's players of fernando silva ricardo fernandes?" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"past_winners\" WHERE \"women_s_doubles\"='maria gomes zamy gomes' AND \"men_s_doubles\"='fernando silva ricardo fernandes';" } ]
[ { "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: What was the Men's singles from the Year of 1966?" }, { "role": "assistant", "content": "SELECT \"men_s_singles\" FROM \"past_winners\" WHERE \"year\"=1966;" } ]
[ { "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: What was the Women's doubles that has a Men's singles of fernando silva, and in the year 1996?" }, { "role": "assistant", "content": "SELECT \"women_s_doubles\" FROM \"past_winners\" WHERE \"men_s_singles\"='fernando silva' AND \"year\"<1996;" } ]
[ { "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: What happened in the Men's doubles that had a Men's singles of marco vasconcelos, and a Year larger than 2000, and a Mixed doubles of alexandre paix\u00e3o filipa lamy, and a Women's singles of telma santos?" }, { "role": "assistant", "content": "SELECT \"men_s_doubles\" FROM \"past_winners\" WHERE \"men_s_singles\"='marco vasconcelos' AND \"year\">2000 AND \"mixed_doubles\"='alexandre paix\u00e3o filipa lamy' AND \"women_s_singles\"='telma santos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How many people attended the game with parent recording the decision and a Record of 42\u201318\u201310?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"regular_season\" WHERE \"decision\"='parent' AND \"record\"='42\u201318\u201310';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the team's record when vancouver was at home?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"home\"='vancouver';" } ]
[ { "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: Name the date for result of w 23-3 and attendance more than 25,000 for week more than 7" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\">'25,000' AND \"week\">7 AND \"result\"='w 23-3';" } ]
[ { "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: Name the opponent on november 22, 1942" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='november 22, 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What score did the Green Bay Packers get as visitor?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule\" WHERE \"visitor\"='green bay packers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: On October 31 what team played at home?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"schedule\" WHERE \"date\"='october 31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: On December 5 what team played their home game?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"schedule\" WHERE \"date\"='december 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: How many people attended the game on October 31?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='october 31';" } ]
[ { "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: What nationality is Rob Nicholson?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"player\"='rob nicholson';" } ]
[ { "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: What college or club team did Steve Jones play for?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team_league\" FROM \"draft_picks\" WHERE \"player\"='steve jones';" } ]
[ { "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: What nationality is Barry Duench?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"player\"='barry duench';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was Saskatoon Accelerators score on January 6, 2008?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"exhibition_schedule\" WHERE \"home_team\"='saskatoon accelerators' AND \"date\"='january 6, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the score on April 6, 2008?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"exhibition_schedule\" WHERE \"date\"='april 6, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: Which home team played on April 5, 2008?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"exhibition_schedule\" WHERE \"date\"='april 5, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: Which home team played on January 5, 2008?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"exhibition_schedule\" WHERE \"date\"='january 5, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the score at CN Centre on April 5, 2008?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"exhibition_schedule\" WHERE \"stadium\"='cn centre' AND \"date\"='april 5, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exhibition_schedule\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"visiting_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the score for Edmonton Drillers on January 6, 2008?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"exhibition_schedule\" WHERE \"visiting_team\"='edmonton drillers' AND \"date\"='january 6, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How much Silver has a Nation of mexico, and a Total larger than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"silver\") FROM \"medal_table\" WHERE \"nation\"='mexico' AND \"total\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How much Bronze has a Gold larger than 0, and a Total smaller than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"gold\">0 AND \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How much Bronze has a Nation of mexico, and a Total larger than 1?" }, { "role": "assistant", "content": "SELECT SUM(\"bronze\") FROM \"medal_table\" WHERE \"nation\"='mexico' AND \"total\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"district\" real,\n \"incumbent\" text,\n \"party\" text,\n \"elected\" real,\n \"status\" text\n);\n\nQuestion: In which District(s) has a Democrat held office since 1998?" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"results\" WHERE \"party\"='democrat' AND \"elected\">1998;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"total_team_ranking\" (\n \"rank\" real,\n \"country\" text,\n \"1st_place\" real,\n \"2nd_place\" real,\n \"3rd_place\" real,\n \"total\" real\n);\n\nQuestion: Which Rank is the Country of soviet union with a Total smaller than 19?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"total_team_ranking\" WHERE \"country\"='soviet union' AND \"total\"<19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"total_team_ranking\" (\n \"rank\" real,\n \"country\" text,\n \"1st_place\" real,\n \"2nd_place\" real,\n \"3rd_place\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest Rank of Denmark County with a Total smaller than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"total_team_ranking\" WHERE \"country\"='denmark' AND \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_card\" (\n \"weight_division\" text,\n \"winner\" text,\n \"loser\" text,\n \"method\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: Who was the loser of the heavyweight division fight that lasted a time of 2:24?" }, { "role": "assistant", "content": "SELECT \"loser\" FROM \"televised_card\" WHERE \"weight_division\"='heavyweight' AND \"time\"='2:24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_card\" (\n \"weight_division\" text,\n \"winner\" text,\n \"loser\" text,\n \"method\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What was the weight division for the fight that ended in a TKO (strikes)?" }, { "role": "assistant", "content": "SELECT \"weight_division\" FROM \"televised_card\" WHERE \"method\"='tko (strikes)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_card\" (\n \"weight_division\" text,\n \"winner\" text,\n \"loser\" text,\n \"method\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: Who was the loser of the fight against antonio silva?" }, { "role": "assistant", "content": "SELECT \"loser\" FROM \"televised_card\" WHERE \"winner\"='antonio silva';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"televised_card\" (\n \"weight_division\" text,\n \"winner\" text,\n \"loser\" text,\n \"method\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What was the average number of rounds in the fight where Tank Abbott lost?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"televised_card\" WHERE \"loser\"='tank abbott';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlanta_falcons_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: In what Round was a Defensive Tackle Pick # less than 19?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"atlanta_falcons_draft_history\" WHERE \"position\"='defensive tackle' AND \"pick_num\"<19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atlanta_falcons_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the Pick # with an Overall of 19?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"atlanta_falcons_draft_history\" WHERE \"overall\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"muay\" (\n \"athlete\" text,\n \"event\" text,\n \"quarterfinal\" text,\n \"semifinal\" text,\n \"final\" text\n);\n\nQuestion: What is the event result for athlete Ali Ekranpour?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"muay\" WHERE \"athlete\"='ali ekranpour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"muay\" (\n \"athlete\" text,\n \"event\" text,\n \"quarterfinal\" text,\n \"semifinal\" text,\n \"final\" text\n);\n\nQuestion: What is the final result for the 63.5 kg?" }, { "role": "assistant", "content": "SELECT \"final\" FROM \"muay\" WHERE \"event\"='63.5 kg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: What was the date of the tournament in Scotland with a score of 270 (\u201318)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"score\"='270 (\u201318)' AND \"location\"='scotland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" real\n);\n\nQuestion: Where was the tournament won by Hale Irwin (19)?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"tournament_results\" WHERE \"winner\"='hale irwin (19)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notation\" (\n \"fraction\" text,\n \"ellipsis\" text,\n \"vinculum\" text,\n \"dots\" text,\n \"parentheses\" text\n);\n\nQuestion: How much is vinculum when the parentheses are 0.(81)?" }, { "role": "assistant", "content": "SELECT \"vinculum\" FROM \"notation\" WHERE \"parentheses\"='0.(81)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notation\" (\n \"fraction\" text,\n \"ellipsis\" text,\n \"vinculum\" text,\n \"dots\" text,\n \"parentheses\" text\n);\n\nQuestion: What fraction has a value for dots of 0.\\dot{3}?" }, { "role": "assistant", "content": "SELECT \"fraction\" FROM \"notation\" WHERE \"dots\"='0.\\dot{3}';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notation\" (\n \"fraction\" text,\n \"ellipsis\" text,\n \"vinculum\" text,\n \"dots\" text,\n \"parentheses\" text\n);\n\nQuestion: What is the dot value when the ellipsis is 0.012345679\u2026?" }, { "role": "assistant", "content": "SELECT \"dots\" FROM \"notation\" WHERE \"ellipsis\"='0.012345679\u2026';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notation\" (\n \"fraction\" text,\n \"ellipsis\" text,\n \"vinculum\" text,\n \"dots\" text,\n \"parentheses\" text\n);\n\nQuestion: What fraction has parentheses of 0.(3)?" }, { "role": "assistant", "content": "SELECT \"fraction\" FROM \"notation\" WHERE \"parentheses\"='0.(3)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notation\" (\n \"fraction\" text,\n \"ellipsis\" text,\n \"vinculum\" text,\n \"dots\" text,\n \"parentheses\" text\n);\n\nQuestion: What is the value for parentheses with a dots value of 0.\\dot{6}?" }, { "role": "assistant", "content": "SELECT \"parentheses\" FROM \"notation\" WHERE \"dots\"='0.\\dot{6}';" } ]