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 \"planica\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Who is shown for the 2nd (m) of 220.5?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"planica\" WHERE \"2nd_m\"='220.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planica\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the 2nd (m) when the 1st (m) is 216.5?" }, { "role": "assistant", "content": "SELECT \"2nd_m\" FROM \"planica\" WHERE \"1st_m\"='216.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planica\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: For the nationality of FIN and the points of 418.8 what is the overall wc points?" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"planica\" WHERE \"nationality\"='FIN' AND \"points\"='418.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planica\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What are the overall wc points for points of 397.2?" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"planica\" WHERE \"points\"='397.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planica\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is shown for 2nd (m) if the is 1st (m) is 203.5?" }, { "role": "assistant", "content": "SELECT \"2nd_m\" FROM \"planica\" WHERE \"1st_m\"='203.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"planica\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What are the overall wc points for 2nd (m) of 214.5?" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"planica\" WHERE \"2nd_m\"='214.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"villach\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: The competitor for FIN had how many overall WC points?" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"villach\" WHERE \"nationality\"='FIN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"villach\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: How many full names are provided for the jumper whose 2nd jump was 96.0m?" }, { "role": "assistant", "content": "SELECT COUNT(\"name\") FROM \"villach\" WHERE \"2nd_m\"='96.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"villach\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What was the length of the jumper representing FIN, in meters?" }, { "role": "assistant", "content": "SELECT \"1st_m\" FROM \"villach\" WHERE \"nationality\"='FIN';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"garmisch_partenkirchen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: What is the 1st(m) score for the Person who had a total points of 272.7" }, { "role": "assistant", "content": "SELECT \"1st_m\" FROM \"garmisch_partenkirchen\" WHERE \"points\"='272.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"garmisch_partenkirchen\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_fht_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: How many total points did roman Koudelka have" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"garmisch_partenkirchen\" WHERE \"name\"='Roman Koudelka';" } ]
[ { "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 \"time_et\" text,\n \"tv\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: Name the opponent for week 12" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"=12;" } ]
[ { "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 \"time_et\" text,\n \"tv\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: Name the number of date for shea stadium" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"schedule\" WHERE \"game_site\"='Shea Stadium';" } ]
[ { "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 \"time_et\" text,\n \"tv\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: Name the opponent for astrodome" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='Astrodome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" text,\n \"date\" text,\n \"time\" text,\n \"report\" text\n);\n\nQuestion: How many home team scores have a time of 4:40 PM?" }, { "role": "assistant", "content": "SELECT COUNT(\"home_team_score\") FROM \"round_1\" WHERE \"time\"='4:40 PM';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" text,\n \"date\" text,\n \"time\" text,\n \"report\" text\n);\n\nQuestion: What stadiums had an attendance of 8,256?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"round_1\" WHERE \"crowd\"='8,256';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" text,\n \"date\" text,\n \"time\" text,\n \"report\" text\n);\n\nQuestion: What is the total number of attendees where the home team was Port Adelaide?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_1\" WHERE \"home_team\"='Port Adelaide';" } ]
[ { "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 \"kickoff_et\" text,\n \"tv\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: Which team did they play at Rich Stadium?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game_site\"='Rich Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"kickoff_et\" text,\n \"tv\" text,\n \"opponent\" text,\n \"result\" text,\n \"record\" text,\n \"game_site\" text\n);\n\nQuestion: What date did they play in Cleveland Municipal Stadium?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='Cleveland Municipal Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"year_model\" text,\n \"engine\" text,\n \"cylinder_volume\" text,\n \"power\" text,\n \"torque\" text,\n \"fuel_system\" text\n);\n\nQuestion: Name the year model for 4-cyl straight engine dohc 16v and 1.5 crdi" }, { "role": "assistant", "content": "SELECT \"year_model\" FROM \"engines\" WHERE \"engine\"='4-cyl Straight engine DOHC 16V' AND \"model\"='1.5 CRDi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"year_model\" text,\n \"engine\" text,\n \"cylinder_volume\" text,\n \"power\" text,\n \"torque\" text,\n \"fuel_system\" text\n);\n\nQuestion: Name the year model for 1.3" }, { "role": "assistant", "content": "SELECT \"year_model\" FROM \"engines\" WHERE \"model\"='1.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14460937_2\" (\n \"pos\" real,\n \"member_association\" text,\n \"points_total_500\" real,\n \"clubs\" text,\n \"group_stage\" real,\n \"play_off\" real,\n \"afc_cup\" real\n);\n\nQuestion: what is the minimum\u00a0pos\u00a0with\u00a0clubs\u00a0being 16" }, { "role": "assistant", "content": "SELECT MIN(\"pos\") FROM \"table1_14460937_2\" WHERE \"clubs\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14460937_2\" (\n \"pos\" real,\n \"member_association\" text,\n \"points_total_500\" real,\n \"clubs\" text,\n \"group_stage\" real,\n \"play_off\" real,\n \"afc_cup\" real\n);\n\nQuestion: what is the maximum value for afc cup" }, { "role": "assistant", "content": "SELECT MAX(\"afc_cup\") FROM \"table1_14460937_2\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14460937_2\" (\n \"pos\" real,\n \"member_association\" text,\n \"points_total_500\" real,\n \"clubs\" text,\n \"group_stage\" real,\n \"play_off\" real,\n \"afc_cup\" real\n);\n\nQuestion: how many\u00a0pos\u00a0with\u00a0member association\u00a0being china pr" }, { "role": "assistant", "content": "SELECT COUNT(\"pos\") FROM \"table1_14460937_2\" WHERE \"member_association\"='China PR';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14460937_2\" (\n \"pos\" real,\n \"member_association\" text,\n \"points_total_500\" real,\n \"clubs\" text,\n \"group_stage\" real,\n \"play_off\" real,\n \"afc_cup\" real\n);\n\nQuestion: how many\u00a0points (total 500)\u00a0with\u00a0pos\u00a0being 11" }, { "role": "assistant", "content": "SELECT COUNT(\"points_total_500\") FROM \"table1_14460937_2\" WHERE \"pos\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1987_88\" text,\n \"1988_89\" text,\n \"1989_90\" real\n);\n\nQuestion: How many points in 89/90 for the team with 55 in 87/88?" }, { "role": "assistant", "content": "SELECT \"1989_90\" FROM \"relegation\" WHERE \"1987_88\"='55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1987_88\" text,\n \"1988_89\" text,\n \"1989_90\" real\n);\n\nQuestion: How many points in 87/88 for racing de c\u00f3rdoba?" }, { "role": "assistant", "content": "SELECT \"1987_88\" FROM \"relegation\" WHERE \"team\"='Racing de C\u00f3rdoba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1987_88\" text,\n \"1988_89\" text,\n \"1989_90\" real\n);\n\nQuestion: What is the lowest number of games played for deportivo espa\u00f1ol?" }, { "role": "assistant", "content": "SELECT MIN(\"played\") FROM \"relegation\" WHERE \"team\"='Deportivo Espa\u00f1ol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1987_88\" text,\n \"1988_89\" text,\n \"1989_90\" real\n);\n\nQuestion: What is the average for the team with 34 in 88/89?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"relegation\" WHERE \"1988_89\"='34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1987_88\" text,\n \"1988_89\" text,\n \"1989_90\" real\n);\n\nQuestion: How many points total for san lorenzo?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"relegation\" WHERE \"team\"='San Lorenzo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"number\" real,\n \"name_of_administrative_unit\" text,\n \"telephone_052\" text,\n \"area_km_2\" text,\n \"population_people\" real\n);\n\nQuestion: Name the telephone 052 for area km2 being 5.42" }, { "role": "assistant", "content": "SELECT \"telephone_052\" FROM \"administrative_divisions\" WHERE \"area_km_2\"='5.42';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"number\" real,\n \"name_of_administrative_unit\" text,\n \"telephone_052\" text,\n \"area_km_2\" text,\n \"population_people\" real\n);\n\nQuestion: Name the population of people for area being 24.35" }, { "role": "assistant", "content": "SELECT \"population_people\" FROM \"administrative_divisions\" WHERE \"area_km_2\"='24.35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"number\" real,\n \"name_of_administrative_unit\" text,\n \"telephone_052\" text,\n \"area_km_2\" text,\n \"population_people\" real\n);\n\nQuestion: Name the total number of telephone 052 for 362.81" }, { "role": "assistant", "content": "SELECT COUNT(\"telephone_052\") FROM \"administrative_divisions\" WHERE \"area_km_2\"='362.81';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"number\" real,\n \"name_of_administrative_unit\" text,\n \"telephone_052\" text,\n \"area_km_2\" text,\n \"population_people\" real\n);\n\nQuestion: Name the number of administrative unit for number 4" }, { "role": "assistant", "content": "SELECT \"name_of_administrative_unit\" FROM \"administrative_divisions\" WHERE \"number\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"number\" real,\n \"name_of_administrative_unit\" text,\n \"telephone_052\" text,\n \"area_km_2\" text,\n \"population_people\" real\n);\n\nQuestion: Name the name of administrative unit for 3464 people" }, { "role": "assistant", "content": "SELECT \"name_of_administrative_unit\" FROM \"administrative_divisions\" WHERE \"population_people\"=3464;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"snap_ins_and_hosts\" (\n \"application\" text,\n \"version\" text,\n \"cmdlets\" text,\n \"provider\" text,\n \"management_gui\" text\n);\n\nQuestion: How many of the cmdlets are the 2008 version?" }, { "role": "assistant", "content": "SELECT COUNT(\"cmdlets\") FROM \"snap_ins_and_hosts\" WHERE \"version\"='2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"snap_ins_and_hosts\" (\n \"application\" text,\n \"version\" text,\n \"cmdlets\" text,\n \"provider\" text,\n \"management_gui\" text\n);\n\nQuestion: Which providers use exchange server?" }, { "role": "assistant", "content": "SELECT \"provider\" FROM \"snap_ins_and_hosts\" WHERE \"application\"='Exchange Server';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"snap_ins_and_hosts\" (\n \"application\" text,\n \"version\" text,\n \"cmdlets\" text,\n \"provider\" text,\n \"management_gui\" text\n);\n\nQuestion: Which providers use version 2008?" }, { "role": "assistant", "content": "SELECT \"provider\" FROM \"snap_ins_and_hosts\" WHERE \"version\"='2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"snap_ins_and_hosts\" (\n \"application\" text,\n \"version\" text,\n \"cmdlets\" text,\n \"provider\" text,\n \"management_gui\" text\n);\n\nQuestion: Which providers don't use exchange server?" }, { "role": "assistant", "content": "SELECT \"provider\" FROM \"snap_ins_and_hosts\" WHERE \"application\"='Exchange Server';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1986_87\" text,\n \"1987_88\" text,\n \"1988_89\" real\n);\n\nQuestion: how many points did the team that scored 27 points in the 1987-88 season score?" }, { "role": "assistant", "content": "SELECT COUNT(\"played\") FROM \"relegation\" WHERE \"1987_88\"='27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1986_87\" text,\n \"1987_88\" text,\n \"1988_89\" real\n);\n\nQuestion: how many points did the argentinos juniors team score during the 1986-87 season?" }, { "role": "assistant", "content": "SELECT \"1986_87\" FROM \"relegation\" WHERE \"team\"='Argentinos Juniors';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1986_87\" text,\n \"1987_88\" text,\n \"1988_89\" real\n);\n\nQuestion: how many points did the team that scored 38 points in the 1986-87 season score during the 1988-89 season?" }, { "role": "assistant", "content": "SELECT MIN(\"1988_89\") FROM \"relegation\" WHERE \"1986_87\"='38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1986_87\" text,\n \"1987_88\" text,\n \"1988_89\" real\n);\n\nQuestion: what is the maximum number of matches played by a team?" }, { "role": "assistant", "content": "SELECT MAX(\"played\") FROM \"relegation\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1986_87\" text,\n \"1987_88\" text,\n \"1988_89\" real\n);\n\nQuestion: list the number of matches played by the teams that got an average of 1.079" }, { "role": "assistant", "content": "SELECT \"1986_87\" FROM \"relegation\" WHERE \"average\"='1.079';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the womens singles for korea open super series" }, { "role": "assistant", "content": "SELECT \"womens_singles\" FROM \"winners\" WHERE \"tour\"='Korea Open Super Series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting" }, { "role": "assistant", "content": "SELECT \"tour\" FROM \"winners\" WHERE \"mens_singles\"='Chen Jin' AND \"womens_doubles\"='Zhang Yawen Zhao Tingting';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the womens doubles when tour is malaysia super series" }, { "role": "assistant", "content": "SELECT \"womens_doubles\" FROM \"winners\" WHERE \"tour\"='Malaysia Super Series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen" }, { "role": "assistant", "content": "SELECT \"mens_singles\" FROM \"winners\" WHERE \"womens_singles\"='Wang Lin' AND \"mixed_doubles\"='Joachim Fischer Nielsen Christinna Pedersen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mixed doubles when tour is hong kong super series" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"winners\" WHERE \"tour\"='Hong Kong Super Series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: Name the mixed doubles for zhu lin" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"winners\" WHERE \"womens_singles\"='Zhu Lin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"time_et\" text,\n \"tv\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: Name the week for kingdome" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"location\"='Kingdome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"time_et\" text,\n \"tv\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: Name the date when result is l 13\u201310 ot" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='L 13\u201310 OT';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"time_et\" text,\n \"tv\" text,\n \"result\" text,\n \"record\" text\n);\n\nQuestion: Name the record for l 24\u201322" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"result\"='L 24\u201322';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"channel\" text,\n \"year_aired\" text,\n \"top_prize\" text\n);\n\nQuestion: Which Country is the show aired on Fox?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"international_versions\" WHERE \"channel\"='Fox';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"channel\" text,\n \"year_aired\" text,\n \"top_prize\" text\n);\n\nQuestion: Where is the show aired in New Zealand?" }, { "role": "assistant", "content": "SELECT \"channel\" FROM \"international_versions\" WHERE \"country\"='New Zealand';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"channel\" text,\n \"year_aired\" text,\n \"top_prize\" text\n);\n\nQuestion: What channel had the prize of \u20ac100,000?" }, { "role": "assistant", "content": "SELECT \"channel\" FROM \"international_versions\" WHERE \"top_prize\"='\u20ac100,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"channel\" text,\n \"year_aired\" text,\n \"top_prize\" text\n);\n\nQuestion: How many hosts were on Seven Network?" }, { "role": "assistant", "content": "SELECT COUNT(\"host\") FROM \"international_versions\" WHERE \"channel\"='Seven Network';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_versions\" (\n \"country\" text,\n \"local_name\" text,\n \"host\" text,\n \"channel\" text,\n \"year_aired\" text,\n \"top_prize\" text\n);\n\nQuestion: What country is the show aired on TVNZ?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"international_versions\" WHERE \"channel\"='TVNZ';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" real,\n \"area_sq_mi\" real,\n \"population\" real\n);\n\nQuestion: What is the capital of Umbria?" }, { "role": "assistant", "content": "SELECT \"capital\" FROM \"administrative_divisions\" WHERE \"region\"='Umbria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" real,\n \"area_sq_mi\" real,\n \"population\" real\n);\n\nQuestion: What is the region where Milan is located?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"administrative_divisions\" WHERE \"capital\"='Milan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"administrative_divisions\" (\n \"region\" text,\n \"capital\" text,\n \"area_km\" real,\n \"area_sq_mi\" real,\n \"population\" real\n);\n\nQuestion: What is the area of Tuscany?" }, { "role": "assistant", "content": "SELECT MAX(\"area_km\") FROM \"administrative_divisions\" WHERE \"region\"='Tuscany';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"breakdown_by_region_and_height\" (\n \"country\" text,\n \"total\" real,\n \"4000ft\" real,\n \"3500_4000ft\" real,\n \"3000_3500ft\" real,\n \"2500_3000ft\" real,\n \"2000_2500ft\" real\n);\n\nQuestion: Name the minimum for 2500-3000 ft for scotland" }, { "role": "assistant", "content": "SELECT MIN(\"2500_3000ft\") FROM \"breakdown_by_region_and_height\" WHERE \"country\"='Scotland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"breakdown_by_region_and_height\" (\n \"country\" text,\n \"total\" real,\n \"4000ft\" real,\n \"3500_4000ft\" real,\n \"3000_3500ft\" real,\n \"2500_3000ft\" real,\n \"2000_2500ft\" real\n);\n\nQuestion: Name the most of 2500-3000ft" }, { "role": "assistant", "content": "SELECT MAX(\"2500_3000ft\") FROM \"breakdown_by_region_and_height\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"breakdown_by_region_and_height\" (\n \"country\" text,\n \"total\" real,\n \"4000ft\" real,\n \"3500_4000ft\" real,\n \"3000_3500ft\" real,\n \"2500_3000ft\" real,\n \"2000_2500ft\" real\n);\n\nQuestion: Name the minimum total for ireland" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"breakdown_by_region_and_height\" WHERE \"country\"='Ireland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14562722_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed all the episodes that were written by aaron ehasz & john o'bryan?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_14562722_1\" WHERE \"written_by\"='Aaron Ehasz & John O''Bryan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14562722_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_14562722_1\" WHERE \"written_by\"='Michael Dante DiMartino' AND \"directed_by\"='Lauren MacMullan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14562722_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_14562722_1\" WHERE \"directed_by\"='Giancarlo Volpe' AND \"written_by\"='John O''Bryan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14570857_1\" (\n \"num\" real,\n \"episode_title\" text,\n \"situation\" text,\n \"date_of_situation\" text,\n \"nature_of_situation\" text,\n \"original_u_s_airdate\" text\n);\n\nQuestion: Which situation has an original u.s. airdate of December 5, 2007?" }, { "role": "assistant", "content": "SELECT \"situation\" FROM \"table1_14570857_1\" WHERE \"original_u_s_airdate\"='December 5, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14570857_1\" (\n \"num\" real,\n \"episode_title\" text,\n \"situation\" text,\n \"date_of_situation\" text,\n \"nature_of_situation\" text,\n \"original_u_s_airdate\" text\n);\n\nQuestion: What is the date of situation for the original u.s. airdate of December 5, 2007?" }, { "role": "assistant", "content": "SELECT \"date_of_situation\" FROM \"table1_14570857_1\" WHERE \"original_u_s_airdate\"='December 5, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14570857_1\" (\n \"num\" real,\n \"episode_title\" text,\n \"situation\" text,\n \"date_of_situation\" text,\n \"nature_of_situation\" text,\n \"original_u_s_airdate\" text\n);\n\nQuestion: How many entries are there for date of situation for #4?" }, { "role": "assistant", "content": "SELECT COUNT(\"date_of_situation\") FROM \"table1_14570857_1\" WHERE \"num\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14570857_1\" (\n \"num\" real,\n \"episode_title\" text,\n \"situation\" text,\n \"date_of_situation\" text,\n \"nature_of_situation\" text,\n \"original_u_s_airdate\" text\n);\n\nQuestion: How many # entries are there for the date of situation of 23 January 2003?" }, { "role": "assistant", "content": "SELECT COUNT(\"num\") FROM \"table1_14570857_1\" WHERE \"date_of_situation\"='23 January 2003';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14570857_1\" (\n \"num\" real,\n \"episode_title\" text,\n \"situation\" text,\n \"date_of_situation\" text,\n \"nature_of_situation\" text,\n \"original_u_s_airdate\" text\n);\n\nQuestion: For the 8 October 2005 \u2013 12 October 2005 situation dates what was the nature of the situation?" }, { "role": "assistant", "content": "SELECT \"nature_of_situation\" FROM \"table1_14570857_1\" WHERE \"date_of_situation\"='8 October 2005 \u2013 12 October 2005';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"length\" text,\n \"pole_position\" text,\n \"gt3_winner\" text,\n \"gt4_winner\" text\n);\n\nQuestion: Name the circuit for gt3 alex mortimer bradley ellis" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"calendar\" WHERE \"gt3_winner\"='Alex Mortimer Bradley Ellis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14562722_2\" (\n \"volume\" real,\n \"discs\" real,\n \"episodes\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: Name the episodes when region 1 is september 19, 2006" }, { "role": "assistant", "content": "SELECT \"episodes\" FROM \"table1_14562722_2\" WHERE \"region_1\"='September 19, 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14562722_2\" (\n \"volume\" real,\n \"discs\" real,\n \"episodes\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: Name the maximum discs" }, { "role": "assistant", "content": "SELECT MAX(\"discs\") FROM \"table1_14562722_2\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14562722_2\" (\n \"volume\" real,\n \"discs\" real,\n \"episodes\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: Name the most epiosdes when region 4 is march 13, 2008" }, { "role": "assistant", "content": "SELECT MAX(\"episodes\") FROM \"table1_14562722_2\" WHERE \"region_4\"='March 13, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_summary\" (\n \"nation\" text,\n \"total_wins\" real,\n \"team_wins\" real,\n \"individual_wins\" real,\n \"individual_winners\" real\n);\n\nQuestion: what's the\u00a0individual winners\u00a0with\u00a0nation\u00a0being australia" }, { "role": "assistant", "content": "SELECT \"individual_winners\" FROM \"national_summary\" WHERE \"nation\"='Australia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"national_summary\" (\n \"nation\" text,\n \"total_wins\" real,\n \"team_wins\" real,\n \"individual_wins\" real,\n \"individual_winners\" real\n);\n\nQuestion: what is the value for minimum\u00a0total wins" }, { "role": "assistant", "content": "SELECT MIN(\"total_wins\") FROM \"national_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"1890_no_game\" text,\n \"1891_no_game\" text,\n \"1892_no_game\" text,\n \"1893_no_game\" text,\n \"1894_wsu_10_0_moscow\" text,\n \"1895_wsu_10_4_pullman\" text,\n \"1896_no_game\" text,\n \"1897_no_game\" text,\n \"1898_no_game\" text,\n \"1899_wsu_11_0_pullman\" text\n);\n\nQuestion: When 1994 no game is the 1894 wsu 10\u20130 moscow what is the 1896 no game?" }, { "role": "assistant", "content": "SELECT \"1896_no_game\" FROM \"game_results\" WHERE \"1894_wsu_10_0_moscow\"='1994 No game';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"1890_no_game\" text,\n \"1891_no_game\" text,\n \"1892_no_game\" text,\n \"1893_no_game\" text,\n \"1894_wsu_10_0_moscow\" text,\n \"1895_wsu_10_4_pullman\" text,\n \"1896_no_game\" text,\n \"1897_no_game\" text,\n \"1898_no_game\" text,\n \"1899_wsu_11_0_pullman\" text\n);\n\nQuestion: When 1963 wsu* 14\u201310 pullman is the 1893 no game what is the 1894 wsu 10\u20130 moscow?" }, { "role": "assistant", "content": "SELECT \"1894_wsu_10_0_moscow\" FROM \"game_results\" WHERE \"1893_no_game\"='1963 WSU* 14\u201310 Pullman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"1890_no_game\" text,\n \"1891_no_game\" text,\n \"1892_no_game\" text,\n \"1893_no_game\" text,\n \"1894_wsu_10_0_moscow\" text,\n \"1895_wsu_10_4_pullman\" text,\n \"1896_no_game\" text,\n \"1897_no_game\" text,\n \"1898_no_game\" text,\n \"1899_wsu_11_0_pullman\" text\n);\n\nQuestion: When 1934 wsu* 19\u20130 pullman is the 1894 wsu 10\u20130 moscow how many 1899 wsu* 11\u20130 pullmans are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"1899_wsu_11_0_pullman\") FROM \"game_results\" WHERE \"1894_wsu_10_0_moscow\"='1934 WSU* 19\u20130 Pullman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"1890_no_game\" text,\n \"1891_no_game\" text,\n \"1892_no_game\" text,\n \"1893_no_game\" text,\n \"1894_wsu_10_0_moscow\" text,\n \"1895_wsu_10_4_pullman\" text,\n \"1896_no_game\" text,\n \"1897_no_game\" text,\n \"1898_no_game\" text,\n \"1899_wsu_11_0_pullman\" text\n);\n\nQuestion: When 1987 no game is the 1897 no game what is the 1890 no game?" }, { "role": "assistant", "content": "SELECT \"1890_no_game\" FROM \"game_results\" WHERE \"1897_no_game\"='1987 No game';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"1890_no_game\" text,\n \"1891_no_game\" text,\n \"1892_no_game\" text,\n \"1893_no_game\" text,\n \"1894_wsu_10_0_moscow\" text,\n \"1895_wsu_10_4_pullman\" text,\n \"1896_no_game\" text,\n \"1897_no_game\" text,\n \"1898_no_game\" text,\n \"1899_wsu_11_0_pullman\" text\n);\n\nQuestion: When 1971 no game is the 1891 no game what is the 1896 no game?" }, { "role": "assistant", "content": "SELECT \"1896_no_game\" FROM \"game_results\" WHERE \"1891_no_game\"='1971 No game';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_results\" (\n \"1890_no_game\" text,\n \"1891_no_game\" text,\n \"1892_no_game\" text,\n \"1893_no_game\" text,\n \"1894_wsu_10_0_moscow\" text,\n \"1895_wsu_10_4_pullman\" text,\n \"1896_no_game\" text,\n \"1897_no_game\" text,\n \"1898_no_game\" text,\n \"1899_wsu_11_0_pullman\" text\n);\n\nQuestion: When the 1907 ui* 5\u20134 moscow is the 1897 no game what is the 1895 wsu* 10\u20134 pullman?" }, { "role": "assistant", "content": "SELECT \"1895_wsu_10_4_pullman\" FROM \"game_results\" WHERE \"1897_no_game\"='1907 UI* 5\u20134 Moscow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the total amount o teams where winnings is $1,752,299?" }, { "role": "assistant", "content": "SELECT COUNT(\"team_s\") FROM \"nascar_sprint_cup_series\" WHERE \"winnings\"='$1,752,299';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the avg start that starts at 30?" }, { "role": "assistant", "content": "SELECT \"avg_start\" FROM \"nascar_sprint_cup_series\" WHERE \"starts\"=30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What is the totl amount of years where avg start is 27.3?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"nascar_sprint_cup_series\" WHERE \"avg_start\"='27.3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaching_history\" (\n \"name_alma_mater\" text,\n \"seasons\" text,\n \"games\" real,\n \"wins\" real,\n \"losses\" real,\n \"win_pct\" text,\n \"ncaa_tour\" text,\n \"nit_tour\" text,\n \"mcc_tour\" text,\n \"a_10_tour\" text\n);\n\nQuestion: What coach had 15 wins?" }, { "role": "assistant", "content": "SELECT \"name_alma_mater\" FROM \"coaching_history\" WHERE \"wins\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaching_history\" (\n \"name_alma_mater\" text,\n \"seasons\" text,\n \"games\" real,\n \"wins\" real,\n \"losses\" real,\n \"win_pct\" text,\n \"ncaa_tour\" text,\n \"nit_tour\" text,\n \"mcc_tour\" text,\n \"a_10_tour\" text\n);\n\nQuestion: How many losses for the coach that coached 19 games?" }, { "role": "assistant", "content": "SELECT \"losses\" FROM \"coaching_history\" WHERE \"games\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the school year for class a for sterling city and little elm" }, { "role": "assistant", "content": "SELECT \"school_year\" FROM \"team\" WHERE \"class_a\"='Sterling City' AND \"class_aa\"='Little Elm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the number of class aa for bridgeport and 1999-2000" }, { "role": "assistant", "content": "SELECT COUNT(\"class_aa\") FROM \"team\" WHERE \"class_aaa\"='Bridgeport' AND \"school_year\"='1999-2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the class aa for 1998-99" }, { "role": "assistant", "content": "SELECT \"class_aa\" FROM \"team\" WHERE \"school_year\"='1998-99';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the class a for pearland" }, { "role": "assistant", "content": "SELECT \"class_a\" FROM \"team\" WHERE \"class_aaaaa\"='Pearland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the class aaaaa for 2005-06" }, { "role": "assistant", "content": "SELECT \"class_aaaaa\" FROM \"team\" WHERE \"school_year\"='2005-06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the number of class aaaaa for 1988-89" }, { "role": "assistant", "content": "SELECT COUNT(\"class_aaaaa\") FROM \"team\" WHERE \"school_year\"='1988-89';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14598_9\" (\n \"state_ut_code\" real,\n \"india_state_ut\" text,\n \"literate_persons_pct\" text,\n \"males_pct\" text,\n \"females_pct\" text\n);\n\nQuestion: What is the percentage of females where in India and are maharashtra?" }, { "role": "assistant", "content": "SELECT \"females_pct\" FROM \"table1_14598_9\" WHERE \"india_state_ut\"='Maharashtra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14598_9\" (\n \"state_ut_code\" real,\n \"india_state_ut\" text,\n \"literate_persons_pct\" text,\n \"males_pct\" text,\n \"females_pct\" text\n);\n\nQuestion: What is the percentage of all females that are literate people have a percentage of 68.74?" }, { "role": "assistant", "content": "SELECT \"females_pct\" FROM \"table1_14598_9\" WHERE \"literate_persons_pct\"='68.74';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14598_9\" (\n \"state_ut_code\" real,\n \"india_state_ut\" text,\n \"literate_persons_pct\" text,\n \"males_pct\" text,\n \"females_pct\" text\n);\n\nQuestion: What is the percentage of females where the state code is a 4?" }, { "role": "assistant", "content": "SELECT \"females_pct\" FROM \"table1_14598_9\" WHERE \"state_ut_code\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14598_9\" (\n \"state_ut_code\" real,\n \"india_state_ut\" text,\n \"literate_persons_pct\" text,\n \"males_pct\" text,\n \"females_pct\" text\n);\n\nQuestion: What is the percentage of all the literate people where females are 73.17?" }, { "role": "assistant", "content": "SELECT \"literate_persons_pct\" FROM \"table1_14598_9\" WHERE \"females_pct\"='73.17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14598_9\" (\n \"state_ut_code\" real,\n \"india_state_ut\" text,\n \"literate_persons_pct\" text,\n \"males_pct\" text,\n \"females_pct\" text\n);\n\nQuestion: What is the percentage of literate people where india is andaman and Nicobar Islands?" }, { "role": "assistant", "content": "SELECT \"literate_persons_pct\" FROM \"table1_14598_9\" WHERE \"india_state_ut\"='Andaman and Nicobar Islands';" } ]