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 \"1950s\" (\n \"country\" text,\n \"1951\" real,\n \"1952\" real,\n \"1953\" real,\n \"1954\" real,\n \"1955\" real,\n \"1956\" real,\n \"1957\" real,\n \"1958\" real,\n \"1959\" real\n);\n\nQuestion: What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?" }, { "role": "assistant", "content": "SELECT SUM(\"1955\") FROM \"1950s\" WHERE \"1956\">2.9 AND \"1953\">4.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"signings\" (\n \"rank\" real,\n \"player\" text,\n \"from\" text,\n \"transfer_fee_millions\" text,\n \"year\" real\n);\n\nQuestion: Where was Alex Song signed from after 2010?" }, { "role": "assistant", "content": "SELECT \"from\" FROM \"signings\" WHERE \"year\">2010 AND \"player\"='alex song';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"signings\" (\n \"rank\" real,\n \"player\" text,\n \"from\" text,\n \"transfer_fee_millions\" text,\n \"year\" real\n);\n\nQuestion: How many players were signed from Sevilla?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"signings\" WHERE \"from\"='sevilla';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dansefeber\" (\n \"week\" real,\n \"partner\" text,\n \"dance\" text,\n \"music\" text,\n \"result\" text\n);\n\nQuestion: In what Week resulting in the bottom 3 was Endre Jansen Partner?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"dansefeber\" WHERE \"result\"='bottom 3' AND \"partner\"='endre jansen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dansefeber\" (\n \"week\" real,\n \"partner\" text,\n \"dance\" text,\n \"music\" text,\n \"result\" text\n);\n\nQuestion: What Dance in Week 1 resulted in Safe?" }, { "role": "assistant", "content": "SELECT \"dance\" FROM \"dansefeber\" WHERE \"result\"='safe' AND \"week\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dansefeber\" (\n \"week\" real,\n \"partner\" text,\n \"dance\" text,\n \"music\" text,\n \"result\" text\n);\n\nQuestion: In what Week was the Locking Dance?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"dansefeber\" WHERE \"dance\"='locking';" } ]
[ { "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_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position has 7 as the round, with a pick # less than 214?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"round\"=7 AND \"pick_num\"<214;" } ]
[ { "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_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college has a round greater than 1, with dylan mcfarland as the player?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"nfl_draft\" WHERE \"round\">1 AND \"player\"='dylan mcfarland';" } ]
[ { "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_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player has a pick # greater than 207?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"pick_num\">207;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_american_albums\" (\n \"rank\" real,\n \"artist\" text,\n \"album\" text,\n \"peak_position\" real,\n \"sales\" real,\n \"certification\" text\n);\n\nQuestion: Which artist had a 4x platinum?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"top_10_american_albums\" WHERE \"certification\"='4x platinum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_american_albums\" (\n \"rank\" real,\n \"artist\" text,\n \"album\" text,\n \"peak_position\" real,\n \"sales\" real,\n \"certification\" text\n);\n\nQuestion: What was the highest peak position for the album one of the boys?" }, { "role": "assistant", "content": "SELECT MAX(\"peak_position\") FROM \"top_10_american_albums\" WHERE \"album\"='one of the boys';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_american_albums\" (\n \"rank\" real,\n \"artist\" text,\n \"album\" text,\n \"peak_position\" real,\n \"sales\" real,\n \"certification\" text\n);\n\nQuestion: How many sales had a peak position of 1 and a certification of 6x platinum?" }, { "role": "assistant", "content": "SELECT COUNT(\"sales\") FROM \"top_10_american_albums\" WHERE \"peak_position\"=1 AND \"certification\"='6x platinum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_american_albums\" (\n \"rank\" real,\n \"artist\" text,\n \"album\" text,\n \"peak_position\" real,\n \"sales\" real,\n \"certification\" text\n);\n\nQuestion: What album had a peak position of 6 and a certification of 3x platinum?" }, { "role": "assistant", "content": "SELECT \"album\" FROM \"top_10_american_albums\" WHERE \"certification\"='3x platinum' AND \"peak_position\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_american_albums\" (\n \"rank\" real,\n \"artist\" text,\n \"album\" text,\n \"peak_position\" real,\n \"sales\" real,\n \"certification\" text\n);\n\nQuestion: How many sales had a peak position more than 2 and a Certification of 3x platinum?" }, { "role": "assistant", "content": "SELECT COUNT(\"sales\") FROM \"top_10_american_albums\" WHERE \"peak_position\">2 AND \"certification\"='3x platinum';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Who were the rowers who had a time of 7:39.70?" }, { "role": "assistant", "content": "SELECT \"rowers\" FROM \"heat_3\" WHERE \"time\"='7:39.70';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Who were the rowers from china wh had a rank smaller than 4?" }, { "role": "assistant", "content": "SELECT \"rowers\" FROM \"heat_3\" WHERE \"rank\"<4 AND \"country\"='china';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"rowers\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: What is the notes for the rowers from denmark?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"heat_3\" WHERE \"country\"='denmark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Bronze has a Nation of austria, and a Total larger than 6?" }, { "role": "assistant", "content": "SELECT MAX(\"bronze\") FROM \"medals_table\" WHERE \"nation\"='austria' AND \"total\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"medals_table\" WHERE \"silver\"=1 AND \"gold\"=0 AND \"nation\"='austria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Total has a Rank of 5, and a Bronze smaller than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"medals_table\" WHERE \"rank\"='5' AND \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Total has a Bronze of 5, and a Silver smaller than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"medals_table\" WHERE \"bronze\"=5 AND \"silver\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_of_the_circuit_des_ardennes\" (\n \"year\" real,\n \"formula\" text,\n \"driver\" text,\n \"constructor\" text,\n \"location\" text,\n \"report\" text\n);\n\nQuestion: What is the highest year with a formula of Grand Prix?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"winners_of_the_circuit_des_ardennes\" WHERE \"formula\"='grand prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_of_the_circuit_des_ardennes\" (\n \"year\" real,\n \"formula\" text,\n \"driver\" text,\n \"constructor\" text,\n \"location\" text,\n \"report\" text\n);\n\nQuestion: Which formula had a driver of John Moore-Brabazon?" }, { "role": "assistant", "content": "SELECT \"formula\" FROM \"winners_of_the_circuit_des_ardennes\" WHERE \"driver\"='john moore-brabazon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_of_the_circuit_des_ardennes\" (\n \"year\" real,\n \"formula\" text,\n \"driver\" text,\n \"constructor\" text,\n \"location\" text,\n \"report\" text\n);\n\nQuestion: Which driver had a year under 1905?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"winners_of_the_circuit_des_ardennes\" WHERE \"year\"<1905;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_of_the_circuit_des_ardennes\" (\n \"year\" real,\n \"formula\" text,\n \"driver\" text,\n \"constructor\" text,\n \"location\" text,\n \"report\" text\n);\n\nQuestion: How many years had a formula of Grand Prix?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"winners_of_the_circuit_des_ardennes\" WHERE \"formula\"='grand prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners_of_the_circuit_des_ardennes\" (\n \"year\" real,\n \"formula\" text,\n \"driver\" text,\n \"constructor\" text,\n \"location\" text,\n \"report\" text\n);\n\nQuestion: Which location was won by George Heath?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"winners_of_the_circuit_des_ardennes\" WHERE \"driver\"='george heath';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_statistics_at_least_1_000_000_passe\" (\n \"country\" text,\n \"airport\" text,\n \"city\" text,\n \"2010\" real,\n \"change_10_09\" text\n);\n\nQuestion: What is the 2010 total for ghana?" }, { "role": "assistant", "content": "SELECT COUNT(\"2010\") FROM \"2010_statistics_at_least_1_000_000_passe\" WHERE \"country\"='ghana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_statistics_at_least_1_000_000_passe\" (\n \"country\" text,\n \"airport\" text,\n \"city\" text,\n \"2010\" real,\n \"change_10_09\" text\n);\n\nQuestion: Which country is the nnamdi azikiwe international airport in?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"2010_statistics_at_least_1_000_000_passe\" WHERE \"airport\"='nnamdi azikiwe international airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_3\" (\n \"rank\" real,\n \"lane\" real,\n \"athlete\" text,\n \"nationality\" text,\n \"time\" real,\n \"react\" real\n);\n\nQuestion: What is the average lane for Kenya with react larger than 0.212?" }, { "role": "assistant", "content": "SELECT AVG(\"lane\") FROM \"heat_3\" WHERE \"nationality\"='kenya' AND \"react\">0.212;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: what is the highest rank for tim maeyens?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"heat_1\" WHERE \"athlete\"='tim maeyens';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: what is the notes for andre vonarburg?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"heat_1\" WHERE \"athlete\"='andre vonarburg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Who is the athlete from greece?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"heat_1\" WHERE \"country\"='greece';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: who is the athlete with the rank smaller than 2?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"heat_1\" WHERE \"rank\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heat_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: what is the notes for the athlete with the time of 7:38.87?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"heat_1\" WHERE \"time\"='7:38.87';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the sum of the gold medals of the nation with 4 silvers and more than 6 total medals?" }, { "role": "assistant", "content": "SELECT SUM(\"gold\") FROM \"medals_table\" WHERE \"silver\"=4 AND \"total\">6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest number of bronze medals of west germany, which has more than 0 golds?" }, { "role": "assistant", "content": "SELECT MAX(\"bronze\") FROM \"medals_table\" WHERE \"nation\"='west germany' AND \"gold\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"medals_table\" WHERE \"bronze\">2 AND \"silver\">0 AND \"nation\"='soviet union';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westbound_record_breakers_blue_riband_ho\" (\n \"ship\" text,\n \"year\" real,\n \"dates\" text,\n \"line\" text,\n \"from\" text,\n \"distance\" text,\n \"days_hours_minutes\" text,\n \"speed\" text\n);\n\nQuestion: What year did the ship Europa, have the dates of 14 \u2013 23 October?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"westbound_record_breakers_blue_riband_ho\" WHERE \"ship\"='europa' AND \"dates\"='14 \u2013 23 october';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westbound_record_breakers_blue_riband_ho\" (\n \"ship\" text,\n \"year\" real,\n \"dates\" text,\n \"line\" text,\n \"from\" text,\n \"distance\" text,\n \"days_hours_minutes\" text,\n \"speed\" text\n);\n\nQuestion: What is the ship in the Cunard line from Liverpool 19 \u2013 29 July?" }, { "role": "assistant", "content": "SELECT \"ship\" FROM \"westbound_record_breakers_blue_riband_ho\" WHERE \"line\"='cunard' AND \"from\"='liverpool' AND \"dates\"='19 \u2013 29 july';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westbound_record_breakers_blue_riband_ho\" (\n \"ship\" text,\n \"year\" real,\n \"dates\" text,\n \"line\" text,\n \"from\" text,\n \"distance\" text,\n \"days_hours_minutes\" text,\n \"speed\" text\n);\n\nQuestion: What is the distance for 5 d, 23 h, 7 m?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"westbound_record_breakers_blue_riband_ho\" WHERE \"days_hours_minutes\"='5 d, 23 h, 7 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westbound_record_breakers_blue_riband_ho\" (\n \"ship\" text,\n \"year\" real,\n \"dates\" text,\n \"line\" text,\n \"from\" text,\n \"distance\" text,\n \"days_hours_minutes\" text,\n \"speed\" text\n);\n\nQuestion: What is the Days, hours, minutes for the GW line from Liverpool?" }, { "role": "assistant", "content": "SELECT \"days_hours_minutes\" FROM \"westbound_record_breakers_blue_riband_ho\" WHERE \"line\"='gw' AND \"from\"='liverpool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"westbound_record_breakers_blue_riband_ho\" (\n \"ship\" text,\n \"year\" real,\n \"dates\" text,\n \"line\" text,\n \"from\" text,\n \"distance\" text,\n \"days_hours_minutes\" text,\n \"speed\" text\n);\n\nQuestion: What is the Days, hours, minutes for 21 \u2013 26 October?" }, { "role": "assistant", "content": "SELECT \"days_hours_minutes\" FROM \"westbound_record_breakers_blue_riband_ho\" WHERE \"dates\"='21 \u2013 26 october';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"county\" text,\n \"year_joined\" text,\n \"year_left\" text\n);\n\nQuestion: Which year did the school with the mascot of the Vikings join?" }, { "role": "assistant", "content": "SELECT \"year_joined\" FROM \"former_members\" WHERE \"mascot\"='vikings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"time\" text,\n \"writer_s\" text,\n \"performer_s\" text,\n \"producer_s\" text,\n \"recorded_at\" text\n);\n\nQuestion: Who wrote the album recorded at funhouse studios with a time of 3:27?" }, { "role": "assistant", "content": "SELECT \"writer_s\" FROM \"track_listing\" WHERE \"recorded_at\"='funhouse studios' AND \"time\"='3:27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"time\" text,\n \"writer_s\" text,\n \"performer_s\" text,\n \"producer_s\" text,\n \"recorded_at\" text\n);\n\nQuestion: Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?" }, { "role": "assistant", "content": "SELECT \"performer_s\" FROM \"track_listing\" WHERE \"recorded_at\"='the cabin in the woods studio' AND \"time\"='3:16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"flt_apps\" text,\n \"flt_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: Which League Cup Goals have a League Cup Apps of 1 (1)?" }, { "role": "assistant", "content": "SELECT \"league_cup_goals\" FROM \"appearances_and_goals\" WHERE \"league_cup_apps\"='1 (1)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"flt_apps\" text,\n \"flt_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?" }, { "role": "assistant", "content": "SELECT \"fa_cup_apps\" FROM \"appearances_and_goals\" WHERE \"total_goals\">6 AND \"fa_cup_goals\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"appearances_and_goals\" (\n \"name\" text,\n \"nation\" text,\n \"position\" text,\n \"league_apps\" text,\n \"league_goals\" real,\n \"fa_cup_apps\" text,\n \"fa_cup_goals\" real,\n \"league_cup_apps\" text,\n \"league_cup_goals\" real,\n \"flt_apps\" text,\n \"flt_goals\" real,\n \"total_apps\" text,\n \"total_goals\" real\n);\n\nQuestion: How many League Goals have an FA Cup Apps of 0 (1)?" }, { "role": "assistant", "content": "SELECT COUNT(\"league_goals\") FROM \"appearances_and_goals\" WHERE \"fa_cup_apps\"='0 (1)';" } ]
[ { "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_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest round number in which Will Wilcox was selected?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"nfl_draft\" WHERE \"player\"='will wilcox';" } ]
[ { "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_num\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player went to college at Tennessee-Chattanooga?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"college\"='tennessee-chattanooga';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scandinavia\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Which Col (m) has an Elevation (m) smaller than 1,624?" }, { "role": "assistant", "content": "SELECT MIN(\"col_m\") FROM \"scandinavia\" WHERE \"elevation_m\"<'1,624';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scandinavia\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: How much Elevation (m) has a Prominence (m) larger than 1,754?" }, { "role": "assistant", "content": "SELECT SUM(\"elevation_m\") FROM \"scandinavia\" WHERE \"prominence_m\">'1,754';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scandinavia\" (\n \"peak\" text,\n \"country\" text,\n \"elevation_m\" real,\n \"prominence_m\" real,\n \"col_m\" real\n);\n\nQuestion: Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkev\u00e1rri, and an Elevation (m) larger than 1,834?" }, { "role": "assistant", "content": "SELECT MIN(\"col_m\") FROM \"scandinavia\" WHERE \"prominence_m\">'1,519' AND \"peak\"='jiehkkev\u00e1rri' AND \"elevation_m\">'1,834';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_round\" (\n \"rank\" real,\n \"archer\" text,\n \"1st_half\" real,\n \"2nd_half\" real,\n \"score\" real\n);\n\nQuestion: What is the highest score when the 1st half is smaller than 289 and rank smaller than 61?" }, { "role": "assistant", "content": "SELECT MAX(\"score\") FROM \"ranking_round\" WHERE \"1st_half\"<289 AND \"rank\"<61;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_round\" (\n \"rank\" real,\n \"archer\" text,\n \"1st_half\" real,\n \"2nd_half\" real,\n \"score\" real\n);\n\nQuestion: What is the lowest first half when the score is larger than 621 and the rank 35?" }, { "role": "assistant", "content": "SELECT MIN(\"1st_half\") FROM \"ranking_round\" WHERE \"score\">621 AND \"rank\"=35;" } ]
[ { "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 \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?" }, { "role": "assistant", "content": "SELECT \"grid\" FROM \"race\" WHERE \"points\">10 AND \"time_retired\"='+13.7 secs';" } ]
[ { "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 \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real,\n \"points\" real\n);\n\nQuestion: Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"race\" WHERE \"points\"=0 AND \"grid\">13 AND \"driver\"='alex yoong';" } ]
[ { "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: What is the hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?" }, { "role": "assistant", "content": "SELECT MAX(\"silver\") FROM \"medal_table\" WHERE \"rank\"='19' AND \"gold\"<2;" } ]
[ { "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: What nation finished with 11 silver medals?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"medal_table\" WHERE \"silver\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"pick\" real,\n \"player\" text,\n \"country_of_origin\" text,\n \"pba_team\" text,\n \"college\" text\n);\n\nQuestion: What is Benito Cheng's Pick number?" }, { "role": "assistant", "content": "SELECT \"pick\" FROM \"round_1\" WHERE \"player\"='benito cheng';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"pick\" real,\n \"player\" text,\n \"country_of_origin\" text,\n \"pba_team\" text,\n \"college\" text\n);\n\nQuestion: What is the Country of origin of PIck 6?" }, { "role": "assistant", "content": "SELECT \"country_of_origin\" FROM \"round_1\" WHERE \"pick\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"pick\" real,\n \"player\" text,\n \"country_of_origin\" text,\n \"pba_team\" text,\n \"college\" text\n);\n\nQuestion: What is Richard Bachmann's PBA team?" }, { "role": "assistant", "content": "SELECT \"pba_team\" FROM \"round_1\" WHERE \"player\"='richard bachmann';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"pick\" real,\n \"player\" text,\n \"country_of_origin\" text,\n \"pba_team\" text,\n \"college\" text\n);\n\nQuestion: What is Far Eastern College Johnny Abarrientos' Pick number?" }, { "role": "assistant", "content": "SELECT \"pick\" FROM \"round_1\" WHERE \"college\"='far eastern' AND \"player\"='johnny abarrientos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What home team has 10 as the tie no?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"third_round_proper\" WHERE \"tie_no\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the game score when the tie no is 7?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round_proper\" WHERE \"tie_no\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who was the away team on 10 January 1979 who had a tie no of 17?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"third_round_proper\" WHERE \"date\"='10 january 1979' AND \"tie_no\"='17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When was the game that has tie no 2?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"third_round_proper\" WHERE \"tie_no\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What round did the match at the Golden Trophy 1999 event end?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"event\"='golden trophy 1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What event had a record of 8\u20135\u20131?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='8\u20135\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hdr_tonemapping_and_exposure_fusion\" (\n \"name\" text,\n \"merging_to_hdr_from_ldr_images\" text,\n \"hdr_output_exr_hdr_logluv_etc\" text,\n \"tonemapping\" text,\n \"exposure_fusion\" text\n);\n\nQuestion: What's the HDR Output that has a name of name?" }, { "role": "assistant", "content": "SELECT \"hdr_output_exr_hdr_logluv_etc\" FROM \"hdr_tonemapping_and_exposure_fusion\" WHERE \"name\"='name';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hdr_tonemapping_and_exposure_fusion\" (\n \"name\" text,\n \"merging_to_hdr_from_ldr_images\" text,\n \"hdr_output_exr_hdr_logluv_etc\" text,\n \"tonemapping\" text,\n \"exposure_fusion\" text\n);\n\nQuestion: What's the exposure fusion of Panoramaplus x4?" }, { "role": "assistant", "content": "SELECT \"exposure_fusion\" FROM \"hdr_tonemapping_and_exposure_fusion\" WHERE \"name\"='panoramaplus x4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hdr_tonemapping_and_exposure_fusion\" (\n \"name\" text,\n \"merging_to_hdr_from_ldr_images\" text,\n \"hdr_output_exr_hdr_logluv_etc\" text,\n \"tonemapping\" text,\n \"exposure_fusion\" text\n);\n\nQuestion: What's the HDR output of Photovista Panorama?" }, { "role": "assistant", "content": "SELECT \"hdr_output_exr_hdr_logluv_etc\" FROM \"hdr_tonemapping_and_exposure_fusion\" WHERE \"name\"='photovista panorama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_largest_american_football_stadium\" (\n \"rank\" real,\n \"stadium\" text,\n \"capacity\" text,\n \"location\" text,\n \"home_team\" text\n);\n\nQuestion: Which location has 101,119 as the capacity?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"top_10_largest_american_football_stadium\" WHERE \"capacity\"='101,119';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_largest_american_football_stadium\" (\n \"rank\" real,\n \"stadium\" text,\n \"capacity\" text,\n \"location\" text,\n \"home_team\" text\n);\n\nQuestion: What is the lowest rank that has university park, pa as the location?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"top_10_largest_american_football_stadium\" WHERE \"location\"='university park, pa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_largest_american_football_stadium\" (\n \"rank\" real,\n \"stadium\" text,\n \"capacity\" text,\n \"location\" text,\n \"home_team\" text\n);\n\nQuestion: What home team has a rank greater than 6, and 94,392 as the capacity?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"top_10_largest_american_football_stadium\" WHERE \"rank\">6 AND \"capacity\"='94,392';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships_in_class\" (\n \"hull_number\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Who was the builder for the USS cambridge?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"ships_in_class\" WHERE \"name\"='uss cambridge';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships_in_class\" (\n \"hull_number\" text,\n \"name\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: What year was the USS Cambridge laid down?" }, { "role": "assistant", "content": "SELECT \"laid_down\" FROM \"ships_in_class\" WHERE \"name\"='uss cambridge';" } ]
[ { "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\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the number of the game when the record was 11-12?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"record\"='11-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score of Game 16?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the location and attendance at the game when the record was 9-6?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='9-6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_cup\" (\n \"round_leg\" text,\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What date has 3 as the round (leg)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"league_cup\" WHERE \"round_leg\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"golden_globe_awards\" (\n \"year\" real,\n \"category\" text,\n \"film\" text,\n \"result\" text,\n \"lost_to\" text\n);\n\nQuestion: What was the year of Bridget Jones: The Edge of Reason that was nominated?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"golden_globe_awards\" WHERE \"result\"='nominated' AND \"film\"='bridget jones: the edge of reason';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"golden_globe_awards\" (\n \"year\" real,\n \"category\" text,\n \"film\" text,\n \"result\" text,\n \"lost_to\" text\n);\n\nQuestion: Who was the loss to for the film Chicago?" }, { "role": "assistant", "content": "SELECT \"lost_to\" FROM \"golden_globe_awards\" WHERE \"film\"='chicago';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?" }, { "role": "assistant", "content": "SELECT \"ihsaa_football_class\" FROM \"indiana_high_school_athletics_conference\" WHERE \"ihsaa_class\"='aaa' AND \"location\"='nashville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which Mascot has an Enrollment of 640?" }, { "role": "assistant", "content": "SELECT \"mascot\" FROM \"indiana_high_school_athletics_conference\" WHERE \"enrollment\"=640;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which IHSAA Class has a Location of brazil?" }, { "role": "assistant", "content": "SELECT \"ihsaa_class\" FROM \"indiana_high_school_athletics_conference\" WHERE \"location\"='brazil';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indiana_high_school_athletics_conference\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"enrollment\" real,\n \"ihsaa_class\" text,\n \"ihsaa_football_class\" text,\n \"county\" text\n);\n\nQuestion: Which School has a Enrollment of 908?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"indiana_high_school_athletics_conference\" WHERE \"enrollment\"=908;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"criteria\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: What type of currency has a code of SEK?" }, { "role": "assistant", "content": "SELECT \"currency\" FROM \"criteria\" WHERE \"code\"='sek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"criteria\" (\n \"currency\" text,\n \"code\" text,\n \"entry_erm_ii\" text,\n \"central_rate\" text,\n \"official_target_date\" text\n);\n\nQuestion: What code is used to represent the currency of Croatian Kuna?" }, { "role": "assistant", "content": "SELECT \"code\" FROM \"criteria\" WHERE \"currency\"='croatian kuna';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models\" (\n \"chassis_code\" text,\n \"model_years\" text,\n \"model\" text,\n \"engine\" text,\n \"no_built\" real\n);\n\nQuestion: What's the model that has chassis code W116.036?" }, { "role": "assistant", "content": "SELECT \"model\" FROM \"models\" WHERE \"chassis_code\"='w116.036';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models\" (\n \"chassis_code\" text,\n \"model_years\" text,\n \"model\" text,\n \"engine\" text,\n \"no_built\" real\n);\n\nQuestion: What's the years that has a chassis code of W116.025 and number built was more than 150,593?" }, { "role": "assistant", "content": "SELECT \"model_years\" FROM \"models\" WHERE \"no_built\">'150,593' AND \"chassis_code\"='w116.025';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_german_champions_1973_1997\" (\n \"year\" text,\n \"champions\" text,\n \"score\" text,\n \"runners_up\" text,\n \"venue\" text\n);\n\nQuestion: What the score of the 1992 game?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"west_german_champions_1973_1997\" WHERE \"year\"='1992';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_german_champions_1973_1997\" (\n \"year\" text,\n \"champions\" text,\n \"score\" text,\n \"runners_up\" text,\n \"venue\" text\n);\n\nQuestion: What is the score when TSV Siegen was the runner-up?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"west_german_champions_1973_1997\" WHERE \"runners_up\"='tsv siegen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_german_champions_1973_1997\" (\n \"year\" text,\n \"champions\" text,\n \"score\" text,\n \"runners_up\" text,\n \"venue\" text\n);\n\nQuestion: What year was the game at Bad Neuenahr Eppelborn?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"west_german_champions_1973_1997\" WHERE \"venue\"='bad neuenahr eppelborn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_german_champions_1973_1997\" (\n \"year\" text,\n \"champions\" text,\n \"score\" text,\n \"runners_up\" text,\n \"venue\" text\n);\n\nQuestion: What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 \u2013 2 *?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"west_german_champions_1973_1997\" WHERE \"runners_up\"='tennis borussia berlin' AND \"score\"='4 \u2013 2 *';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"west_german_champions_1973_1997\" (\n \"year\" text,\n \"champions\" text,\n \"score\" text,\n \"runners_up\" text,\n \"venue\" text\n);\n\nQuestion: What team was runner-up at Bergisch Gladbach in 1983?" }, { "role": "assistant", "content": "SELECT \"runners_up\" FROM \"west_german_champions_1973_1997\" WHERE \"venue\"='bergisch gladbach' AND \"year\"='1983';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What was the time of the swimmer in lane 7?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"semifinal_2\" WHERE \"lane\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What was the rank of the swimmer with a time of 1:55.40?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"semifinal_2\" WHERE \"time\"='1:55.40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: What was the date for game 13?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game\"='13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: What is the record for the opponent St. Louis Cardinals?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='st. louis cardinals';" } ]