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 \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest Gold, when Silver is 0, and when Bronze is 2?" }, { "role": "assistant", "content": "SELECT MIN(\"gold\") FROM \"medal_table\" WHERE \"silver\"=0 AND \"bronze\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?" }, { "role": "assistant", "content": "SELECT AVG(\"bronze\") FROM \"medal_table\" WHERE \"silver\"=0 AND \"rank\"='19' AND \"total\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"versions\" (\n \"release\" real,\n \"start\" text,\n \"pieces\" real,\n \"board_inches\" text,\n \"board_cm\" text,\n \"type\" text\n);\n\nQuestion: What was the lowest number of pieces for a board released in 1984?" }, { "role": "assistant", "content": "SELECT MIN(\"pieces\") FROM \"versions\" WHERE \"release\"=1984;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"versions\" (\n \"release\" real,\n \"start\" text,\n \"pieces\" real,\n \"board_inches\" text,\n \"board_cm\" text,\n \"type\" text\n);\n\nQuestion: What is the dimensions in centimeters of a theater board who started in 1940, who was released after 2010?" }, { "role": "assistant", "content": "SELECT \"board_cm\" FROM \"versions\" WHERE \"start\"='1940' AND \"type\"='theater' AND \"release\">2010;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"versions\" (\n \"release\" real,\n \"start\" text,\n \"pieces\" real,\n \"board_inches\" text,\n \"board_cm\" text,\n \"type\" text\n);\n\nQuestion: What is the average number of pieces for boards that started in 1941 and were released after 2001?" }, { "role": "assistant", "content": "SELECT AVG(\"pieces\") FROM \"versions\" WHERE \"start\"='1941' AND \"release\">2001;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"versions\" (\n \"release\" real,\n \"start\" text,\n \"pieces\" real,\n \"board_inches\" text,\n \"board_cm\" text,\n \"type\" text\n);\n\nQuestion: What are the dimensions in inches of the board released before 2004, that started in 1941?" }, { "role": "assistant", "content": "SELECT \"board_inches\" FROM \"versions\" WHERE \"release\"<2004 AND \"start\"='1941';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is Venue, when Against is less than 30, and when Opposing Team is New South Wales?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"matches\" WHERE \"against\"<30 AND \"opposing_team\"='new south wales';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is Status, when Date is 10/05/1975?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"matches\" WHERE \"date\"='10/05/1975';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is the lowest Against, when Opposing Team is Queensland?" }, { "role": "assistant", "content": "SELECT MIN(\"against\") FROM \"matches\" WHERE \"opposing_team\"='queensland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What is Date, when Status is Second Test?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"matches\" WHERE \"status\"='second test';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"detailed_overview\" (\n \"name\" text,\n \"place_of_birth\" text,\n \"date_of_birth\" text,\n \"club_apps\" text,\n \"club_goals\" text,\n \"int_caps\" text,\n \"int_goals\" text,\n \"previous_club\" text,\n \"date_joined\" text,\n \"end_1\" real\n);\n\nQuestion: Who was born in Porsgrunn?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"detailed_overview\" WHERE \"place_of_birth\"='porsgrunn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_grossing_films_international\" (\n \"rank\" real,\n \"title\" text,\n \"studio\" text,\n \"director\" text,\n \"gross\" text\n);\n\nQuestion: Which Studio has a Rank smaller than 3, and a Director of adrian lyne?" }, { "role": "assistant", "content": "SELECT \"studio\" FROM \"top_grossing_films_international\" WHERE \"rank\"<3 AND \"director\"='adrian lyne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_grossing_films_international\" (\n \"rank\" real,\n \"title\" text,\n \"studio\" text,\n \"director\" text,\n \"gross\" text\n);\n\nQuestion: Which Rank is the lowest one that has a Gross of $54,215,416?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"top_grossing_films_international\" WHERE \"gross\"='$54,215,416';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_13_5_8\" (\n \"outcome\" text,\n \"date\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the date of the match against John McEnroe with a Score of 3\u20136, 6\u20133, 2\u20136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_finals_13_5_8\" WHERE \"opponent\"='john mcenroe' AND \"score\"='3\u20136, 6\u20133, 2\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_finals_13_5_8\" (\n \"outcome\" text,\n \"date\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the Opponent of the game in 1989?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"singles_finals_13_5_8\" WHERE \"date\"=1989;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the highest pick of ron whaley?" }, { "role": "assistant", "content": "SELECT MAX(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"name\"='ron whaley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the overall sum of the game with a pick less than 8 from the college of western michigan?" }, { "role": "assistant", "content": "SELECT SUM(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"pick\"<8 AND \"college\"='western michigan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the position of the player from the college of western michigan?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"washington_redskins_draft_history\" WHERE \"college\"='western michigan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"pick\">7 AND \"name\"='bob caldwell' AND \"overall\">162;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the college of dave adams, who has a pick greater than 7?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"washington_redskins_draft_history\" WHERE \"pick\">7 AND \"name\"='dave adams';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What game took place on April 28?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"game_log\" WHERE \"date\"='april 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"landesliga\" (\n \"season\" text,\n \"north\" text,\n \"south\" text,\n \"east\" text,\n \"west\" text\n);\n\nQuestion: What is the east with ev landsberg as the west?" }, { "role": "assistant", "content": "SELECT \"east\" FROM \"landesliga\" WHERE \"west\"='ev landsberg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"landesliga\" (\n \"season\" text,\n \"north\" text,\n \"south\" text,\n \"east\" text,\n \"west\" text\n);\n\nQuestion: What is the north with sb rosenheim as the south?" }, { "role": "assistant", "content": "SELECT \"north\" FROM \"landesliga\" WHERE \"south\"='sb rosenheim';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"landesliga\" (\n \"season\" text,\n \"north\" text,\n \"south\" text,\n \"east\" text,\n \"west\" text\n);\n\nQuestion: What is the south with ev lindau as the west and svg burgkirchen as the east?" }, { "role": "assistant", "content": "SELECT \"south\" FROM \"landesliga\" WHERE \"west\"='ev lindau' AND \"east\"='svg burgkirchen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"landesliga\" (\n \"season\" text,\n \"north\" text,\n \"south\" text,\n \"east\" text,\n \"west\" text\n);\n\nQuestion: What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"landesliga\" WHERE \"south\"='esc holzkirchen' AND \"west\"='esv buchloe' AND \"north\"='ehc bayreuth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"landesliga\" (\n \"season\" text,\n \"north\" text,\n \"south\" text,\n \"east\" text,\n \"west\" text\n);\n\nQuestion: What is south in the 2001-02 season, which had germering wanderers east?" }, { "role": "assistant", "content": "SELECT \"south\" FROM \"landesliga\" WHERE \"east\"='germering wanderers' AND \"season\"='2001-02';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"landesliga\" (\n \"season\" text,\n \"north\" text,\n \"south\" text,\n \"east\" text,\n \"west\" text\n);\n\nQuestion: What was west when ev f\u00fcrstenfeldbruck was south?" }, { "role": "assistant", "content": "SELECT \"west\" FROM \"landesliga\" WHERE \"south\"='ev f\u00fcrstenfeldbruck';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bunzl_plc_financial_results\" (\n \"year_ended\" text,\n \"revenue_million\" real,\n \"profit_loss_before_tax_m\" real,\n \"net_profit_m\" real,\n \"earnings_per_share_p\" real\n);\n\nQuestion: When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share?" }, { "role": "assistant", "content": "SELECT SUM(\"earnings_per_share_p\") FROM \"bunzl_plc_financial_results\" WHERE \"year_ended\"='2008' AND \"revenue_million\"<'4,177';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bunzl_plc_financial_results\" (\n \"year_ended\" text,\n \"revenue_million\" real,\n \"profit_loss_before_tax_m\" real,\n \"net_profit_m\" real,\n \"earnings_per_share_p\" real\n);\n\nQuestion: What is the year 2007 earnings per share?" }, { "role": "assistant", "content": "SELECT \"earnings_per_share_p\" FROM \"bunzl_plc_financial_results\" WHERE \"year_ended\"='2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bunzl_plc_financial_results\" (\n \"year_ended\" text,\n \"revenue_million\" real,\n \"profit_loss_before_tax_m\" real,\n \"net_profit_m\" real,\n \"earnings_per_share_p\" real\n);\n\nQuestion: What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?" }, { "role": "assistant", "content": "SELECT SUM(\"net_profit_m\") FROM \"bunzl_plc_financial_results\" WHERE \"earnings_per_share_p\"=27.4 AND \"profit_loss_before_tax_m\"<194.6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bunzl_plc_financial_results\" (\n \"year_ended\" text,\n \"revenue_million\" real,\n \"profit_loss_before_tax_m\" real,\n \"net_profit_m\" real,\n \"earnings_per_share_p\" real\n);\n\nQuestion: In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?" }, { "role": "assistant", "content": "SELECT COUNT(\"profit_loss_before_tax_m\") FROM \"bunzl_plc_financial_results\" WHERE \"year_ended\"='2011' AND \"net_profit_m\">123.8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_one_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\" real\n);\n\nQuestion: What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses?" }, { "role": "assistant", "content": "SELECT MAX(\"goals_for\") FROM \"division_one_final_table\" WHERE \"goals_against\"<63 AND \"points_1\">65 AND \"lost\">10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_one_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\" real\n);\n\nQuestion: What is the highest position for less than 42 played?" }, { "role": "assistant", "content": "SELECT MAX(\"position\") FROM \"division_one_final_table\" WHERE \"played\"<42;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?" }, { "role": "assistant", "content": "SELECT AVG(\"december\") FROM \"schedule_and_results\" WHERE \"record\"='16-3-4' AND \"game\"<23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"team\" text,\n \"winners\" real,\n \"runners_up\" real,\n \"years_won\" text,\n \"years_runner_up\" text\n);\n\nQuestion: When the Runners-Up is larger than 0, what's the sum of winners?" }, { "role": "assistant", "content": "SELECT SUM(\"winners\") FROM \"winners\" WHERE \"runners_up\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"team\" text,\n \"winners\" real,\n \"runners_up\" real,\n \"years_won\" text,\n \"years_runner_up\" text\n);\n\nQuestion: When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?" }, { "role": "assistant", "content": "SELECT MIN(\"runners_up\") FROM \"winners\" WHERE \"team\"='pachuca' AND \"winners\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"league\" text,\n \"season\" text,\n \"name\" text,\n \"place\" real,\n \"record\" text,\n \"head_coach\" text,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"turnover\" text\n);\n\nQuestion: Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"results\" WHERE \"assists\"='lake (154) lake (5.1 apg)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"league\" text,\n \"season\" text,\n \"name\" text,\n \"place\" real,\n \"record\" text,\n \"head_coach\" text,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"turnover\" text\n);\n\nQuestion: Can you tell me the Name that has the Place of 1?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"results\" WHERE \"place\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"league\" text,\n \"season\" text,\n \"name\" text,\n \"place\" real,\n \"record\" text,\n \"head_coach\" text,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"turnover\" text\n);\n\nQuestion: Can you tell me the Rebounds that has the Name of pom baskets jena?" }, { "role": "assistant", "content": "SELECT \"rebounds\" FROM \"results\" WHERE \"name\"='pom baskets jena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"league\" text,\n \"season\" text,\n \"name\" text,\n \"place\" real,\n \"record\" text,\n \"head_coach\" text,\n \"points\" text,\n \"rebounds\" text,\n \"assists\" text,\n \"steals\" text,\n \"turnover\" text\n);\n\nQuestion: Can you tell me the Steals that has the Place of 6?" }, { "role": "assistant", "content": "SELECT \"steals\" FROM \"results\" WHERE \"place\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the Callsign in Brisbane with a Freq currently of 4rph?" }, { "role": "assistant", "content": "SELECT \"callsign\" FROM \"defunct_callsigns\" WHERE \"area_served\"='brisbane' AND \"freq_currently\"='4rph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the Freq currently of the 4GG Callsign?" }, { "role": "assistant", "content": "SELECT \"freq_currently\" FROM \"defunct_callsigns\" WHERE \"callsign\"='4gg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the Community Band with a 4BCB Callsign?" }, { "role": "assistant", "content": "SELECT \"band\" FROM \"defunct_callsigns\" WHERE \"purpose\"='community' AND \"callsign\"='4bcb';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the Purpose of the Callsign with a Freq currently of 4gld?" }, { "role": "assistant", "content": "SELECT \"purpose\" FROM \"defunct_callsigns\" WHERE \"freq_currently\"='4gld';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the Purpose of the Callsign with a Freq currently of 4rph?" }, { "role": "assistant", "content": "SELECT \"purpose\" FROM \"defunct_callsigns\" WHERE \"freq_currently\"='4rph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"press\" text,\n \"103_5\" text,\n \"roger_fran_ois\" text,\n \"paris_fra\" text\n);\n\nQuestion: What was the press like for the world olympic record holder Roger Francois and Jaan Kikkas?" }, { "role": "assistant", "content": "SELECT \"press\" FROM \"records\" WHERE \"world_record\"='olympic record' AND \"roger_fran_ois\"='jaan kikkas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"press\" text,\n \"103_5\" text,\n \"roger_fran_ois\" text,\n \"paris_fra\" text\n);\n\nQuestion: What was the press like in Paris for Roger Francois, and Carlo Galimberti?" }, { "role": "assistant", "content": "SELECT \"paris_fra\" FROM \"records\" WHERE \"press\"='press' AND \"roger_fran_ois\"='carlo galimberti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"records\" (\n \"world_record\" text,\n \"press\" text,\n \"103_5\" text,\n \"roger_fran_ois\" text,\n \"paris_fra\" text\n);\n\nQuestion: What is the total amount of world records for Roger Francois?" }, { "role": "assistant", "content": "SELECT \"roger_fran_ois\" FROM \"records\" WHERE \"world_record\"='total';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: What place had a score of 71-70-73-71=285?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_round\" WHERE \"score\"='71-70-73-71=285';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: How much money for 1st place with a to par less than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"money\") FROM \"final_round\" WHERE \"place\"='1' AND \"to_par\"<1;" } ]
[ { "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 Player had a To par of +1?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"to_par\"='+1';" } ]
[ { "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 Country of the Player with a To par of +4 and Score of 73-71-73=217?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"to_par\"='+4' AND \"score\"='73-71-73=217';" } ]
[ { "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 Place of the Player with a To par of +3 and Score of 73-70-73=216?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"to_par\"='+3' AND \"score\"='73-70-73=216';" } ]
[ { "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 Place of the Player with a Score of 72-70-72=214?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='72-70-72=214';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Who is the kitmaker for the team whose team captain is Robert Enke?" }, { "role": "assistant", "content": "SELECT \"kitmaker\" FROM \"personnel_and_sponsoring\" WHERE \"team_captain\"='robert enke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"personnel_and_sponsoring\" WHERE \"kitmaker\"='saller' AND \"shirt_sponsor\"='krombacher';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: For the team led by head coach Felix Magath, who is the team captain?" }, { "role": "assistant", "content": "SELECT \"team_captain\" FROM \"personnel_and_sponsoring\" WHERE \"head_coach\"='felix magath';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: For the team whose shirt sponsor is Krombacher, who is the team captain?" }, { "role": "assistant", "content": "SELECT \"team_captain\" FROM \"personnel_and_sponsoring\" WHERE \"shirt_sponsor\"='krombacher';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_sponsoring\" (\n \"team\" text,\n \"head_coach\" text,\n \"team_captain\" text,\n \"kitmaker\" text,\n \"shirt_sponsor\" text\n);\n\nQuestion: For the team whose shirt sponsor is Evonik, who is the kitmaker?" }, { "role": "assistant", "content": "SELECT \"kitmaker\" FROM \"personnel_and_sponsoring\" WHERE \"shirt_sponsor\"='evonik';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kit_sponsors_and_manufacturers\" (\n \"period\" text,\n \"manufacturer\" text,\n \"shirt_main_sponsor\" text,\n \"shirt_back_sponsor\" text,\n \"shorts_sponsor\" text,\n \"sleeves_sponsor\" text\n);\n\nQuestion: Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?" }, { "role": "assistant", "content": "SELECT \"shirt_back_sponsor\" FROM \"kit_sponsors_and_manufacturers\" WHERE \"shorts_sponsor\"='telestet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" text\n);\n\nQuestion: Which of the Res., has Ryan Scheepe as an opponent?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='ryan scheepe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position is Jeff Brown?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_five\" WHERE \"player\"='jeff brown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: which player played on Team Hamilton?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"cfl_team\"='hamilton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What CFL team does Jeff brown play for?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"player\"='jeff brown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the total number of picks for Calgary College?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_five\" WHERE \"college\"='calgary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"detroit_red_wings_4_chicago_black_hawks_\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: Who was the home team when the record was 2-3?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"detroit_red_wings_4_chicago_black_hawks_\" WHERE \"record\"='2-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"detroit_red_wings_4_chicago_black_hawks_\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What was the record on April 10?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"detroit_red_wings_4_chicago_black_hawks_\" WHERE \"date\"='april 10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ev_as\" (\n \"start_date_time\" text,\n \"duration\" text,\n \"end_time\" text,\n \"spacecraft\" text,\n \"crew\" text\n);\n\nQuestion: What spacecraft had an EVA that ended at 17:28?" }, { "role": "assistant", "content": "SELECT \"spacecraft\" FROM \"ev_as\" WHERE \"end_time\"='17:28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ev_as\" (\n \"start_date_time\" text,\n \"duration\" text,\n \"end_time\" text,\n \"spacecraft\" text,\n \"crew\" text\n);\n\nQuestion: What crew's EVA started on 20 February 20:09?" }, { "role": "assistant", "content": "SELECT \"crew\" FROM \"ev_as\" WHERE \"start_date_time\"='20 february 20:09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ev_as\" (\n \"start_date_time\" text,\n \"duration\" text,\n \"end_time\" text,\n \"spacecraft\" text,\n \"crew\" text\n);\n\nQuestion: The EVA that started on 8 July 12:38 went for how long?" }, { "role": "assistant", "content": "SELECT \"duration\" FROM \"ev_as\" WHERE \"start_date_time\"='8 july 12:38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ev_as\" (\n \"start_date_time\" text,\n \"duration\" text,\n \"end_time\" text,\n \"spacecraft\" text,\n \"crew\" text\n);\n\nQuestion: The EVA that started 8 July 12:38 was from what spacecraft?" }, { "role": "assistant", "content": "SELECT \"spacecraft\" FROM \"ev_as\" WHERE \"start_date_time\"='8 july 12:38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"name\" text,\n \"date\" text,\n \"goals\" real,\n \"assists\" real,\n \"team\" text,\n \"venue\" text,\n \"opponent\" text,\n \"competition\" text,\n \"total_gs\" real,\n \"total_as\" real\n);\n\nQuestion: How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?" }, { "role": "assistant", "content": "SELECT \"assists\" FROM \"members\" WHERE \"competition\"='k-league' AND \"total_gs\">20 AND \"team\"='pohang steelers' AND \"opponent\"='chunnam dragons';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"name\" text,\n \"date\" text,\n \"goals\" real,\n \"assists\" real,\n \"team\" text,\n \"venue\" text,\n \"opponent\" text,\n \"competition\" text,\n \"total_gs\" real,\n \"total_as\" real\n);\n\nQuestion: What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?" }, { "role": "assistant", "content": "SELECT AVG(\"goals\") FROM \"members\" WHERE \"competition\"='k-league' AND \"team\"='pohang steelers' AND \"name\"='park sung-ho' AND \"total_gs\"<46;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"name\" text,\n \"date\" text,\n \"goals\" real,\n \"assists\" real,\n \"team\" text,\n \"venue\" text,\n \"opponent\" text,\n \"competition\" text,\n \"total_gs\" real,\n \"total_as\" real\n);\n\nQuestion: What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"members\" WHERE \"venue\"='jeonju' AND \"goals\"<28 AND \"competition\"='k-league cup';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"name\" text,\n \"date\" text,\n \"goals\" real,\n \"assists\" real,\n \"team\" text,\n \"venue\" text,\n \"opponent\" text,\n \"competition\" text,\n \"total_gs\" real,\n \"total_as\" real\n);\n\nQuestion: What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?" }, { "role": "assistant", "content": "SELECT SUM(\"total_as\") FROM \"members\" WHERE \"team\"='bucheon sk' AND \"opponent\"='chunnam dragons' AND \"venue\"='bucheon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"name\" text,\n \"date\" text,\n \"goals\" real,\n \"assists\" real,\n \"team\" text,\n \"venue\" text,\n \"opponent\" text,\n \"competition\" text,\n \"total_gs\" real,\n \"total_as\" real\n);\n\nQuestion: What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?" }, { "role": "assistant", "content": "SELECT SUM(\"assists\") FROM \"members\" WHERE \"venue\"='ulsan' AND \"competition\"='k-league' AND \"name\"='kang jae-soon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"name\" text,\n \"date\" text,\n \"goals\" real,\n \"assists\" real,\n \"team\" text,\n \"venue\" text,\n \"opponent\" text,\n \"competition\" text,\n \"total_gs\" real,\n \"total_as\" real\n);\n\nQuestion: What is the sum of the goals on 2007-06-16?" }, { "role": "assistant", "content": "SELECT SUM(\"goals\") FROM \"members\" WHERE \"date\"='2007-06-16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was Bill Glasson's score to par after 2 rounds?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"player\"='bill glasson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was Phil Mickelson's score to par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"player\"='phil mickelson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place was Bill Glasson in?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='bill glasson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the average pick with 85 overall in a round lower than 3?" }, { "role": "assistant", "content": "SELECT AVG(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"overall\"=85 AND \"round\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What was the 2009 results that has q1 for 2010, and A as the result for 2011?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2010\"='q1' AND \"2011\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What were the 2009 results that has 0 in 2010?" }, { "role": "assistant", "content": "SELECT \"2009\" FROM \"singles_performance_timeline\" WHERE \"2010\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: With a 2011 of 0 what was the 2006 result?" }, { "role": "assistant", "content": "SELECT \"2006\" FROM \"singles_performance_timeline\" WHERE \"2011\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?" }, { "role": "assistant", "content": "SELECT \"2004\" FROM \"singles_performance_timeline\" WHERE \"2005\"='a' AND \"2009\"='q1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: With a 2008 result of 153 what is the result for 2007?" }, { "role": "assistant", "content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2008\"='153';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament?" }, { "role": "assistant", "content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"2009\"='0' AND \"tournament\"='atp tournaments won';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"wins\" real\n);\n\nQuestion: Which team was in 1951?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"motorcycle_grand_prix_results\" WHERE \"year\"=1951;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_23_14_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What is the date of the match with arnaud di pasquale as the opponent in the final?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_23_14_9\" WHERE \"opponent_in_the_final\"='arnaud di pasquale';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_23_14_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What is the date of the match with a winner outcome and jim courier as the opponent in the final?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_23_14_9\" WHERE \"outcome\"='winner' AND \"opponent_in_the_final\"='jim courier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_23_14_9\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What is the surface of the palermo, italy championship?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_23_14_9\" WHERE \"championship\"='palermo, italy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: In what Round was OL Player Richard Zulys picked?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"cfl_draft\" WHERE \"position\"='ol' AND \"player\"='richard zulys';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cfl_draft\" (\n \"round\" real,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: What is the Player from McGill?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"cfl_draft\" WHERE \"school_club_team\"='mcgill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which College had an Overall pick of 171?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"washington_redskins_draft_history\" WHERE \"overall\"=171;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who had the overall pick of 72?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"washington_redskins_draft_history\" WHERE \"overall\"=72;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text,\n \"home_rink\" text\n);\n\nQuestion: What primary conference does the team nicknamed Phoenix belongs to?" }, { "role": "assistant", "content": "SELECT \"primary_conference\" FROM \"member_teams\" WHERE \"team_nickname\"='phoenix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"member_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text,\n \"home_rink\" text\n);\n\nQuestion: Where is the location for the home rink Triangle sports plex/Greensboro ice house?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"member_teams\" WHERE \"home_rink\"='triangle sports plex/greensboro ice house';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000_indiana_fever_miami_sol_portland_fi\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: What pick was a player that previously played for the Minnesota Lynx?" }, { "role": "assistant", "content": "SELECT SUM(\"pick\") FROM \"2000_indiana_fever_miami_sol_portland_fi\" WHERE \"former_wnba_team\"='minnesota lynx';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000_indiana_fever_miami_sol_portland_fi\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: Which player was picked after 23?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"2000_indiana_fever_miami_sol_portland_fi\" WHERE \"pick\">23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2000_indiana_fever_miami_sol_portland_fi\" (\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"new_wnba_team\" text,\n \"former_wnba_team\" text,\n \"college_country_team\" text\n);\n\nQuestion: What is the nationality of the player who went to college at Mississippi?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"2000_indiana_fever_miami_sol_portland_fi\" WHERE \"college_country_team\"='mississippi';" } ]