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 \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text,\n \"note\" text\n);\n\nQuestion: Name the catalog with cd format" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"format\"='cd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text,\n \"note\" text\n);\n\nQuestion: Name the label with catalog of mhcl-20005" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"catalog\"='mhcl-20005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text,\n \"note\" text\n);\n\nQuestion: Name the date with catalog of alca-9198" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"release_history\" WHERE \"catalog\"='alca-9198';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text,\n \"note\" text\n);\n\nQuestion: Name the note for catalog of 32xa-106" }, { "role": "assistant", "content": "SELECT \"note\" FROM \"release_history\" WHERE \"catalog\"='32xa-106';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text,\n \"note\" text\n);\n\nQuestion: Name the catalog for alfa records and cd format" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"label\"='alfa records' AND \"format\"='cd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text,\n \"note\" text\n);\n\nQuestion: Name the format for 12cm note and catalog of alca-9198" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"note\"='12cm' AND \"catalog\"='alca-9198';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"germanic_tradition\" (\n \"sunday_sunna_s_l\" text,\n \"monday_mona_m_ni\" text,\n \"tuesday_tiw_tyr\" text,\n \"wednesday_woden_odin\" text,\n \"thursday_thunor_thor\" text,\n \"friday_frige_or_freya\" text,\n \"saturday_saturn\" text\n);\n\nQuestion: Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?" }, { "role": "assistant", "content": "SELECT \"monday_mona_m_ni\" FROM \"germanic_tradition\" WHERE \"thursday_thunor_thor\"='tongersdei';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"germanic_tradition\" (\n \"sunday_sunna_s_l\" text,\n \"monday_mona_m_ni\" text,\n \"tuesday_tiw_tyr\" text,\n \"wednesday_woden_odin\" text,\n \"thursday_thunor_thor\" text,\n \"friday_frige_or_freya\" text,\n \"saturday_saturn\" text\n);\n\nQuestion: Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag?" }, { "role": "assistant", "content": "SELECT \"tuesday_tiw_tyr\" FROM \"germanic_tradition\" WHERE \"sunday_sunna_s_l\"='sondag';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"christmas_number_ones\" (\n \"year\" real,\n \"artist\" text,\n \"album\" text,\n \"record_label\" text,\n \"weeks_at_number_one\" real\n);\n\nQuestion: What is the 1995 Album?" }, { "role": "assistant", "content": "SELECT \"album\" FROM \"christmas_number_ones\" WHERE \"year\"=1995;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"christmas_number_ones\" (\n \"year\" real,\n \"artist\" text,\n \"album\" text,\n \"record_label\" text,\n \"weeks_at_number_one\" real\n);\n\nQuestion: What album was recorded by the rca label?" }, { "role": "assistant", "content": "SELECT \"album\" FROM \"christmas_number_ones\" WHERE \"record_label\"='rca';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"christmas_number_ones\" (\n \"year\" real,\n \"artist\" text,\n \"album\" text,\n \"record_label\" text,\n \"weeks_at_number_one\" real\n);\n\nQuestion: What's the sum of years when the Artist of the queen were less than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"christmas_number_ones\" WHERE \"artist\"='queen' AND \"weeks_at_number_one\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"christmas_number_ones\" (\n \"year\" real,\n \"artist\" text,\n \"album\" text,\n \"record_label\" text,\n \"weeks_at_number_one\" real\n);\n\nQuestion: What is the 1990 Album?" }, { "role": "assistant", "content": "SELECT \"album\" FROM \"christmas_number_ones\" WHERE \"year\"=1990;" } ]
[ { "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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the result of the game that was played at Soldier Field?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"game_site\"='soldier field';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Who lost the game with a record of 20-13?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='20-13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Who lost the game on May 28?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"date\"='may 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Who lost the game on May 26?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"date\"='may 26';" } ]
[ { "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 \"time\" text,\n \"att\" text,\n \"record\" text\n);\n\nQuestion: Which date has the record time of 3:01?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"time\"='3:01';" } ]
[ { "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 \"time\" text,\n \"att\" text,\n \"record\" text\n);\n\nQuestion: What is the score of the Devil Rays on April 24?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"opponent\"='devil rays' AND \"date\"='april 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"hitachi_ips_technology_development\" (\n \"name\" text,\n \"nickname\" text,\n \"year\" real,\n \"advantage\" text,\n \"transmittance_contrast_ratio\" text\n);\n\nQuestion: What is Ips-provectus transmittance/contrast ratio?" }, { "role": "assistant", "content": "SELECT \"transmittance_contrast_ratio\" FROM \"hitachi_ips_technology_development\" WHERE \"name\"='ips-provectus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sporting_events\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average silver for a rank less than 8, were there were no more than 4 bronze and 12 in total?" }, { "role": "assistant", "content": "SELECT AVG(\"silver\") FROM \"sporting_events\" WHERE \"rank\"<8 AND \"total\"=12 AND \"bronze\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sporting_events\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?" }, { "role": "assistant", "content": "SELECT SUM(\"gold\") FROM \"sporting_events\" WHERE \"total\"<7 AND \"nation\"='gabon' AND \"rank\"<17;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the opponent for april 24" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='april 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the score for attendance of 13,617" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"attendance\"='13,617';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the opponent for Score of postponed (rain) not rescheduled" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"score\"='postponed (rain) not rescheduled';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_administration\" (\n \"year\" text,\n \"superintendent\" text,\n \"glendale_principal\" text,\n \"h_h_principal\" text,\n \"maplemere_principal\" text,\n \"w_r_principal\" text,\n \"m_s_principal\" text,\n \"h_s_principal\" text,\n \"h_s_asst_principal\" text\n);\n\nQuestion: What is the H.S. Asst. principal with a Glendale principal Joyce Brace during 2002-2003?" }, { "role": "assistant", "content": "SELECT \"h_s_asst_principal\" FROM \"district_administration\" WHERE \"glendale_principal\"='joyce brace' AND \"year\"='2002-2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_administration\" (\n \"year\" text,\n \"superintendent\" text,\n \"glendale_principal\" text,\n \"h_h_principal\" text,\n \"maplemere_principal\" text,\n \"w_r_principal\" text,\n \"m_s_principal\" text,\n \"h_s_principal\" text,\n \"h_s_asst_principal\" text\n);\n\nQuestion: Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?" }, { "role": "assistant", "content": "SELECT \"h_s_principal\" FROM \"district_administration\" WHERE \"w_r_principal\"='dave lovering' AND \"m_s_principal\"='marty pizur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_administration\" (\n \"year\" text,\n \"superintendent\" text,\n \"glendale_principal\" text,\n \"h_h_principal\" text,\n \"maplemere_principal\" text,\n \"w_r_principal\" text,\n \"m_s_principal\" text,\n \"h_s_principal\" text,\n \"h_s_asst_principal\" text\n);\n\nQuestion: Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?" }, { "role": "assistant", "content": "SELECT \"glendale_principal\" FROM \"district_administration\" WHERE \"m_s_principal\"='greg smorel' AND \"h_s_principal\"='joleen reinholz' AND \"year\"='2006-2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_administration\" (\n \"year\" text,\n \"superintendent\" text,\n \"glendale_principal\" text,\n \"h_h_principal\" text,\n \"maplemere_principal\" text,\n \"w_r_principal\" text,\n \"m_s_principal\" text,\n \"h_s_principal\" text,\n \"h_s_asst_principal\" text\n);\n\nQuestion: Who is the h.h. principal with Jim Haught as h.s. principal, Charlie Taylor as maplemere principal, and Rich Auerbach as w.r. principal?" }, { "role": "assistant", "content": "SELECT \"h_h_principal\" FROM \"district_administration\" WHERE \"h_s_principal\"='jim haught' AND \"maplemere_principal\"='charlie taylor' AND \"w_r_principal\"='rich auerbach';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_administration\" (\n \"year\" text,\n \"superintendent\" text,\n \"glendale_principal\" text,\n \"h_h_principal\" text,\n \"maplemere_principal\" text,\n \"w_r_principal\" text,\n \"m_s_principal\" text,\n \"h_s_principal\" text,\n \"h_s_asst_principal\" text\n);\n\nQuestion: Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?" }, { "role": "assistant", "content": "SELECT \"h_h_principal\" FROM \"district_administration\" WHERE \"superintendent\"='james finch' AND \"maplemere_principal\"='charlie taylor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"district_administration\" (\n \"year\" text,\n \"superintendent\" text,\n \"glendale_principal\" text,\n \"h_h_principal\" text,\n \"maplemere_principal\" text,\n \"w_r_principal\" text,\n \"m_s_principal\" text,\n \"h_s_principal\" text,\n \"h_s_asst_principal\" text\n);\n\nQuestion: Who is the h.s. principal during 1973-1974?" }, { "role": "assistant", "content": "SELECT \"h_s_principal\" FROM \"district_administration\" WHERE \"year\"='1973-1974';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: what is the engine for year less than 1959 and points more than 4?" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\"<1959 AND \"points\">4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: what is the least year for 4 points?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"complete_formula_one_world_championship_\" WHERE \"points\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: what is the entrant for the ferrari v8 with points less than 4?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"engine\"='ferrari v8' AND \"points\"<4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: what is the average year for 0 points and ferrari v8?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"complete_formula_one_world_championship_\" WHERE \"points\"=0 AND \"engine\"='ferrari v8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"broadcast_rights\" (\n \"territory\" text,\n \"broadcaster\" text,\n \"channel\" real,\n \"launched\" text,\n \"closed\" text\n);\n\nQuestion: When did channel 83 in singapore launch?" }, { "role": "assistant", "content": "SELECT \"launched\" FROM \"broadcast_rights\" WHERE \"territory\"='singapore' AND \"channel\"=83;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"broadcast_rights\" (\n \"territory\" text,\n \"broadcaster\" text,\n \"channel\" real,\n \"launched\" text,\n \"closed\" text\n);\n\nQuestion: Where is channel 83 broadcasted?" }, { "role": "assistant", "content": "SELECT \"territory\" FROM \"broadcast_rights\" WHERE \"channel\"=83;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"broadcast_rights\" (\n \"territory\" text,\n \"broadcaster\" text,\n \"channel\" real,\n \"launched\" text,\n \"closed\" text\n);\n\nQuestion: Who broadcasts in malaysia?" }, { "role": "assistant", "content": "SELECT \"broadcaster\" FROM \"broadcast_rights\" WHERE \"territory\"='malaysia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: What are the engines for 1983?" }, { "role": "assistant", "content": "SELECT \"engine_s\" FROM \"complete_formula_one_results\" WHERE \"year\"=1983;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_results\" (\n \"year\" real,\n \"chassis\" text,\n \"engine_s\" text,\n \"tyres\" text,\n \"points\" text\n);\n\nQuestion: Which of the Chassis has Tyres of g, is after 1976, and has 1 point?" }, { "role": "assistant", "content": "SELECT \"chassis\" FROM \"complete_formula_one_results\" WHERE \"tyres\"='g' AND \"year\">1976 AND \"points\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_goals\" (\n \"name\" text,\n \"nation\" text,\n \"career\" text,\n \"goals\" real,\n \"appearances\" real\n);\n\nQuestion: How many appearances did Gary Depalma make when he scored less than 30 goals?" }, { "role": "assistant", "content": "SELECT \"appearances\" FROM \"most_goals\" WHERE \"goals\"<30 AND \"name\"='gary depalma';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: In stage 13, what is the intergiro classification and is on the team of Asics-c.g.a.?" }, { "role": "assistant", "content": "SELECT \"intergiro_classification\" FROM \"classification_leadership_by_stage\" WHERE \"trofeo_fast_team\"='asics-c.g.a.' AND \"stage\"='13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Which intergiro classification is there for team Polti at stage 14?" }, { "role": "assistant", "content": "SELECT \"intergiro_classification\" FROM \"classification_leadership_by_stage\" WHERE \"trofeo_fast_team\"='team polti' AND \"stage\"='14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Who was the winner in stage 7 with a general classification of Pavel Tonkov?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"classification_leadership_by_stage\" WHERE \"general_classification\"='pavel tonkov' AND \"stage\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"classification_leadership_by_stage\" WHERE \"trofeo_fast_team\"='asics-c.g.a.' AND \"mountains_classification\"='mariano piccoli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Which points classification was used in stage 15?" }, { "role": "assistant", "content": "SELECT \"points_classification\" FROM \"classification_leadership_by_stage\" WHERE \"stage\"='15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"intergiro_classification\" text,\n \"trofeo_fast_team\" text\n);\n\nQuestion: Which winner of stage 1 was not awarded a mountains classification?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"classification_leadership_by_stage\" WHERE \"mountains_classification\"='not awarded' AND \"stage\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ar_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the muzzel device with barrel twist of 1:10" }, { "role": "assistant", "content": "SELECT \"muzzle_device\" FROM \"ar_series_models\" WHERE \"barrel_twist\"='1:10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ar_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the bayonet lug with ar-15 lightweight" }, { "role": "assistant", "content": "SELECT \"bayonet_lug\" FROM \"ar_series_models\" WHERE \"name\"='ar-15 lightweight';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ar_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the hand guards for ar-15a2 government carbine and barrel twist of 1:9" }, { "role": "assistant", "content": "SELECT \"hand_guards\" FROM \"ar_series_models\" WHERE \"name\"='ar-15a2 government carbine' AND \"barrel_twist\"='1:9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ar_series_models\" (\n \"colt_model_no\" text,\n \"name\" text,\n \"stock\" text,\n \"fire_control\" text,\n \"rear_sight\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"barrel_length\" text,\n \"barrel_profile\" text,\n \"barrel_twist\" text,\n \"hand_guards\" text,\n \"bayonet_lug\" text,\n \"muzzle_device\" text\n);\n\nQuestion: Name the barrel length for barrel twist of 1:7" }, { "role": "assistant", "content": "SELECT \"barrel_length\" FROM \"ar_series_models\" WHERE \"barrel_twist\"='1:7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kyoto_osaka_keihan_type\" (\n \"accented_mora\" text,\n \"one_mora\" text,\n \"two_mora_word\" text,\n \"three_mora_word\" text,\n \"gloss\" text\n);\n\nQuestion: What is the three-mora word with a low tone accented mora and a one mora of 2?" }, { "role": "assistant", "content": "SELECT \"three_mora_word\" FROM \"kyoto_osaka_keihan_type\" WHERE \"accented_mora\"='low tone' AND \"one_mora\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kyoto_osaka_keihan_type\" (\n \"accented_mora\" text,\n \"one_mora\" text,\n \"two_mora_word\" text,\n \"three_mora_word\" text,\n \"gloss\" text\n);\n\nQuestion: What is the one mora for the three-mora word /kaze/ [k\u00e1z\u00e9]?" }, { "role": "assistant", "content": "SELECT \"one_mora\" FROM \"kyoto_osaka_keihan_type\" WHERE \"three_mora_word\"='/kaze/ [k\u00e1z\u00e9]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kyoto_osaka_keihan_type\" (\n \"accented_mora\" text,\n \"one_mora\" text,\n \"two_mora_word\" text,\n \"three_mora_word\" text,\n \"gloss\" text\n);\n\nQuestion: What is the one mora for the three-mora word /\u02e9haru\ua71c/ [h\u00e0\u027d\u026f\u0301 ~ h\u00e0\u027d\u026f\u0302]?" }, { "role": "assistant", "content": "SELECT \"one_mora\" FROM \"kyoto_osaka_keihan_type\" WHERE \"three_mora_word\"='/\u02e9haru\ua71c/ [h\u00e0\u027d\u026f\u0301 ~ h\u00e0\u027d\u026f\u0302]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kyoto_osaka_keihan_type\" (\n \"accented_mora\" text,\n \"one_mora\" text,\n \"two_mora_word\" text,\n \"three_mora_word\" text,\n \"gloss\" text\n);\n\nQuestion: What is the two-mora word with a low tone accented mora and a gloss of /\u02e9kusu\ua71cri/ [k\u026f\u0300s\u026f\u0301\u027d\u00ec]?" }, { "role": "assistant", "content": "SELECT \"two_mora_word\" FROM \"kyoto_osaka_keihan_type\" WHERE \"accented_mora\"='low tone' AND \"gloss\"='/\u02e9kusu\ua71cri/ [k\u026f\u0300s\u026f\u0301\u027d\u00ec]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kyoto_osaka_keihan_type\" (\n \"accented_mora\" text,\n \"one_mora\" text,\n \"two_mora_word\" text,\n \"three_mora_word\" text,\n \"gloss\" text\n);\n\nQuestion: What is the one mora for a low tone mora with a gloss of /\u02e9okiru/ [\u00f2k\u00ec\u027d\u026f\u0301]?" }, { "role": "assistant", "content": "SELECT \"one_mora\" FROM \"kyoto_osaka_keihan_type\" WHERE \"accented_mora\"='low tone' AND \"gloss\"='/\u02e9okiru/ [\u00f2k\u00ec\u027d\u026f\u0301]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_independent_a_class\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?" }, { "role": "assistant", "content": "SELECT MAX(\"total_medals\") FROM \"percussion_independent_a_class\" WHERE \"gold_medals\"=0 AND \"ensemble\"='east 80 indoor percussion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_independent_a_class\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: What is the lowest Total Medals that has madison independent and Bronze Medals larger than 0" }, { "role": "assistant", "content": "SELECT MIN(\"total_medals\") FROM \"percussion_independent_a_class\" WHERE \"ensemble\"='madison independent' AND \"bronze_medals\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"percussion_independent_a_class\" (\n \"ensemble\" text,\n \"gold_medals\" real,\n \"silver_medals\" real,\n \"bronze_medals\" real,\n \"total_medals\" real\n);\n\nQuestion: what is Gold Medals that has salem blue devils and a Silver Medals less than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"gold_medals\") FROM \"percussion_independent_a_class\" WHERE \"ensemble\"='salem blue devils' AND \"silver_medals\"<1;" } ]
[ { "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 is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (armbar)' AND \"opponent\"='mayra conde';" } ]
[ { "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: Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='submission (armbar)' AND \"record\"='9-3-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_stages\" (\n \"stage\" text,\n \"time_eest\" text,\n \"name\" text,\n \"length\" text,\n \"winner\" text,\n \"time\" text,\n \"avg_spd\" text,\n \"rally_leader\" text\n);\n\nQuestion: What is the Time (EEST), when the Stage is ss8?" }, { "role": "assistant", "content": "SELECT \"time_eest\" FROM \"special_stages\" WHERE \"stage\"='ss8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_stages\" (\n \"stage\" text,\n \"time_eest\" text,\n \"name\" text,\n \"length\" text,\n \"winner\" text,\n \"time\" text,\n \"avg_spd\" text,\n \"rally_leader\" text\n);\n\nQuestion: What is the Stage, when the Rally leader is C. Atkinson?" }, { "role": "assistant", "content": "SELECT \"stage\" FROM \"special_stages\" WHERE \"rally_leader\"='c. atkinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_stages\" (\n \"stage\" text,\n \"time_eest\" text,\n \"name\" text,\n \"length\" text,\n \"winner\" text,\n \"time\" text,\n \"avg_spd\" text,\n \"rally_leader\" text\n);\n\nQuestion: Who is the Winner, when the Name is Ouninpohja 1?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"special_stages\" WHERE \"name\"='ouninpohja 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_stages\" (\n \"stage\" text,\n \"time_eest\" text,\n \"name\" text,\n \"length\" text,\n \"winner\" text,\n \"time\" text,\n \"avg_spd\" text,\n \"rally_leader\" text\n);\n\nQuestion: What is the Length, when the Name is Himos?" }, { "role": "assistant", "content": "SELECT \"length\" FROM \"special_stages\" WHERE \"name\"='himos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_stages\" (\n \"stage\" text,\n \"time_eest\" text,\n \"name\" text,\n \"length\" text,\n \"winner\" text,\n \"time\" text,\n \"avg_spd\" text,\n \"rally_leader\" text\n);\n\nQuestion: Who is the Winner when the Length is 21.27km?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"special_stages\" WHERE \"length\"='21.27km';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"special_stages\" (\n \"stage\" text,\n \"time_eest\" text,\n \"name\" text,\n \"length\" text,\n \"winner\" text,\n \"time\" text,\n \"avg_spd\" text,\n \"rally_leader\" text\n);\n\nQuestion: What is the Name, when the Time is 8:10.1?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"special_stages\" WHERE \"time\"='8:10.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?" }, { "role": "assistant", "content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"points\"=0 AND \"year\">1961 AND \"chassis\"='ferrari 156';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: During the Formula One World Championships, which engine was used in 1965?" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\"=1965;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: How many points were earned with a Chassis of a Ferrari 156?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"complete_formula_one_world_championship_\" WHERE \"chassis\"='ferrari 156';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"indy_500_results\" (\n \"year\" text,\n \"start\" text,\n \"qual\" text,\n \"rank\" text,\n \"finish\" text,\n \"laps\" real\n);\n\nQuestion: Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?" }, { "role": "assistant", "content": "SELECT \"finish\" FROM \"indy_500_results\" WHERE \"laps\"<197 AND \"start\"='9' AND \"qual\"='152.672';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_statistics\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: What is the location of game 7?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"series_statistics\" WHERE \"game\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_statistics\" (\n \"game\" real,\n \"date\" text,\n \"location\" text,\n \"time\" text,\n \"attendance\" real\n);\n\nQuestion: what is the location of game 4?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"series_statistics\" WHERE \"game\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Which of the two teams has 1st leg of 2-0?" }, { "role": "assistant", "content": "SELECT \"team_2\" FROM \"first_round\" WHERE \"1st_leg\"='2-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Which team has an agg., that has a 1st leg of 1-2?" }, { "role": "assistant", "content": "SELECT \"agg\" FROM \"first_round\" WHERE \"1st_leg\"='1-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Which team of the team 1 column, has a 2nd leg of 1-0?" }, { "role": "assistant", "content": "SELECT \"team_1\" FROM \"first_round\" WHERE \"2nd_leg\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"result_f_a\" text,\n \"scorers\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: Who were the 2nd group scorers that were opponents of olympiacos?" }, { "role": "assistant", "content": "SELECT \"scorers\" FROM \"group_stage\" WHERE \"group_position\"='2nd' AND \"opponents\"='olympiacos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"result_f_a\" text,\n \"scorers\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: Who were F\u2013A of 1\u20130 scorers?" }, { "role": "assistant", "content": "SELECT \"scorers\" FROM \"group_stage\" WHERE \"result_f_a\"='1\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the final score of the game on November 17?" }, { "role": "assistant", "content": "SELECT \"final_score\" FROM \"2002\" WHERE \"date\"='november 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?" }, { "role": "assistant", "content": "SELECT \"final_score\" FROM \"2002\" WHERE \"visiting_team\"='indianapolis colts' AND \"date\"='november 24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: When was the game at Gillette Stadium that ended in a final score of 30-17?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2002\" WHERE \"final_score\"='30-17' AND \"stadium\"='gillette stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2002\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: Who was the visiting team that played on September 15?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"2002\" WHERE \"date\"='september 15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What year did the Nashville Metros have the Regular Season 2nd, central?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"year_by_year\" WHERE \"regular_season\"='2nd, central';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?" }, { "role": "assistant", "content": "SELECT \"division\" FROM \"year_by_year\" WHERE \"playoffs\"='did not qualify' AND \"league\"='usl pdl' AND \"regular_season\"='7th, southeast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" text,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"year_by_year\" WHERE \"playoffs\"='did not qualify' AND \"open_cup\"='did not qualify' AND \"regular_season\"='7th, southeast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cart\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"rank\" text,\n \"points\" real\n);\n\nQuestion: Which chassis scored 52 points?" }, { "role": "assistant", "content": "SELECT \"chassis\" FROM \"cart\" WHERE \"points\"=52;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cart\" (\n \"year\" real,\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"rank\" text,\n \"points\" real\n);\n\nQuestion: Which engine scored 6 points and used the march 88c chassis?" }, { "role": "assistant", "content": "SELECT \"engine\" FROM \"cart\" WHERE \"points\"=6 AND \"chassis\"='march 88c';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate_composition_before_the_elections\" (\n \"d_48\" text,\n \"d_47\" text,\n \"d_46\" text,\n \"d_45\" text,\n \"d_44\" text,\n \"d_43\" text,\n \"d_42\" text,\n \"d_41\" text\n);\n\nQuestion: Name the D 43 with D 48 of d 9" }, { "role": "assistant", "content": "SELECT \"d_43\" FROM \"senate_composition_before_the_elections\" WHERE \"d_48\"='d 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate_composition_before_the_elections\" (\n \"d_48\" text,\n \"d_47\" text,\n \"d_46\" text,\n \"d_45\" text,\n \"d_44\" text,\n \"d_43\" text,\n \"d_42\" text,\n \"d_41\" text\n);\n\nQuestion: Name the D 42 with D 43 of d 14" }, { "role": "assistant", "content": "SELECT \"d_42\" FROM \"senate_composition_before_the_elections\" WHERE \"d_43\"='d 14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate_composition_before_the_elections\" (\n \"d_48\" text,\n \"d_47\" text,\n \"d_46\" text,\n \"d_45\" text,\n \"d_44\" text,\n \"d_43\" text,\n \"d_42\" text,\n \"d_41\" text\n);\n\nQuestion: Name the D 47 when it has D 48 of d 29" }, { "role": "assistant", "content": "SELECT \"d_47\" FROM \"senate_composition_before_the_elections\" WHERE \"d_48\"='d 29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate_composition_before_the_elections\" (\n \"d_48\" text,\n \"d_47\" text,\n \"d_46\" text,\n \"d_45\" text,\n \"d_44\" text,\n \"d_43\" text,\n \"d_42\" text,\n \"d_41\" text\n);\n\nQuestion: Name the D 43 and D 48 of r 28" }, { "role": "assistant", "content": "SELECT \"d_43\" FROM \"senate_composition_before_the_elections\" WHERE \"d_48\"='r 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"senate_composition_before_the_elections\" (\n \"d_48\" text,\n \"d_47\" text,\n \"d_46\" text,\n \"d_45\" text,\n \"d_44\" text,\n \"d_43\" text,\n \"d_42\" text,\n \"d_41\" text\n);\n\nQuestion: Name the D 47 which has D 42 of d 22" }, { "role": "assistant", "content": "SELECT \"d_47\" FROM \"senate_composition_before_the_elections\" WHERE \"d_42\"='d 22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which region had a label of Central Station?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"release_history\" WHERE \"label\"='central station';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which catalog has a format of 12\" EP?" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"format\"='12\\\" ep';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which label released the album on 12\" EP in Germany?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"format\"='12\\\" ep' AND \"region\"='germany';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What NHL team has a centre and pick number of 105?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"round_eight\" WHERE \"position\"='centre' AND \"pick_num\"='105';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What Pick # does the St. Louis Blues have?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_eight\" WHERE \"nhl_team\"='st. louis blues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the position of the player with a Pick # of 108?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_eight\" WHERE \"pick_num\"='108';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_eight\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position in the Vancouver Canucks has a Pick # of 101?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_eight\" WHERE \"nhl_team\"='vancouver canucks' AND \"pick_num\"='101';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the team's record at the game attended by 30,452?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"attendance\"='30,452';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the attendance at the game that had a loss of Crabtree (0-1)?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"game_log\" WHERE \"loss\"='crabtree (0-1)';" } ]