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 \"missed_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: What is the highest total for Scotland with a year won of 1985?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"missed_the_cut\" WHERE \"country\"='scotland' AND \"year_s_won\"=1985;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" real,\n \"date_opening\" text,\n \"date_closing\" text,\n \"opening_film\" text,\n \"number_of_screening\" text\n);\n\nQuestion: What is Date (Opening), when Opening Film is \"Another Myanmar, Mae Sot\"?" }, { "role": "assistant", "content": "SELECT \"date_opening\" FROM \"history\" WHERE \"opening_film\"='another myanmar, mae sot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" real,\n \"date_opening\" text,\n \"date_closing\" text,\n \"opening_film\" text,\n \"number_of_screening\" text\n);\n\nQuestion: What is Date (Closing), when Opening Film is \"Deconstruction of Korean Housewife\"?" }, { "role": "assistant", "content": "SELECT \"date_closing\" FROM \"history\" WHERE \"opening_film\"='deconstruction of korean housewife';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" real,\n \"date_opening\" text,\n \"date_closing\" text,\n \"opening_film\" text,\n \"number_of_screening\" text\n);\n\nQuestion: What is the total number of Year(s), when Date (Opening) is \"September 21\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"history\" WHERE \"date_opening\"='september 21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" real,\n \"date_opening\" text,\n \"date_closing\" text,\n \"opening_film\" text,\n \"number_of_screening\" text\n);\n\nQuestion: What is Date (Opening), when Year is less than 2010, and when Date (Closing) is \"September 28\"?" }, { "role": "assistant", "content": "SELECT \"date_opening\" FROM \"history\" WHERE \"year\"<2010 AND \"date_closing\"='september 28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"history\" (\n \"year\" real,\n \"date_opening\" text,\n \"date_closing\" text,\n \"opening_film\" text,\n \"number_of_screening\" text\n);\n\nQuestion: What is Date (Closing), when Year is greater than 2011?" }, { "role": "assistant", "content": "SELECT \"date_closing\" FROM \"history\" WHERE \"year\">2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" real,\n \"ebit_us_m\" real,\n \"net_profit_us_m\" real,\n \"earnings_per_share\" real\n);\n\nQuestion: Name the number of Earnings per share (\u00a2) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"earnings_per_share\") FROM \"micro_focus_international_plc_financial_\" WHERE \"net_profit_us_m\">66 AND \"year_to_april\"<2010;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" real,\n \"ebit_us_m\" real,\n \"net_profit_us_m\" real,\n \"earnings_per_share\" real\n);\n\nQuestion: Name the total number of EBIT (US $m) in 2011 and a Earnings per share (\u00a2) larger than 47?" }, { "role": "assistant", "content": "SELECT COUNT(\"ebit_us_m\") FROM \"micro_focus_international_plc_financial_\" WHERE \"year_to_april\"=2011 AND \"earnings_per_share\">47;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" real,\n \"ebit_us_m\" real,\n \"net_profit_us_m\" real,\n \"earnings_per_share\" real\n);\n\nQuestion: Count the Earnings per share (\u00a2) in April smaller than 2012, a Revenue (US $million) of 432.6 and a EBIT (US $m) smaller than 150.5?" }, { "role": "assistant", "content": "SELECT SUM(\"earnings_per_share\") FROM \"micro_focus_international_plc_financial_\" WHERE \"year_to_april\"<2012 AND \"revenue_us_million\"=432.6 AND \"ebit_us_m\"<150.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"micro_focus_international_plc_financial_\" (\n \"year_to_april\" real,\n \"revenue_us_million\" real,\n \"ebit_us_m\" real,\n \"net_profit_us_m\" real,\n \"earnings_per_share\" real\n);\n\nQuestion: COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?" }, { "role": "assistant", "content": "SELECT COUNT(\"ebit_us_m\") FROM \"micro_focus_international_plc_financial_\" WHERE \"revenue_us_million\">434.8 AND \"net_profit_us_m\">96.4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1988_nhl_entry_draft\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What position does Barry Richter play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"1988_nhl_entry_draft\" WHERE \"player\"='barry richter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1988_nhl_entry_draft\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What nationality is Mark Hirth from Michigan State University (NCAA)?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"1988_nhl_entry_draft\" WHERE \"college_junior_club_team\"='michigan state university (ncaa)' AND \"player\"='mark hirth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1988_nhl_entry_draft\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What NHL team does Rob White play on?" }, { "role": "assistant", "content": "SELECT \"nhl_team\" FROM \"1988_nhl_entry_draft\" WHERE \"player\"='rob white';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1988_nhl_entry_draft\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What is the pick number for position of D from the University of Maine (NCAA)?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"1988_nhl_entry_draft\" WHERE \"position\"='d' AND \"college_junior_club_team\"='university of maine (ncaa)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1988_nhl_entry_draft\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What college/junior/club team is a left wing from Canada?" }, { "role": "assistant", "content": "SELECT \"college_junior_club_team\" FROM \"1988_nhl_entry_draft\" WHERE \"position\"='left wing' AND \"nationality\"='canada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_totals\" (\n \"team\" text,\n \"cf_appearances\" real,\n \"cf_wins\" real,\n \"cup_wins\" real,\n \"last_cf\" real\n);\n\nQuestion: What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?" }, { "role": "assistant", "content": "SELECT AVG(\"last_cf\") FROM \"team_totals\" WHERE \"cf_appearances\"<4 AND \"cf_wins\"<1 AND \"team\"='st. louis blues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_totals\" (\n \"team\" text,\n \"cf_appearances\" real,\n \"cf_wins\" real,\n \"cup_wins\" real,\n \"last_cf\" real\n);\n\nQuestion: What is the lowest number of cf wins of the chicago blackhawks, which has more than 4 cf appearances, a last cf in 2013, and more than 2 cup wins?" }, { "role": "assistant", "content": "SELECT MIN(\"cf_wins\") FROM \"team_totals\" WHERE \"cf_appearances\">4 AND \"last_cf\"=2013 AND \"team\"='chicago blackhawks' AND \"cup_wins\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_totals\" (\n \"team\" text,\n \"cf_appearances\" real,\n \"cf_wins\" real,\n \"cup_wins\" real,\n \"last_cf\" real\n);\n\nQuestion: What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?" }, { "role": "assistant", "content": "SELECT MIN(\"last_cf\") FROM \"team_totals\" WHERE \"cf_appearances\"=2 AND \"cup_wins\"=0 AND \"cf_wins\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"complete_24_hours_of_le_mans_results\" (\n \"year\" real,\n \"team\" text,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text\n);\n\nQuestion: What position did the driver from Audi Sport North America finish in the race after 2008?" }, { "role": "assistant", "content": "SELECT \"pos\" FROM \"complete_24_hours_of_le_mans_results\" WHERE \"team\"='audi sport north america' AND \"year\">2008;" } ]
[ { "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 event has 8 as the rank points, with 20 as the total?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"qualification\" WHERE \"rank_points\"='8' AND \"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 shooter has wc munich as the event, and 8 as the rank points?" }, { "role": "assistant", "content": "SELECT \"shooter\" FROM \"qualification\" WHERE \"event\"='wc munich' 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 score points have olympic gold medalist as the rank points?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"rank_points\"='olympic gold medalist';" } ]
[ { "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\" text,\n \"money\" real\n);\n\nQuestion: What Northern Ireland Player has more than 36,000 Money with a To par of \u20137?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_round\" WHERE \"money\">'36,000' AND \"to_par\"='\u20137' AND \"country\"='northern ireland';" } ]
[ { "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\" text,\n \"money\" real\n);\n\nQuestion: With a To par of \u20135, what is Nick Faldo's Place?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_round\" WHERE \"to_par\"='\u20135' AND \"player\"='nick faldo';" } ]
[ { "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\" text,\n \"money\" real\n);\n\nQuestion: What is Fuzzy Zoeller's To par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"player\"='fuzzy zoeller';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_ministers\" (\n \"minister\" text,\n \"party\" text,\n \"governments\" text,\n \"term_start\" text,\n \"term_end\" text\n);\n\nQuestion: What is the Government the has the Kadima Party?" }, { "role": "assistant", "content": "SELECT \"governments\" FROM \"list_of_ministers\" WHERE \"party\"='kadima';" } ]
[ { "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: Which Rank points has a Score points of olympic silver medalist?" }, { "role": "assistant", "content": "SELECT \"rank_points\" FROM \"qualification\" WHERE \"score_points\"='olympic silver medalist';" } ]
[ { "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: Which Shooter has a Rank points of 8 and a Event of wc milan?" }, { "role": "assistant", "content": "SELECT \"shooter\" FROM \"qualification\" WHERE \"rank_points\"='8' AND \"event\"='wc milan';" } ]
[ { "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: Which Score points has an Event of og beijing, and Rank points of olympic gold medalist?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"event\"='og beijing' AND \"rank_points\"='olympic gold medalist';" } ]
[ { "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: Name Event of wc milan and a Total of 23?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"event\"='wc milan' AND \"total\"='23';" } ]
[ { "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: which Score points has a Rank points of 10, and an Event of wc milan?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"rank_points\"='10' AND \"event\"='wc milan';" } ]
[ { "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\" text,\n \"money\" real\n);\n\nQuestion: What was willie goggin's score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_leaderboard\" WHERE \"player\"='willie goggin';" } ]
[ { "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\" text,\n \"money\" real\n);\n\nQuestion: Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"country\"='united states' AND \"money\">0 AND \"player\"='craig wood';" } ]
[ { "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 is the home team on March 7?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"regular_season\" WHERE \"date\"='march 7';" } ]
[ { "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 is the record on October 30?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='october 30';" } ]
[ { "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 is the record on February 19?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"regular_season\" WHERE \"date\"='february 19';" } ]
[ { "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 was d. a. weibring's to par?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"player\"='d. a. weibring';" } ]
[ { "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: For which to par was the score 71-74-68=213?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='71-74-68=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: What player scored 70-72-70=212?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='70-72-70=212';" } ]
[ { "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 for the score 72-69-68=209?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='72-69-68=209';" } ]
[ { "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 was Australia's to par when the place was t9?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"place\"='t9' AND \"country\"='australia';" } ]
[ { "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: Wht did Mark O'Meara place when the to par was +2?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"to_par\"='+2' AND \"player\"='mark o''meara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the total number of losses for entries with 15 wins and a position larger than 3?" }, { "role": "assistant", "content": "SELECT SUM(\"losses\") FROM \"group_ii\" WHERE \"wins\"=15 AND \"position\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?" }, { "role": "assistant", "content": "SELECT \"goal_difference\" FROM \"group_ii\" WHERE \"draws\">6 AND \"position\">12 AND \"wins\"<9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the position of club Melilla CF, with a goal difference smaller than -10?" }, { "role": "assistant", "content": "SELECT SUM(\"position\") FROM \"group_ii\" WHERE \"club\"='melilla cf' AND \"goal_difference\"<-10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the sum of goals against for positions higher than 14, with fewer than 30 played?" }, { "role": "assistant", "content": "SELECT SUM(\"goals_against\") FROM \"group_ii\" WHERE \"position\">14 AND \"played\"<30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?" }, { "role": "assistant", "content": "SELECT AVG(\"wins\") FROM \"group_ii\" WHERE \"points\">32 AND \"goal_difference\"<23 AND \"goals_against\"=36 AND \"played\"<30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"location\" text,\n \"year\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: Which Location has a Year larger than 2006, and a Score of 6\u20133, 6\u20133?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"men_s_singles\" WHERE \"year\">2006 AND \"score\"='6\u20133, 6\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"location\" text,\n \"year\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: Which Score has a Year larger than 2004, and a Champion of ga\u00ebl monfils?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"men_s_singles\" WHERE \"year\">2004 AND \"champion\"='ga\u00ebl monfils';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"location\" text,\n \"year\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: Which Runner-up has a Year smaller than 2008, and a Champion of jos\u00e9 acasuso?" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"men_s_singles\" WHERE \"year\"<2008 AND \"champion\"='jos\u00e9 acasuso';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"location\" text,\n \"year\" real,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text\n);\n\nQuestion: Which Champion has a Runner-up of florian mayer, and a Score of 7\u20136(6), 4\u20136, 7\u20135?" }, { "role": "assistant", "content": "SELECT \"champion\" FROM \"men_s_singles\" WHERE \"runner_up\"='florian mayer' AND \"score\"='7\u20136(6), 4\u20136, 7\u20135';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: WHAT IS THE SCORE WITH A WINNER AND OPPONENT BYRON BLACK?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles\" WHERE \"outcome\"='winner' AND \"opponent\"='byron black';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"herbaria_in_the_british_isles\" (\n \"name\" text,\n \"no_specimens\" real,\n \"abbr\" text,\n \"country\" text,\n \"city\" text\n);\n\nQuestion: Which country has the city of London, England with more than 150,000 specimens?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"herbaria_in_the_british_isles\" WHERE \"no_specimens\">'150,000' AND \"city\"='london, england';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_lyga\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the number of points of the match with less than 22 games played?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"1_lyga\" WHERE \"games_played\"<22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_lyga\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the total number of loses of the club with a 4 position and less than 23 goals conceded?" }, { "role": "assistant", "content": "SELECT COUNT(\"loses\") FROM \"1_lyga\" WHERE \"position\"=4 AND \"goals_conceded\"<23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_lyga\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?" }, { "role": "assistant", "content": "SELECT MIN(\"games_played\") FROM \"1_lyga\" WHERE \"goals_conceded\">25 AND \"goals_scored\">17 AND \"position\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_lyga\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the lowest number of loses of the club with more than 42 goals scored, more than 20 goals conceded, and less than 3 draws?" }, { "role": "assistant", "content": "SELECT MIN(\"loses\") FROM \"1_lyga\" WHERE \"goals_scored\">42 AND \"goals_conceded\">20 AND \"draws\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_lyga\" (\n \"position\" real,\n \"club\" text,\n \"games_played\" real,\n \"wins\" real,\n \"draws\" real,\n \"loses\" real,\n \"goals_scored\" real,\n \"goals_conceded\" real,\n \"points\" real\n);\n\nQuestion: What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"1_lyga\" WHERE \"goals_conceded\">23 AND \"position\">12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" text,\n \"goals\" real,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: How many goals did coe get?" }, { "role": "assistant", "content": "SELECT MIN(\"goals\") FROM \"squad_information\" WHERE \"name\"='coe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" text,\n \"goals\" real,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: What is the total number of ends when the transfer fee was dkk 14m?" }, { "role": "assistant", "content": "SELECT COUNT(\"ends\") FROM \"squad_information\" WHERE \"transfer_fee\"='dkk 14m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" text,\n \"goals\" real,\n \"ends\" real,\n \"transfer_fee\" text\n);\n\nQuestion: Who had a transfer fee of dkk 6m?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"squad_information\" WHERE \"transfer_fee\"='dkk 6m';" } ]
[ { "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: Craig Parry with a score of 68-68=136 is in what place?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='68-68=136' AND \"player\"='craig parry';" } ]
[ { "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 is the golfer in who is from Spain?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"country\"='spain';" } ]
[ { "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: For what country does the golfer play who has a score of 72-65=137?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='72-65=137';" } ]
[ { "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: Golfer Steve Pate is in what place?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"player\"='steve pate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_players\" (\n \"nationality\" text,\n \"position\" text,\n \"bolton_wanderers_career\" text,\n \"apps\" real,\n \"total\" real,\n \"goals\" text\n);\n\nQuestion: Which Bolton Wanderers career has 293 Apps?" }, { "role": "assistant", "content": "SELECT \"bolton_wanderers_career\" FROM \"list_of_players\" WHERE \"apps\"=293;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_players\" (\n \"nationality\" text,\n \"position\" text,\n \"bolton_wanderers_career\" text,\n \"apps\" real,\n \"total\" real,\n \"goals\" text\n);\n\nQuestion: Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?" }, { "role": "assistant", "content": "SELECT \"bolton_wanderers_career\" FROM \"list_of_players\" WHERE \"total\">404 AND \"position\"='fw' AND \"apps\"<492 AND \"goals\"='79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_players\" (\n \"nationality\" text,\n \"position\" text,\n \"bolton_wanderers_career\" text,\n \"apps\" real,\n \"total\" real,\n \"goals\" text\n);\n\nQuestion: How many apps have 28 goals, and a Total smaller than 191?" }, { "role": "assistant", "content": "SELECT SUM(\"apps\") FROM \"list_of_players\" WHERE \"goals\"='28' AND \"total\"<191;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: On what Date is Sheffield Wednesday the Home team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"second_round_proper\" WHERE \"home_team\"='sheffield wednesday';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the Tie no of the Blackburn Rovers Away game?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"second_round_proper\" WHERE \"away_team\"='blackburn rovers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2\u20130?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"second_round_proper\" WHERE \"score\"='2\u20130' AND \"home_team\"='wolverhampton wanderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the Home team at the Blackburn Rovers Away game?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"second_round_proper\" WHERE \"away_team\"='blackburn rovers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the Home team in the game with a Score of 2\u20133?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"second_round_proper\" WHERE \"score\"='2\u20133';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 1st leg with Team 2 Lyon?" }, { "role": "assistant", "content": "SELECT \"1st_leg\" FROM \"third_round\" WHERE \"team_2\"='lyon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Which team is Team 1 with a Team 2 being Sporting CP?" }, { "role": "assistant", "content": "SELECT \"team_1\" FROM \"third_round\" WHERE \"team_2\"='sporting cp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the second leg for Team 1 Servette?" }, { "role": "assistant", "content": "SELECT \"2nd_leg\" FROM \"third_round\" WHERE \"team_1\"='servette';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What was the 1999 Tournament at the US Open?" }, { "role": "assistant", "content": "SELECT \"1999\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"tournament\"='us open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What tournament was an A 1988, and a 2R 1999?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"1988\"='a' AND \"1999\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is the 1991 for 2R 1999?" }, { "role": "assistant", "content": "SELECT \"1991\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"1999\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is the 1999 for an A 1991, and a 1r 1997?" }, { "role": "assistant", "content": "SELECT \"1999\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"1991\"='a' AND \"1997\"='1r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"grand_slam_singles_performance_timeline\" (\n \"tournament\" text,\n \"1988\" text,\n \"1990\" text,\n \"1991\" text,\n \"1992\" text,\n \"1993\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"career_sr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is the 1991 with a 2r 1996?" }, { "role": "assistant", "content": "SELECT \"1991\" FROM \"grand_slam_singles_performance_timeline\" WHERE \"1996\"='2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: When was the Attendance larger than 74,382?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"group_stage\" WHERE \"attendance\">'74,382';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_stage\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"attendance\" real,\n \"group_position\" text\n);\n\nQuestion: Which Opponents have Attendance larger than 10,346, and a Date of 25 november 2008?" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"group_stage\" WHERE \"attendance\">'10,346' AND \"date\"='25 november 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1983\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Which venue has a status of Five Nations and an against of 22?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"1983\" WHERE \"status\"='five nations' AND \"against\"=22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the sum of the rounds of the match with brett chism as the opponent?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='brett chism';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the lwoest round of wild bill's fight night 21 at 5:00?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"time\"='5:00' AND \"event\"='wild bill''s fight night 21';" } ]
[ { "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\" real\n);\n\nQuestion: Which Country has a To par smaller than 7, and a Place of 1?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"third_round\" WHERE \"to_par\"<7 AND \"place\"='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\" real\n);\n\nQuestion: Which Place has a Country of australia, and a Score of 70-70-72=212?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='australia' AND \"score\"='70-70-72=212';" } ]
[ { "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\" real\n);\n\nQuestion: What was sweden's score in T9 place?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='t9' AND \"country\"='sweden';" } ]
[ { "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\" real\n);\n\nQuestion: Which To par has a Country of england, and a Place of t9, and a Player of graeme storm?" }, { "role": "assistant", "content": "SELECT MAX(\"to_par\") FROM \"third_round\" WHERE \"country\"='england' AND \"place\"='t9' AND \"player\"='graeme storm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"nation\" text,\n \"distance\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Distance, when Venue is \"Belgrade\"?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"men\" WHERE \"venue\"='belgrade';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"nation\" text,\n \"distance\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Date, when Athlete is \"Yussuf Alli\"?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"men\" WHERE \"athlete\"='yussuf alli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"nation\" text,\n \"distance\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Distance, when Athlete is \"Irving Saladino\"?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"men\" WHERE \"athlete\"='irving saladino';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"nation\" text,\n \"distance\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Athlete, when Nation is \"Nigeria\"?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"men\" WHERE \"nation\"='nigeria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"nation\" text,\n \"distance\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Nation, when Date is \"2004-07-22\"?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"men\" WHERE \"date\"='2004-07-22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"nation\" text,\n \"distance\" text,\n \"athlete\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Distance, when Date is \"2008-01-12\"?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"men\" WHERE \"date\"='2008-01-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the Week of the game with a Result of w 48\u201320?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"result\"='w 48\u201320';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the Record of the game with a Result of l 14\u201316?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"result\"='l 14\u201316';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What is the Date of the game with a Record of 2\u20133\u20131?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"record\"='2\u20133\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"date\" text,\n \"time\" text,\n \"round\" text,\n \"opponent\" text,\n \"ground\" text,\n \"score\" text\n);\n\nQuestion: What opponent has 32 as the round?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"matches\" WHERE \"round\"='32';" } ]