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 \"ratings\" (\n \"season\" text,\n \"episodes\" real,\n \"first_airdate\" text,\n \"last_airdate\" text,\n \"nielsen_ranking\" text\n);\n\nQuestion: How many episodes were in the season that first aired on September 22, 1989?" }, { "role": "assistant", "content": "SELECT \"episodes\" FROM \"ratings\" WHERE \"first_airdate\"='september 22, 1989';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ratings\" (\n \"season\" text,\n \"episodes\" real,\n \"first_airdate\" text,\n \"last_airdate\" text,\n \"nielsen_ranking\" text\n);\n\nQuestion: How many episodes were in the season that ended on April 29, 1986?" }, { "role": "assistant", "content": "SELECT AVG(\"episodes\") FROM \"ratings\" WHERE \"last_airdate\"='april 29, 1986';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"ship\" text,\n \"built_as\" text,\n \"reclassified_as\" text,\n \"class\" text,\n \"commissioned_decommissioned\" text,\n \"nvr_link\" text\n);\n\nQuestion: Where the ship is Dahlgren what is the build as?" }, { "role": "assistant", "content": "SELECT \"built_as\" FROM \"references\" WHERE \"ship\"='dahlgren';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"ship\" text,\n \"built_as\" text,\n \"reclassified_as\" text,\n \"class\" text,\n \"commissioned_decommissioned\" text,\n \"nvr_link\" text\n);\n\nQuestion: Where the NRV link is CGN38, what is the reclassified as?" }, { "role": "assistant", "content": "SELECT \"reclassified_as\" FROM \"references\" WHERE \"nvr_link\"='cgn38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"ship\" text,\n \"built_as\" text,\n \"reclassified_as\" text,\n \"class\" text,\n \"commissioned_decommissioned\" text,\n \"nvr_link\" text\n);\n\nQuestion: Where the built as is DLG-23, what is the class?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"references\" WHERE \"built_as\"='dlg-23';" } ]
[ { "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 Total medals won by the nation in Rank 6 with less than 2 Bronze medals?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"medal_table\" WHERE \"rank\"='6' AND \"bronze\"<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: How many Gold medals were won by the Nation that had more than 12 Bronze medals and less than 124 Total medals?" }, { "role": "assistant", "content": "SELECT COUNT(\"gold\") FROM \"medal_table\" WHERE \"bronze\">12 AND \"total\"<124;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: December smaller than 21, and a Opponent of buffalo sabres had what score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule_and_results\" WHERE \"december\"<21 AND \"opponent\"='buffalo sabres';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Score of 8 - 1 happened on what day in December?" }, { "role": "assistant", "content": "SELECT \"december\" FROM \"schedule_and_results\" WHERE \"score\"='8 - 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: December larger than 21, and a Opponent of Pittsburgh penguins had what average game?" }, { "role": "assistant", "content": "SELECT AVG(\"game\") FROM \"schedule_and_results\" WHERE \"december\">21 AND \"opponent\"='pittsburgh penguins';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involved what opponent?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule_and_results\" WHERE \"december\"<14 AND \"game\"<28 AND \"score\"='6 - 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name_translation\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: What is the date that the item was laid down if it was launched on 1899-04-25?" }, { "role": "assistant", "content": "SELECT \"laid_down\" FROM \"list_of_ships\" WHERE \"launched\"='1899-04-25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name_translation\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Which builder is associated with ikazuchi \"thunder\"?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"list_of_ships\" WHERE \"name_translation\"='ikazuchi \\\"thunder\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ships\" (\n \"kanji\" text,\n \"name_translation\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"completed\" text\n);\n\nQuestion: Which builder has the the kanji of \u66d9?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"list_of_ships\" WHERE \"kanji\"='\u66d9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_montreal_boroughs\" (\n \"number_map\" real,\n \"borough\" text,\n \"population_canada_2011_census\" real,\n \"area_in_km\" real,\n \"density_per_km\" real\n);\n\nQuestion: Which Density per km\u00b2 is the lowest one that has a Number (map) smaller than 13, and an Area in km\u00b2 of 11.1?" }, { "role": "assistant", "content": "SELECT MIN(\"density_per_km\") FROM \"list_of_montreal_boroughs\" WHERE \"number_map\"<13 AND \"area_in_km\"=11.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_montreal_boroughs\" (\n \"number_map\" real,\n \"borough\" text,\n \"population_canada_2011_census\" real,\n \"area_in_km\" real,\n \"density_per_km\" real\n);\n\nQuestion: Which Area in km\u00b2 has a Population Canada 2011 Census larger than 18,097, and a Borough of verdun?" }, { "role": "assistant", "content": "SELECT \"area_in_km\" FROM \"list_of_montreal_boroughs\" WHERE \"population_canada_2011_census\">'18,097' AND \"borough\"='verdun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_montreal_boroughs\" (\n \"number_map\" real,\n \"borough\" text,\n \"population_canada_2011_census\" real,\n \"area_in_km\" real,\n \"density_per_km\" real\n);\n\nQuestion: How much #s have an Area in km\u00b2 larger than 13.5, and a Population Canada 2011 Census of 134,038?" }, { "role": "assistant", "content": "SELECT COUNT(\"number_map\") FROM \"list_of_montreal_boroughs\" WHERE \"area_in_km\">13.5 AND \"population_canada_2011_census\"='134,038';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_montreal_boroughs\" (\n \"number_map\" real,\n \"borough\" text,\n \"population_canada_2011_census\" real,\n \"area_in_km\" real,\n \"density_per_km\" real\n);\n\nQuestion: Which Number (map) is the lowest one that has a Area in km\u00b2 of 9.7, and a Population Canada 2011 Census larger than 66,158?" }, { "role": "assistant", "content": "SELECT MIN(\"number_map\") FROM \"list_of_montreal_boroughs\" WHERE \"area_in_km\"=9.7 AND \"population_canada_2011_census\">'66,158';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Attendance of 19,741 had what average week?" }, { "role": "assistant", "content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"attendance\"='19,741';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Attendance of 29,000 occurred on what date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"attendance\"='29,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Opponent of Philadelphia eagles had what attendance?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='philadelphia eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2004\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What day did Alex Best exit?" }, { "role": "assistant", "content": "SELECT \"exited\" FROM \"series_3_2004\" WHERE \"celebrity\"='alex best';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2004\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What place did the celebrity who is famous for being an athlete finish?" }, { "role": "assistant", "content": "SELECT \"finished\" FROM \"series_3_2004\" WHERE \"famous_for\"='athlete';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2004\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What place did the singer in atomic kitten finish?" }, { "role": "assistant", "content": "SELECT \"finished\" FROM \"series_3_2004\" WHERE \"famous_for\"='singer in atomic kitten';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2004\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: Who was the celebrity who exited on day 13?" }, { "role": "assistant", "content": "SELECT \"celebrity\" FROM \"series_3_2004\" WHERE \"exited\"='day 13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_3_2004\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: Who was the celebrity who finished in 7th place?" }, { "role": "assistant", "content": "SELECT \"celebrity\" FROM \"series_3_2004\" WHERE \"finished\"='7th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_capped_players\" (\n \"name\" text,\n \"caps\" real,\n \"goals\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: Name of gilmar, and a Caps smaller than 94 had how many highest goals?" }, { "role": "assistant", "content": "SELECT MAX(\"goals\") FROM \"most_capped_players\" WHERE \"name\"='gilmar' AND \"caps\"<94;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_capped_players\" (\n \"name\" text,\n \"caps\" real,\n \"goals\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: Caps of 93 had how many goals?" }, { "role": "assistant", "content": "SELECT \"goals\" FROM \"most_capped_players\" WHERE \"caps\"=93;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_capped_players\" (\n \"name\" text,\n \"caps\" real,\n \"goals\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: Latest cap of september 5, 2011 had how many goals?" }, { "role": "assistant", "content": "SELECT \"goals\" FROM \"most_capped_players\" WHERE \"latest_cap\"='september 5, 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_capped_players\" (\n \"name\" text,\n \"caps\" real,\n \"goals\" real,\n \"first_cap\" text,\n \"latest_cap\" text\n);\n\nQuestion: Name of rivelino had how many highest caps?" }, { "role": "assistant", "content": "SELECT MAX(\"caps\") FROM \"most_capped_players\" WHERE \"name\"='rivelino';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_indoor\" (\n \"pos\" real,\n \"mark\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Which athlete played at the Birmingham venue?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"women_indoor\" WHERE \"venue\"='birmingham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which Frequency has a Webcast of \u2022, and a Callsign of xemr?" }, { "role": "assistant", "content": "SELECT AVG(\"frequency\") FROM \"long_range_am_stations\" WHERE \"webcast\"='\u2022' AND \"callsign\"='xemr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which Website has a Frequency smaller than 760 and a Callsign of kkyx?" }, { "role": "assistant", "content": "SELECT \"website\" FROM \"long_range_am_stations\" WHERE \"frequency\"<760 AND \"callsign\"='kkyx';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which Webcast has a Callsign of kgbt?" }, { "role": "assistant", "content": "SELECT \"webcast\" FROM \"long_range_am_stations\" WHERE \"callsign\"='kgbt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"long_range_am_stations\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"website\" text,\n \"webcast\" text\n);\n\nQuestion: Which Frequency has a Website of \u2022, and a Webcast of \u2022in san antonio?" }, { "role": "assistant", "content": "SELECT AVG(\"frequency\") FROM \"long_range_am_stations\" WHERE \"website\"='\u2022' AND \"webcast\"='\u2022' AND \"city_of_license\"='san antonio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_career_leaders\" (\n \"rank\" text,\n \"player\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text,\n \"years\" text\n);\n\nQuestion: What years did the player play when he scored 78 points and 22 goals?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"all_time_career_leaders\" WHERE \"points\"='78' AND \"goals\"='22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_career_leaders\" (\n \"rank\" text,\n \"player\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text,\n \"years\" text\n);\n\nQuestion: How many goals did Joey Worthen have when he had 15 assists?" }, { "role": "assistant", "content": "SELECT \"goals\" FROM \"all_time_career_leaders\" WHERE \"assists\"='15' AND \"player\"='joey worthen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_career_leaders\" (\n \"rank\" text,\n \"player\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text,\n \"years\" text\n);\n\nQuestion: How many goals were scored when 158 points were collected?" }, { "role": "assistant", "content": "SELECT \"goals\" FROM \"all_time_career_leaders\" WHERE \"points\"='158';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_career_leaders\" (\n \"rank\" text,\n \"player\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text,\n \"years\" text\n);\n\nQuestion: What years had players who scored 36 goals?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"all_time_career_leaders\" WHERE \"goals\"='36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"all_time_career_leaders\" (\n \"rank\" text,\n \"player\" text,\n \"goals\" text,\n \"assists\" text,\n \"points\" text,\n \"years\" text\n);\n\nQuestion: What was the rank of the player who had 13 assists?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"all_time_career_leaders\" WHERE \"assists\"='13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"opponent\"='houston oilers' AND \"attendance\">'54,582';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the highest attendance for week 1?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"week\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the total number in attendance for the game after week 8 that was on November 25, 1979?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"schedule\" WHERE \"week\">8 AND \"date\"='november 25, 1979';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_wins_per_season\" (\n \"player\" text,\n \"ranking\" text,\n \"event\" text,\n \"surface\" text,\n \"round\" text,\n \"score\" text\n);\n\nQuestion: Which Surface has a Score of 2009 wta tour?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"top_10_wins_per_season\" WHERE \"score\"='2009 wta tour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_wins_per_season\" (\n \"player\" text,\n \"ranking\" text,\n \"event\" text,\n \"surface\" text,\n \"round\" text,\n \"score\" text\n);\n\nQuestion: Which Round has a Ranking of 2008 wta tour?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"top_10_wins_per_season\" WHERE \"ranking\"='2008 wta tour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_wins_per_season\" (\n \"player\" text,\n \"ranking\" text,\n \"event\" text,\n \"surface\" text,\n \"round\" text,\n \"score\" text\n);\n\nQuestion: Which Surface has a Round of 4th round, and a Player of maria sharapova?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"top_10_wins_per_season\" WHERE \"round\"='4th round' AND \"player\"='maria sharapova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_wins_per_season\" (\n \"player\" text,\n \"ranking\" text,\n \"event\" text,\n \"surface\" text,\n \"round\" text,\n \"score\" text\n);\n\nQuestion: Which Player has a Score of 6\u20134, 7\u20136 (7\u20135)?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"top_10_wins_per_season\" WHERE \"score\"='6\u20134, 7\u20136 (7\u20135)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_wins_per_season\" (\n \"player\" text,\n \"ranking\" text,\n \"event\" text,\n \"surface\" text,\n \"round\" text,\n \"score\" text\n);\n\nQuestion: Which Round has a Player of anna chakvetadze?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"top_10_wins_per_season\" WHERE \"player\"='anna chakvetadze';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Record of 89-67 had what loss?" }, { "role": "assistant", "content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='89-67';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Score of 3 - 2 had what record?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"score\"='3 - 2';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Opponent of @ blue jays, and a Loss of lyon (5-4) had what opponent?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"opponent\"='@ blue jays' AND \"loss\"='lyon (5-4)';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Loss of lyon (5-4) had what score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"loss\"='lyon (5-4)';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Loss of finley (8-7) had what record?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"loss\"='finley (8-7)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"record\" text\n);\n\nQuestion: Opponent of @ blue jays, and a Date of october 6 had what score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"opponent\"='@ blue jays' AND \"date\"='october 6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"series\" text\n);\n\nQuestion: What is the score for game 5?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"game\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"series\" text\n);\n\nQuestion: What is the score that has a game greater than 3, with buffalo sabres as the opponent?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"game\">3 AND \"opponent\"='buffalo sabres';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"series\" text\n);\n\nQuestion: What score has may 9 as the date?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"date\"='may 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the score on October 16, 1983?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_5_4_1\" WHERE \"date\"='october 16, 1983';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the score when she was a runner-up?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_5_4_1\" WHERE \"outcome\"='runner-up';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_5_4_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What tournament was being played on August 11, 1984?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_5_4_1\" WHERE \"date\"='august 11, 1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the Venue on June 8, 2005?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"date\"='june 8, 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: On what Date was the Venue Los Angeles?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"international_goals\" WHERE \"venue\"='los angeles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the Score on September 29, 2003?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"date\"='september 29, 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: On what Date was the Venue in Carson?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"international_goals\" WHERE \"venue\"='carson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the competition on October 21, 2003?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='october 21, 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the Competition on September 29, 2003?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"date\"='september 29, 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_results\" (\n \"position\" real,\n \"name\" text,\n \"country\" text,\n \"win_loss\" text,\n \"spread\" real\n);\n\nQuestion: What country has chunkath, mohan verghese as the name?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"complete_results\" WHERE \"name\"='chunkath, mohan verghese';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_results\" (\n \"position\" real,\n \"name\" text,\n \"country\" text,\n \"win_loss\" text,\n \"spread\" real\n);\n\nQuestion: What position has a spread greater than -319, and United States as the country, a win loss of 11-13, and gabriel, marty as the name?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"complete_results\" WHERE \"spread\">-319 AND \"country\"='united states' AND \"win_loss\"='11-13' AND \"name\"='gabriel, marty';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_results\" (\n \"position\" real,\n \"name\" text,\n \"country\" text,\n \"win_loss\" text,\n \"spread\" real\n);\n\nQuestion: What name has a spread of 69?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"complete_results\" WHERE \"spread\"=69;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_8\" (\n \"date\" text,\n \"episode\" real,\n \"performer_1\" text,\n \"performer_2\" text,\n \"performer_3\" text,\n \"performer_4\" text\n);\n\nQuestion: Which Performer 2 has an Episode of 5?" }, { "role": "assistant", "content": "SELECT \"performer_2\" FROM \"series_8\" WHERE \"episode\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"naya_paisa_series\" (\n \"denomination\" text,\n \"metal\" text,\n \"weight\" text,\n \"shape\" text,\n \"size\" text\n);\n\nQuestion: What weight has one rupee as the denomination?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"naya_paisa_series\" WHERE \"denomination\"='one rupee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"naya_paisa_series\" (\n \"denomination\" text,\n \"metal\" text,\n \"weight\" text,\n \"shape\" text,\n \"size\" text\n);\n\nQuestion: What is the size that has nickel as the metal, and one rupee as the denomination?" }, { "role": "assistant", "content": "SELECT \"size\" FROM \"naya_paisa_series\" WHERE \"metal\"='nickel' AND \"denomination\"='one rupee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"naya_paisa_series\" (\n \"denomination\" text,\n \"metal\" text,\n \"weight\" text,\n \"shape\" text,\n \"size\" text\n);\n\nQuestion: What metal has one rupee as the denomination?" }, { "role": "assistant", "content": "SELECT \"metal\" FROM \"naya_paisa_series\" WHERE \"denomination\"='one rupee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"naya_paisa_series\" (\n \"denomination\" text,\n \"metal\" text,\n \"weight\" text,\n \"shape\" text,\n \"size\" text\n);\n\nQuestion: What shape has nickel as the metal, and one rupee as the denomination?" }, { "role": "assistant", "content": "SELECT \"shape\" FROM \"naya_paisa_series\" WHERE \"metal\"='nickel' AND \"denomination\"='one rupee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: Which 2007 has a 2010 of A, and a 2006 of lq?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2010\"='a' AND \"2006\"='lq';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: Which 2012 has a 2007 of 1r?" }, { "role": "assistant", "content": "SELECT \"2012\" FROM \"singles_performance_timeline\" WHERE \"2007\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: Which 2002 has a 2013 of 2\u20134?" }, { "role": "assistant", "content": "SELECT \"2002\" FROM \"singles_performance_timeline\" WHERE \"2013\"='2\u20134';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: Which 2013 has a 2010 of 1r?" }, { "role": "assistant", "content": "SELECT \"2013\" FROM \"singles_performance_timeline\" WHERE \"2010\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: Which 2005 has a Tournament of grand slam tournaments?" }, { "role": "assistant", "content": "SELECT \"2005\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='grand slam tournaments';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text,\n \"2013\" text\n);\n\nQuestion: Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2008\"='1r' AND \"tournament\"='wimbledon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Date has a Home of minnesota?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"home\"='minnesota';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Visitor has a Decision of myre, and a Record of 44\u20137\u201315?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"decision\"='myre' AND \"record\"='44\u20137\u201315';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_11\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What Championship had a Winning score of 6 & 5?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"wins_11\" WHERE \"winning_score\"='6 & 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_11\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the Winning Score when Betsy Rawls was the Runner(s)-up?" }, { "role": "assistant", "content": "SELECT \"winning_score\" FROM \"wins_11\" WHERE \"runner_s_up\"='betsy rawls';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_11\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: In 1946, what is the Runner(s)-up of the Women's Western Open Championship?" }, { "role": "assistant", "content": "SELECT \"runner_s_up\" FROM \"wins_11\" WHERE \"championship\"='women''s western open' AND \"year\"=1946;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_11\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the Margin in 1953 when Patty Berg was Runner(s)-up?" }, { "role": "assistant", "content": "SELECT \"margin\" FROM \"wins_11\" WHERE \"runner_s_up\"='patty berg' AND \"year\"=1953;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wins_11\" (\n \"year\" real,\n \"championship\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What is the Margin when the Winning score is +8 (70-69-70-75=284)?" }, { "role": "assistant", "content": "SELECT \"margin\" FROM \"wins_11\" WHERE \"winning_score\"='+8 (70-69-70-75=284)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_east\" (\n \"name\" text,\n \"faith\" text,\n \"type\" text,\n \"dcsf_number\" real,\n \"ofsted_number\" real\n);\n\nQuestion: What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"north_east\" WHERE \"type\"='primary' AND \"dcsf_number\">2337 AND \"ofsted_number\"<135339;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_east\" (\n \"name\" text,\n \"faith\" text,\n \"type\" text,\n \"dcsf_number\" real,\n \"ofsted_number\" real\n);\n\nQuestion: What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"north_east\" WHERE \"dcsf_number\">2448 AND \"ofsted_number\"=131319;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_east\" (\n \"name\" text,\n \"faith\" text,\n \"type\" text,\n \"dcsf_number\" real,\n \"ofsted_number\" real\n);\n\nQuestion: What faith has a DCSF number bigger than 2448 in Holtsmere End?" }, { "role": "assistant", "content": "SELECT \"faith\" FROM \"north_east\" WHERE \"dcsf_number\">2448 AND \"name\"='holtsmere end';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"north_east\" (\n \"name\" text,\n \"faith\" text,\n \"type\" text,\n \"dcsf_number\" real,\n \"ofsted_number\" real\n);\n\nQuestion: What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117335?" }, { "role": "assistant", "content": "SELECT MIN(\"dcsf_number\") FROM \"north_east\" WHERE \"name\"='aycliffe drive' AND \"ofsted_number\"<117335;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: what city is the toamasina airport in?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"destinations\" WHERE \"airport\"='toamasina airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What country has the city, Sydney?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"destinations\" WHERE \"city\"='sydney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What city is in the country of Mayotte?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"destinations\" WHERE \"country\"='mayotte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the IATA for the chennai international airport?" }, { "role": "assistant", "content": "SELECT \"iata\" FROM \"destinations\" WHERE \"airport\"='chennai international airport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"destinations\" (\n \"city\" text,\n \"country\" text,\n \"iata\" text,\n \"icao\" text,\n \"airport\" text\n);\n\nQuestion: What is the airport name that has nos listed as the IATA?" }, { "role": "assistant", "content": "SELECT \"airport\" FROM \"destinations\" WHERE \"iata\"='nos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"energy_efficient_e_series\" (\n \"model_number\" text,\n \"stepping\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"multi_1\" text,\n \"v_core\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text\n);\n\nQuestion: What is the part number of athlon x2 4850e?" }, { "role": "assistant", "content": "SELECT \"part_number_s\" FROM \"energy_efficient_e_series\" WHERE \"model_number\"='athlon x2 4850e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"energy_efficient_e_series\" (\n \"model_number\" text,\n \"stepping\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"multi_1\" text,\n \"v_core\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text\n);\n\nQuestion: What's the frequency of the device that has a Multi 1 of 7.5\u00d7?" }, { "role": "assistant", "content": "SELECT \"frequency\" FROM \"energy_efficient_e_series\" WHERE \"multi_1\"='7.5\u00d7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"energy_efficient_e_series\" (\n \"model_number\" text,\n \"stepping\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"multi_1\" text,\n \"v_core\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text\n);\n\nQuestion: What's amount of L2 Cache on a device that has a Frequency of 1500mhz?" }, { "role": "assistant", "content": "SELECT \"l2_cache\" FROM \"energy_efficient_e_series\" WHERE \"frequency\"='1500mhz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"energy_efficient_e_series\" (\n \"model_number\" text,\n \"stepping\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"multi_1\" text,\n \"v_core\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text\n);\n\nQuestion: When is the release date for a chip that has a Frequency of 2300mhz?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"energy_efficient_e_series\" WHERE \"frequency\"='2300mhz';" } ]