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 \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What's the original title of the nomination title, \"brecha en el silencio\"?" }, { "role": "assistant", "content": "SELECT \"original_title\" FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='brecha en el silencio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What year has a nomination title of \"sangrador\"?" }, { "role": "assistant", "content": "SELECT \"year_ceremony\" FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='sangrador';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What year has a original title of \"el tinte de la fama\"?" }, { "role": "assistant", "content": "SELECT \"year_ceremony\" FROM \"submissions\" WHERE \"original_title\"='el tinte de la fama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"original_title\" text,\n \"film_title_used_in_nomination\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What's the result for director elia schneider's punto y raya?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"submissions\" WHERE \"director\"='elia schneider' AND \"film_title_used_in_nomination\"='punto y raya';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the score points when the total is 20?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"total\"='20';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the score points in WC Kerrville, when rank was points of 8?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"event\"='wc kerrville' AND \"rank_points\"='8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the score points when the total is 16?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"total\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the score points when the rank points is 3?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"rank_points\"='3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the total when the score points show Olympic bronze medalist?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"qualification\" WHERE \"score_points\"='olympic bronze medalist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What Winning constructor has a Circuit of lasarte?" }, { "role": "assistant", "content": "SELECT \"winning_constructor\" FROM \"other_grands_prix\" WHERE \"circuit\"='lasarte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What Date has a Winning driver of ugo sivocci?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"other_grands_prix\" WHERE \"winning_driver\"='ugo sivocci';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What Report has a Winning driver of mario razzauti?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"other_grands_prix\" WHERE \"winning_driver\"='mario razzauti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What Date has a Circuit of cremona?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"other_grands_prix\" WHERE \"circuit\"='cremona';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What Name has a Winning constructor of ansaldo?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='ansaldo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What Winning driver has a Winning constructor of sunbeam?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='sunbeam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average total for 0 bronze?" }, { "role": "assistant", "content": "SELECT AVG(\"total\") FROM \"medals_table\" WHERE \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"arranger_s\" text,\n \"time\" text\n);\n\nQuestion: What is the time entry for the track composed by ROZ, with the title \"\uc798\ud574\ubd10 (good luck!!)\"?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"track_listing\" WHERE \"composer_s\"='roz' AND \"title\"='\\\"\uc798\ud574\ubd10 (good luck!!)\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"arranger_s\" text,\n \"time\" text\n);\n\nQuestion: How long is the track \"\uc798\ud574\ubd10 (good luck!!)\"?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"track_listing\" WHERE \"title\"='\\\"\uc798\ud574\ubd10 (good luck!!)\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"arranger_s\" text,\n \"time\" text\n);\n\nQuestion: What is the title of the track with lyricist ROZ and arranger Yongmin Lee?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"track_listing\" WHERE \"lyricist_s\"='roz' AND \"arranger_s\"='yongmin lee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"arranger_s\" text,\n \"time\" text\n);\n\nQuestion: Who was the lyricist for composer ROZ on title \"\uc694\ub9ac\uc655 (cooking? cooking!)\"?" }, { "role": "assistant", "content": "SELECT \"lyricist_s\" FROM \"track_listing\" WHERE \"composer_s\"='roz' AND \"title\"='\\\"\uc694\ub9ac\uc655 (cooking? cooking!)\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"arranger_s\" text,\n \"time\" text\n);\n\nQuestion: Who was the lyricist for composer Haewon Park?" }, { "role": "assistant", "content": "SELECT \"lyricist_s\" FROM \"track_listing\" WHERE \"composer_s\"='haewon park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"title\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"arranger_s\" text,\n \"time\" text\n);\n\nQuestion: What are the lengths of the tracks arranged by ROZ?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"track_listing\" WHERE \"arranger_s\"='roz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_titleholders_and_runners_up\" (\n \"host_city\" text,\n \"year\" real,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: What host city had a 2nd runner up of woon yeow?" }, { "role": "assistant", "content": "SELECT \"host_city\" FROM \"list_of_titleholders_and_runners_up\" WHERE \"2nd_runner_up\"='woon yeow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_titleholders_and_runners_up\" (\n \"host_city\" text,\n \"year\" real,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: How many years did caroline lubrez win?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"list_of_titleholders_and_runners_up\" WHERE \"winner\"='caroline lubrez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_titleholders_and_runners_up\" (\n \"host_city\" text,\n \"year\" real,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: Who won after 2007 when deyra cimen was the 1st runner up?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"list_of_titleholders_and_runners_up\" WHERE \"year\">2007 AND \"1st_runner_up\"='deyra cimen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_titleholders_and_runners_up\" (\n \"host_city\" text,\n \"year\" real,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: How many years was assel isabaeva the 2nd runner up?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"list_of_titleholders_and_runners_up\" WHERE \"2nd_runner_up\"='assel isabaeva';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_titleholders_and_runners_up\" (\n \"host_city\" text,\n \"year\" real,\n \"winner\" text,\n \"1st_runner_up\" text,\n \"2nd_runner_up\" text\n);\n\nQuestion: Who was the 2nd runner up in istanbul after 1994 when veronica laskaeva was the 1st runner up?" }, { "role": "assistant", "content": "SELECT \"2nd_runner_up\" FROM \"list_of_titleholders_and_runners_up\" WHERE \"year\">1994 AND \"host_city\"='istanbul' AND \"1st_runner_up\"='veronica laskaeva';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Which Area km 2 has an Official Name of stanley, and a Population larger than 1,817?" }, { "role": "assistant", "content": "SELECT MAX(\"area_km_2\") FROM \"parishes\" WHERE \"official_name\"='stanley' AND \"population\">'1,817';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: How much Area km 2 have a Population of 1,215?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km_2\") FROM \"parishes\" WHERE \"population\"='1,215';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?" }, { "role": "assistant", "content": "SELECT \"census_ranking\" FROM \"parishes\" WHERE \"population\"<879 AND \"area_km_2\">537.62;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Which Census Ranking has an Area km 2 larger than 753.06, and an Official Name of stanley?" }, { "role": "assistant", "content": "SELECT \"census_ranking\" FROM \"parishes\" WHERE \"area_km_2\">753.06 AND \"official_name\"='stanley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: Which Area km 2 has an Official Name of southampton, and a Population larger than 1,601?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km_2\") FROM \"parishes\" WHERE \"official_name\"='southampton' AND \"population\">'1,601';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is Kirkby Town's lowest lost with more than 83 goals?" }, { "role": "assistant", "content": "SELECT MIN(\"lost\") FROM \"third_division_final_table\" WHERE \"team\"='kirkby town' AND \"goals_for\">83;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the lowest position with points 1 of 27 2 and fewer than 9 drawn?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"third_division_final_table\" WHERE \"points_1\"='27 2' AND \"drawn\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the goal difference number with a position of 15?" }, { "role": "assistant", "content": "SELECT \"goal_difference\" FROM \"third_division_final_table\" WHERE \"position\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_1\" (\n \"english_translation\" text,\n \"original_album\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"time\" text\n);\n\nQuestion: What is Original Album, when English Translation is \"With You\"?" }, { "role": "assistant", "content": "SELECT \"original_album\" FROM \"disc_1\" WHERE \"english_translation\"='\\\"with you\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_1\" (\n \"english_translation\" text,\n \"original_album\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"time\" text\n);\n\nQuestion: What is the Original Album, when English Translation is \"What Else Will I Hear\"?" }, { "role": "assistant", "content": "SELECT \"original_album\" FROM \"disc_1\" WHERE \"english_translation\"='\\\"what else will i hear\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_1\" (\n \"english_translation\" text,\n \"original_album\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"time\" text\n);\n\nQuestion: What is English Translation, when Lyricist(s) is \"Giorgos Moukidis\", and when Original Album is \"Ena (New Edition)\"" }, { "role": "assistant", "content": "SELECT \"english_translation\" FROM \"disc_1\" WHERE \"lyricist_s\"='giorgos moukidis' AND \"original_album\"='ena (new edition)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_1\" (\n \"english_translation\" text,\n \"original_album\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"time\" text\n);\n\nQuestion: What is Original Album, when Time is \"3:39\"?" }, { "role": "assistant", "content": "SELECT \"original_album\" FROM \"disc_1\" WHERE \"time\"='3:39';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_1\" (\n \"english_translation\" text,\n \"original_album\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"time\" text\n);\n\nQuestion: What is Time, when Lyricist(s) is Giorgos Moukidis, and when English Translation is \"Nowhere\"?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"disc_1\" WHERE \"lyricist_s\"='giorgos moukidis' AND \"english_translation\"='\\\"nowhere\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"disc_1\" (\n \"english_translation\" text,\n \"original_album\" text,\n \"lyricist_s\" text,\n \"composer_s\" text,\n \"time\" text\n);\n\nQuestion: What is Time, when Composer(s) is \"Kyriakos Papadopoulos\"?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"disc_1\" WHERE \"composer_s\"='kyriakos papadopoulos';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: Who was the visitor on March 27?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"regular_season\" WHERE \"date\"='march 27';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What was the score of the game on February 8?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"date\"='february 8';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What was their record on December 4?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='december 4';" } ]
[ { "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 \"record\" text\n);\n\nQuestion: What was the score on February 21 when the home team was the Pittsburgh Penguins?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"regular_season\" WHERE \"home\"='pittsburgh penguins' AND \"date\"='february 21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: WHAT IS THE LOWEST MONEY WITH TO PAR LARGER THAN 26?" }, { "role": "assistant", "content": "SELECT MIN(\"money\") FROM \"final_leaderboard\" WHERE \"to_par\">26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: WHAT IS THE SCORE WITH $85 FOR CLARENCE HACKNEY?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_leaderboard\" WHERE \"money\"=85 AND \"player\"='clarence hackney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE?" }, { "role": "assistant", "content": "SELECT MIN(\"money\") FROM \"final_leaderboard\" WHERE \"score\"='74-74-76-74=298';" } ]
[ { "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 week number for the date of September 14, 1980?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"date\"='september 14, 1980';" } ]
[ { "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 week was the result l 14\u20139?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"result\"='l 14\u20139';" } ]
[ { "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 week number with attendance of 44,132?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\"='44,132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text\n);\n\nQuestion: Who was the winner for the circuit Eastern Creek Raceway?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"circuit\"='eastern creek raceway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text\n);\n\nQuestion: What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?" }, { "role": "assistant", "content": "SELECT \"city_state\" FROM \"race_calendar\" WHERE \"winner\"='darren hossack' AND \"circuit\"='phillip island grand prix circuit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"race_title\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text\n);\n\nQuestion: What city was the circuit of mallala motor sport park?" }, { "role": "assistant", "content": "SELECT \"city_state\" FROM \"race_calendar\" WHERE \"circuit\"='mallala motor sport park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which To par has a Place of t1, and a Country of india?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"place\"='t1' AND \"country\"='india';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What is Brian Gay's place?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"first_round\" WHERE \"player\"='brian gay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Country has a Score smaller than 70, and a Place of t3, and a Player of andr\u00e9s romero?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"first_round\" WHERE \"score\"<70 AND \"place\"='t3' AND \"player\"='andr\u00e9s romero';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet_roster\" (\n \"order_year\" text,\n \"builder\" text,\n \"model\" text,\n \"length_ft\" text,\n \"engine_transmission\" text\n);\n\nQuestion: What order year has a 30 Length (ft.) and 05.505 model?" }, { "role": "assistant", "content": "SELECT \"order_year\" FROM \"fleet_roster\" WHERE \"length_ft\"='30' AND \"model\"='05.505';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet_roster\" (\n \"order_year\" text,\n \"builder\" text,\n \"model\" text,\n \"length_ft\" text,\n \"engine_transmission\" text\n);\n\nQuestion: What builder has a 2001-02 order year?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"fleet_roster\" WHERE \"order_year\"='2001-02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fleet_roster\" (\n \"order_year\" text,\n \"builder\" text,\n \"model\" text,\n \"length_ft\" text,\n \"engine_transmission\" text\n);\n\nQuestion: What is the order year of obi builder and 05.505 model that is 30 feet long?" }, { "role": "assistant", "content": "SELECT \"order_year\" FROM \"fleet_roster\" WHERE \"builder\"='obi' AND \"length_ft\"='30' AND \"model\"='05.505';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_goalscorers\" (\n \"player\" text,\n \"career\" text,\n \"goals_caps\" text,\n \"pct\" real,\n \"playing_status\" text\n);\n\nQuestion: What is the career of player serhiy konovalov, who has less than 1 pct.?" }, { "role": "assistant", "content": "SELECT \"career\" FROM \"season_goalscorers\" WHERE \"pct\"<1 AND \"player\"='serhiy konovalov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_goalscorers\" (\n \"player\" text,\n \"career\" text,\n \"goals_caps\" text,\n \"pct\" real,\n \"playing_status\" text\n);\n\nQuestion: What is the career of player andriy husyn?" }, { "role": "assistant", "content": "SELECT \"career\" FROM \"season_goalscorers\" WHERE \"player\"='andriy husyn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ukrainian_ssr_livestock_thousand_head\" (\n \"year\" real,\n \"total_horses\" real,\n \"working_horses\" text,\n \"total_cattle\" real,\n \"oxen\" real,\n \"bulls\" text,\n \"cows\" real,\n \"pigs\" real,\n \"sheep_and_goats\" real\n);\n\nQuestion: What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"ukrainian_ssr_livestock_thousand_head\" WHERE \"working_horses\"='3900.1' AND \"cows\"<3852.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ukrainian_ssr_livestock_thousand_head\" (\n \"year\" real,\n \"total_horses\" real,\n \"working_horses\" text,\n \"total_cattle\" real,\n \"oxen\" real,\n \"bulls\" text,\n \"cows\" real,\n \"pigs\" real,\n \"sheep_and_goats\" real\n);\n\nQuestion: What is the number of bulls that has oxen larger than 113.8, and a sheep and goats larger than 4533.4, and a cows smaller than 3987, and a total horses larger than 5056.5?" }, { "role": "assistant", "content": "SELECT \"bulls\" FROM \"ukrainian_ssr_livestock_thousand_head\" WHERE \"oxen\">113.8 AND \"sheep_and_goats\">4533.4 AND \"cows\"<3987 AND \"total_horses\">5056.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ukrainian_ssr_livestock_thousand_head\" (\n \"year\" real,\n \"total_horses\" real,\n \"working_horses\" text,\n \"total_cattle\" real,\n \"oxen\" real,\n \"bulls\" text,\n \"cows\" real,\n \"pigs\" real,\n \"sheep_and_goats\" real\n);\n\nQuestion: How many years had fewer than 2089.2 pigs?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"ukrainian_ssr_livestock_thousand_head\" WHERE \"pigs\"<2089.2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ukrainian_ssr_livestock_thousand_head\" (\n \"year\" real,\n \"total_horses\" real,\n \"working_horses\" text,\n \"total_cattle\" real,\n \"oxen\" real,\n \"bulls\" text,\n \"cows\" real,\n \"pigs\" real,\n \"sheep_and_goats\" real\n);\n\nQuestion: What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?" }, { "role": "assistant", "content": "SELECT MIN(\"total_horses\") FROM \"ukrainian_ssr_livestock_thousand_head\" WHERE \"total_cattle\"<6274.1 AND \"oxen\"<156.5 AND \"bulls\"='40.0' AND \"cows\"<3377;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ukrainian_ssr_livestock_thousand_head\" (\n \"year\" real,\n \"total_horses\" real,\n \"working_horses\" text,\n \"total_cattle\" real,\n \"oxen\" real,\n \"bulls\" text,\n \"cows\" real,\n \"pigs\" real,\n \"sheep_and_goats\" real\n);\n\nQuestion: What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?" }, { "role": "assistant", "content": "SELECT MIN(\"sheep_and_goats\") FROM \"ukrainian_ssr_livestock_thousand_head\" WHERE \"year\">1931 AND \"cows\"<2518 AND \"total_horses\">2604.8;" } ]
[ { "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 \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: For the game ending with a record of 31-43-2, what was the decision?" }, { "role": "assistant", "content": "SELECT \"decision\" FROM \"game_log\" WHERE \"record\"='31-43-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 \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: For the game that ended with a record of 28-35-1, what was the decision?" }, { "role": "assistant", "content": "SELECT \"decision\" FROM \"game_log\" WHERE \"record\"='28-35-1';" } ]
[ { "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 \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: WHAT IS THE HIGHEST ATTENDANCE FOR THE PHOENIX COYOTES?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"game_log\" WHERE \"opponent\"='phoenix coyotes';" } ]
[ { "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 \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: WHAT IS THE DECISION FOR NOVEMBER 28?" }, { "role": "assistant", "content": "SELECT \"decision\" FROM \"game_log\" WHERE \"date\"='november 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"resident_heads_of_missions\" (\n \"mission\" text,\n \"location\" text,\n \"type\" text,\n \"head_of_mission\" text,\n \"position\" text,\n \"list\" text\n);\n\nQuestion: what is the mission when the location is rome?" }, { "role": "assistant", "content": "SELECT \"mission\" FROM \"resident_heads_of_missions\" WHERE \"location\"='rome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"resident_heads_of_missions\" (\n \"mission\" text,\n \"location\" text,\n \"type\" text,\n \"head_of_mission\" text,\n \"position\" text,\n \"list\" text\n);\n\nQuestion: what is the mission when the head of mission is pedro blandino?" }, { "role": "assistant", "content": "SELECT \"mission\" FROM \"resident_heads_of_missions\" WHERE \"head_of_mission\"='pedro blandino';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"resident_heads_of_missions\" (\n \"mission\" text,\n \"location\" text,\n \"type\" text,\n \"head_of_mission\" text,\n \"position\" text,\n \"list\" text\n);\n\nQuestion: what is the location when the type is embassy and the head of mission is jos\u00e9 manuel castillo?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"resident_heads_of_missions\" WHERE \"type\"='embassy' AND \"head_of_mission\"='jos\u00e9 manuel castillo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"resident_heads_of_missions\" (\n \"mission\" text,\n \"location\" text,\n \"type\" text,\n \"head_of_mission\" text,\n \"position\" text,\n \"list\" text\n);\n\nQuestion: what is the location when the type is embassy and the mission is panama?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"resident_heads_of_missions\" WHERE \"type\"='embassy' AND \"mission\"='panama';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"resident_heads_of_missions\" (\n \"mission\" text,\n \"location\" text,\n \"type\" text,\n \"head_of_mission\" text,\n \"position\" text,\n \"list\" text\n);\n\nQuestion: what is the mission when the location is brasilia?" }, { "role": "assistant", "content": "SELECT \"mission\" FROM \"resident_heads_of_missions\" WHERE \"location\"='brasilia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"resident_heads_of_missions\" (\n \"mission\" text,\n \"location\" text,\n \"type\" text,\n \"head_of_mission\" text,\n \"position\" text,\n \"list\" text\n);\n\nQuestion: what is the type when the position is ambassador and the location is rabat?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"resident_heads_of_missions\" WHERE \"position\"='ambassador' AND \"location\"='rabat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"league\" text,\n \"finish\" text,\n \"wins\" text,\n \"losses\" text,\n \"pct\" text\n);\n\nQuestion: How many wins when the pct, is .848?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"season_by_season\" WHERE \"pct\"='.848';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"league\" text,\n \"finish\" text,\n \"wins\" text,\n \"losses\" text,\n \"pct\" text\n);\n\nQuestion: Which season had 34 losses?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"season_by_season\" WHERE \"losses\"='34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"league\" text,\n \"finish\" text,\n \"wins\" text,\n \"losses\" text,\n \"pct\" text\n);\n\nQuestion: What was the finish in the playoffs season?" }, { "role": "assistant", "content": "SELECT \"finish\" FROM \"season_by_season\" WHERE \"season\"='playoffs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"league\" text,\n \"finish\" text,\n \"wins\" text,\n \"losses\" text,\n \"pct\" text\n);\n\nQuestion: What is the number of wins in the playoffs league?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"season_by_season\" WHERE \"league\"='playoffs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"league\" text,\n \"finish\" text,\n \"wins\" text,\n \"losses\" text,\n \"pct\" text\n);\n\nQuestion: What is the league with 0 losses?" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"season_by_season\" WHERE \"losses\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: In what place is the player with a score of 72-66-75=213?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='72-66-75=213';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: From what country is the player with a score of 68-71-76=215?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='68-71-76=215';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which player has a score of 68-69-73=210" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='68-69-73=210';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: Who has a finish of t66?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"finish\"='t66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is Wayne Grady's total?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"made_the_cut\" WHERE \"player\"='wayne grady';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_state\" (\n \"state\" text,\n \"gr_ne\" text,\n \"fritz\" text,\n \"rett\" text,\n \"linke\" text,\n \"stark\" text\n);\n\nQuestion: What percent did GR\u00dcNE get in Tyrol where RETT\u00d6 got 0.6%?" }, { "role": "assistant", "content": "SELECT \"gr_ne\" FROM \"by_state\" WHERE \"rett\"='0.6%' AND \"state\"='tyrol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_state\" (\n \"state\" text,\n \"gr_ne\" text,\n \"fritz\" text,\n \"rett\" text,\n \"linke\" text,\n \"stark\" text\n);\n\nQuestion: What percent did RETT\u00d6 get in the state where LINKE got 0.1%, and FRITZ got 1.3%?" }, { "role": "assistant", "content": "SELECT \"rett\" FROM \"by_state\" WHERE \"linke\"='0.1%' AND \"fritz\"='1.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_state\" (\n \"state\" text,\n \"gr_ne\" text,\n \"fritz\" text,\n \"rett\" text,\n \"linke\" text,\n \"stark\" text\n);\n\nQuestion: What percent did GR\u00dcNE get in the state where FRITZ got 1.3%?" }, { "role": "assistant", "content": "SELECT \"gr_ne\" FROM \"by_state\" WHERE \"fritz\"='1.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_state\" (\n \"state\" text,\n \"gr_ne\" text,\n \"fritz\" text,\n \"rett\" text,\n \"linke\" text,\n \"stark\" text\n);\n\nQuestion: What percent did LINKE get in Tyrol?" }, { "role": "assistant", "content": "SELECT \"linke\" FROM \"by_state\" WHERE \"state\"='tyrol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_state\" (\n \"state\" text,\n \"gr_ne\" text,\n \"fritz\" text,\n \"rett\" text,\n \"linke\" text,\n \"stark\" text\n);\n\nQuestion: What percent did STARK get in upper austria?" }, { "role": "assistant", "content": "SELECT \"stark\" FROM \"by_state\" WHERE \"state\"='upper austria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1971\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What's the lowest against on 27/03/1971?" }, { "role": "assistant", "content": "SELECT MIN(\"against\") FROM \"1971\" WHERE \"date\"='27/03/1971';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1971\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What venue has an against over 14, an opposing team of scotland, and a status of five nations?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"1971\" WHERE \"against\">14 AND \"opposing_teams\"='scotland' AND \"status\"='five nations';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the T4 Place Player with a Score of 71-74-66=211?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"place\"='t4' AND \"score\"='71-74-66=211';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: With a To par of \u20131, what is Player Henrik Stenson's Score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"to_par\"='\u20131' AND \"player\"='henrik stenson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the To par of the Player with a Score of 73-67-68=208?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='73-67-68=208';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_of_features\" (\n \"name\" text,\n \"wikis\" text,\n \"web_publishing\" text,\n \"calendaring_software\" text,\n \"project_management\" text,\n \"workflow_system\" text,\n \"document_management\" text,\n \"list_management\" text,\n \"xml_forms_management_and_workflow\" text,\n \"discussion\" text,\n \"blogs\" text,\n \"surveys\" text,\n \"time_tracking\" text,\n \"business_intelligence\" text,\n \"charting\" text,\n \"bookmarking_tagging_rating_and_comments\" text,\n \"social_software\" text,\n \"enterprise_search\" text,\n \"office_suite\" text\n);\n\nQuestion: WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?" }, { "role": "assistant", "content": "SELECT \"project_management\" FROM \"comparison_of_features\" WHERE \"blogs\"='no' AND \"xml_forms_management_and_workflow\"='no' AND \"enterprise_search\"='no' AND \"social_software\"='no';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_of_features\" (\n \"name\" text,\n \"wikis\" text,\n \"web_publishing\" text,\n \"calendaring_software\" text,\n \"project_management\" text,\n \"workflow_system\" text,\n \"document_management\" text,\n \"list_management\" text,\n \"xml_forms_management_and_workflow\" text,\n \"discussion\" text,\n \"blogs\" text,\n \"surveys\" text,\n \"time_tracking\" text,\n \"business_intelligence\" text,\n \"charting\" text,\n \"bookmarking_tagging_rating_and_comments\" text,\n \"social_software\" text,\n \"enterprise_search\" text,\n \"office_suite\" text\n);\n\nQuestion: WHAT CHARTING HAS NO BLOGS OR DISCUSSION?" }, { "role": "assistant", "content": "SELECT \"charting\" FROM \"comparison_of_features\" WHERE \"blogs\"='no' AND \"discussion\"='no';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"comparison_of_features\" (\n \"name\" text,\n \"wikis\" text,\n \"web_publishing\" text,\n \"calendaring_software\" text,\n \"project_management\" text,\n \"workflow_system\" text,\n \"document_management\" text,\n \"list_management\" text,\n \"xml_forms_management_and_workflow\" text,\n \"discussion\" text,\n \"blogs\" text,\n \"surveys\" text,\n \"time_tracking\" text,\n \"business_intelligence\" text,\n \"charting\" text,\n \"bookmarking_tagging_rating_and_comments\" text,\n \"social_software\" text,\n \"enterprise_search\" text,\n \"office_suite\" text\n);\n\nQuestion: WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?" }, { "role": "assistant", "content": "SELECT \"social_software\" FROM \"comparison_of_features\" WHERE \"discussion\"='no' AND \"time_tracking\"='no' AND \"charting\"='no';" } ]