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 \"scores\" (\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text,\n \"week_6\" text,\n \"week_7\" text\n);\n\nQuestion: What is week 4 if week 3 is 35.40?" }, { "role": "assistant", "content": "SELECT \"week_4\" FROM \"scores\" WHERE \"week_3\"='35.40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scores\" (\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text,\n \"week_6\" text,\n \"week_7\" text\n);\n\nQuestion: What is week 7 when week 3 is 35.90?" }, { "role": "assistant", "content": "SELECT \"week_7\" FROM \"scores\" WHERE \"week_3\"='35.90';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scores\" (\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text,\n \"week_6\" text,\n \"week_7\" text\n);\n\nQuestion: What is week 6 when week 7, week 4, and week 3 are evicted and week 2 29.35?" }, { "role": "assistant", "content": "SELECT \"week_6\" FROM \"scores\" WHERE \"week_7\"='evicted' AND \"week_4\"='evicted' AND \"week_3\"='evicted' AND \"week_2\"='29.35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scores\" (\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text,\n \"week_6\" text,\n \"week_7\" text\n);\n\nQuestion: What is week 5 when week 6 is evicted, and week 2 is 34.55?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"scores\" WHERE \"week_6\"='evicted' AND \"week_2\"='34.55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"purse\" real,\n \"winner_s_share\" real\n);\n\nQuestion: What is the lowest Winner's share (\u00a5) in 2011?" }, { "role": "assistant", "content": "SELECT MIN(\"winner_s_share\") FROM \"winners\" WHERE \"year\"=2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"purse\" real,\n \"winner_s_share\" real\n);\n\nQuestion: How much is the purse worth (\u00a5) after 2012?" }, { "role": "assistant", "content": "SELECT SUM(\"purse\") FROM \"winners\" WHERE \"year\">2012;" } ]
[ { "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 had a score of 67-67=134?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='67-67=134';" } ]
[ { "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 country placed t3 with a score of 70-65=135?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t3' AND \"score\"='70-65=135';" } ]
[ { "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 player placed t6 for the United States with a score of 67-69=136?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"country\"='united states' AND \"place\"='t6' AND \"score\"='67-69=136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"competition\" text,\n \"round\" text,\n \"date_and_time\" text,\n \"opponent_team\" text,\n \"result\" text\n);\n\nQuestion: What is Competition, when Round is \"Group A - Match 1\"?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"matches\" WHERE \"round\"='group a - match 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"competition\" text,\n \"round\" text,\n \"date_and_time\" text,\n \"opponent_team\" text,\n \"result\" text\n);\n\nQuestion: What is Date and Time, when Competition is \"Serie A\", and when Result is \"0-3\"?" }, { "role": "assistant", "content": "SELECT \"date_and_time\" FROM \"matches\" WHERE \"competition\"='serie a' AND \"result\"='0-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"competition\" text,\n \"round\" text,\n \"date_and_time\" text,\n \"opponent_team\" text,\n \"result\" text\n);\n\nQuestion: What is Competition, when Round is \"8 A\"?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"matches\" WHERE \"round\"='8 a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"type\" text\n);\n\nQuestion: What is City of License, when Frequency is greater than 1380?" }, { "role": "assistant", "content": "SELECT \"city_of_license\" FROM \"am\" WHERE \"frequency\">1380;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"type\" text\n);\n\nQuestion: What is Brand, when Frequency is \"640\"?" }, { "role": "assistant", "content": "SELECT \"brand\" FROM \"am\" WHERE \"frequency\"=640;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"type\" text\n);\n\nQuestion: What is the average Frequency, when Type is \"Norte\u00f1o\", and when Brand is \"La Cotorra\"?" }, { "role": "assistant", "content": "SELECT AVG(\"frequency\") FROM \"am\" WHERE \"type\"='norte\u00f1o' AND \"brand\"='la cotorra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"type\" text\n);\n\nQuestion: What is Type, when Frequency is \"1480\"?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"am\" WHERE \"frequency\"=1480;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"type\" text\n);\n\nQuestion: What is the sum of Frequency, when Type is \"Christian Pop\"?" }, { "role": "assistant", "content": "SELECT SUM(\"frequency\") FROM \"am\" WHERE \"type\"='christian pop';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"am\" (\n \"frequency\" real,\n \"callsign\" text,\n \"brand\" text,\n \"city_of_license\" text,\n \"type\" text\n);\n\nQuestion: What is the Type, when Callsign is \"Xetam\"?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"am\" WHERE \"callsign\"='xetam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Which Chief Judge has Appointed by of reagan category:articles with hcards?" }, { "role": "assistant", "content": "SELECT \"chief_judge\" FROM \"former_judges\" WHERE \"appointed_by\"='reagan category:articles with hcards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Which Senior status has a Chief Judge of \u2014, a Reason for termination of death, and Active service of 1967\u20131983?" }, { "role": "assistant", "content": "SELECT \"senior_status\" FROM \"former_judges\" WHERE \"chief_judge\"='\u2014' AND \"reason_for_termination\"='death' AND \"active_service\"='1967\u20131983';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918\u20132009?" }, { "role": "assistant", "content": "SELECT \"senior_status\" FROM \"former_judges\" WHERE \"appointed_by\"='l. johnson category:articles with hcards' AND \"born_died\"='1918\u20132009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Which Chief Judge has Active service of 1873\u20131875?" }, { "role": "assistant", "content": "SELECT \"chief_judge\" FROM \"former_judges\" WHERE \"active_service\"='1873\u20131875';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Which Reason for termination has Appointed by of eisenhower category:articles with hcards?" }, { "role": "assistant", "content": "SELECT \"reason_for_termination\" FROM \"former_judges\" WHERE \"appointed_by\"='eisenhower category:articles with hcards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Which Senior status has a Chief Judge of 1991\u20131995?" }, { "role": "assistant", "content": "SELECT \"senior_status\" FROM \"former_judges\" WHERE \"chief_judge\"='1991\u20131995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When did the Wolverhampton Wanderers play at home?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"third_round_proper\" WHERE \"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 \"men\" (\n \"year\" real,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"notes\" text\n);\n\nQuestion: What are 2004's notes?" }, { "role": "assistant", "content": "SELECT \"notes\" FROM \"men\" WHERE \"year\"=2004;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"year\" real,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"notes\" text\n);\n\nQuestion: What year did Yuri Omeltchenko win Silver?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"men\" WHERE \"silver\"='yuri omeltchenko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"year\" real,\n \"gold\" text,\n \"silver\" text,\n \"bronze\" text,\n \"notes\" text\n);\n\nQuestion: Who won Silver in 2000?" }, { "role": "assistant", "content": "SELECT \"silver\" FROM \"men\" WHERE \"year\"=2000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the score on April 12?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='april 12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the score on April 5?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='april 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"olympic_record\" (\n \"year\" text,\n \"result\" text,\n \"matches\" text,\n \"wins\" text,\n \"draws\" text,\n \"losses\" text\n);\n\nQuestion: What was the result when there were 6 matches?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"olympic_record\" WHERE \"matches\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"olympic_record\" (\n \"year\" text,\n \"result\" text,\n \"matches\" text,\n \"wins\" text,\n \"draws\" text,\n \"losses\" text\n);\n\nQuestion: What year was the result did not qualify?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"olympic_record\" WHERE \"result\"='did not qualify';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"olympic_record\" (\n \"year\" text,\n \"result\" text,\n \"matches\" text,\n \"wins\" text,\n \"draws\" text,\n \"losses\" text\n);\n\nQuestion: What was the result in 2008?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"olympic_record\" WHERE \"year\"='2008';" } ]
[ { "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 the to par score for Tim Herron, who had a score of 69-72=141?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"score\"='69-72=141' AND \"player\"='tim herron';" } ]
[ { "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: Which golfer finished with a score of 70-71=141?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"score\"='70-71=141';" } ]
[ { "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: In what place did Adam Scott, who had a to par score of +1, finish?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"to_par\"='+1' AND \"player\"='adam scott';" } ]
[ { "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: In what place did the golfer that scored 66-74=140 finish?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='66-74=140';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which player has a place of t2?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"first_round\" WHERE \"place\"='t2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: What is the score for Nick Faldo?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"first_round\" WHERE \"player\"='nick faldo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"geelong_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What's the average against of Leopold with more than 11 wins?" }, { "role": "assistant", "content": "SELECT AVG(\"against\") FROM \"2010_ladder\" WHERE \"geelong_fl\"='leopold' AND \"wins\">11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"geelong_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: How many total wins for Leopold that had fewer than 1706 against?" }, { "role": "assistant", "content": "SELECT SUM(\"wins\") FROM \"2010_ladder\" WHERE \"against\"<1706 AND \"geelong_fl\"='leopold';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"geelong_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the largest number of draws of St Josephs with losses greater than 6 and less than 1250 against?" }, { "role": "assistant", "content": "SELECT MAX(\"draws\") FROM \"2010_ladder\" WHERE \"losses\">6 AND \"geelong_fl\"='st josephs' AND \"against\"<1250;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"geelong_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the total number of against when they had 14 losses and more than 0 byes?" }, { "role": "assistant", "content": "SELECT SUM(\"against\") FROM \"2010_ladder\" WHERE \"losses\"=14 AND \"byes\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exit_polling\" (\n \"classification\" text,\n \"pct_of_all\" text,\n \"john_kerry\" text,\n \"john_edwards\" text,\n \"dennis_kucinich\" text\n);\n\nQuestion: What is Classification, when Dennis Kucinich is \"3%\", and when % of All is \"53%\"?" }, { "role": "assistant", "content": "SELECT \"classification\" FROM \"exit_polling\" WHERE \"dennis_kucinich\"='3%' AND \"pct_of_all\"='53%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exit_polling\" (\n \"classification\" text,\n \"pct_of_all\" text,\n \"john_kerry\" text,\n \"john_edwards\" text,\n \"dennis_kucinich\" text\n);\n\nQuestion: What is Dennis Kucinich, when % of All is \"53%\"?" }, { "role": "assistant", "content": "SELECT \"dennis_kucinich\" FROM \"exit_polling\" WHERE \"pct_of_all\"='53%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exit_polling\" (\n \"classification\" text,\n \"pct_of_all\" text,\n \"john_kerry\" text,\n \"john_edwards\" text,\n \"dennis_kucinich\" text\n);\n\nQuestion: What is John Edwards, when John Kerry is \"70%\"?" }, { "role": "assistant", "content": "SELECT \"john_edwards\" FROM \"exit_polling\" WHERE \"john_kerry\"='70%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exit_polling\" (\n \"classification\" text,\n \"pct_of_all\" text,\n \"john_kerry\" text,\n \"john_edwards\" text,\n \"dennis_kucinich\" text\n);\n\nQuestion: What is Dennis Kucinich, when Classification is \"Democrat\"?" }, { "role": "assistant", "content": "SELECT \"dennis_kucinich\" FROM \"exit_polling\" WHERE \"classification\"='democrat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exit_polling\" (\n \"classification\" text,\n \"pct_of_all\" text,\n \"john_kerry\" text,\n \"john_edwards\" text,\n \"dennis_kucinich\" text\n);\n\nQuestion: What is John Kerry, when John Edwards is \"20%\"?" }, { "role": "assistant", "content": "SELECT \"john_kerry\" FROM \"exit_polling\" WHERE \"john_edwards\"='20%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"exit_polling\" (\n \"classification\" text,\n \"pct_of_all\" text,\n \"john_kerry\" text,\n \"john_edwards\" text,\n \"dennis_kucinich\" text\n);\n\nQuestion: What is % of All, when Dennis Kucinich is \"5%\"?" }, { "role": "assistant", "content": "SELECT \"pct_of_all\" FROM \"exit_polling\" WHERE \"dennis_kucinich\"='5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"mark\" text,\n \"wind\" text,\n \"athlete\" text,\n \"nationality\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is Robert Emmiyan's Wind number?" }, { "role": "assistant", "content": "SELECT \"wind\" FROM \"men\" WHERE \"athlete\"='robert emmiyan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"mark\" text,\n \"wind\" text,\n \"athlete\" text,\n \"nationality\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What athlete has a wind number of 1.4?" }, { "role": "assistant", "content": "SELECT \"athlete\" FROM \"men\" WHERE \"wind\"='1.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"mark\" text,\n \"wind\" text,\n \"athlete\" text,\n \"nationality\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: What is the mark from April 2, 1994 with a wind number of 2.0?" }, { "role": "assistant", "content": "SELECT \"mark\" FROM \"men\" WHERE \"wind\"='2.0' AND \"date\"='april 2, 1994';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dfb_cup_appearances\" (\n \"season\" text,\n \"round\" text,\n \"date\" text,\n \"home\" text,\n \"away\" text,\n \"result\" text\n);\n\nQuestion: What is the date of the second round?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"dfb_cup_appearances\" WHERE \"round\"='second round';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dfb_cup_appearances\" (\n \"season\" text,\n \"round\" text,\n \"date\" text,\n \"home\" text,\n \"away\" text,\n \"result\" text\n);\n\nQuestion: What is the round on 26 August 1995?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"dfb_cup_appearances\" WHERE \"date\"='26 august 1995';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dfb_cup_appearances\" (\n \"season\" text,\n \"round\" text,\n \"date\" text,\n \"home\" text,\n \"away\" text,\n \"result\" text\n);\n\nQuestion: What is the round played on 13 October 1984?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"dfb_cup_appearances\" WHERE \"date\"='13 october 1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dfb_cup_appearances\" (\n \"season\" text,\n \"round\" text,\n \"date\" text,\n \"home\" text,\n \"away\" text,\n \"result\" text\n);\n\nQuestion: What is the result for SSV ULM 1846?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"dfb_cup_appearances\" WHERE \"home\"='ssv ulm 1846';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: What is the transfer window when moving to alianza atl\u00e9tico by the name of v. zapata?" }, { "role": "assistant", "content": "SELECT \"transfer_window\" FROM \"out\" WHERE \"moving_to\"='alianza atl\u00e9tico' AND \"name\"='v. zapata';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: Where is moving to the type loaned out under the name tragodara?" }, { "role": "assistant", "content": "SELECT \"moving_to\" FROM \"out\" WHERE \"type\"='loaned out' AND \"name\"='tragodara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: What is the name when moving to atl\u00e9tico minero?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"out\" WHERE \"moving_to\"='atl\u00e9tico minero';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: what is the type movinig to alianza atl\u00e9tico?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"out\" WHERE \"moving_to\"='alianza atl\u00e9tico';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: what is the name moving to atl\u00e9tico minero?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"out\" WHERE \"moving_to\"='atl\u00e9tico minero';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_25_10_15\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the surface on 15 August 2009?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"doubles_25_10_15\" WHERE \"date\"='15 august 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"party\" text,\n \"pct_votes\" real,\n \"pct_change\" real,\n \"seats\" real,\n \"change\" real\n);\n\nQuestion: How many seats does the party of others have with a change of -1 and more than 0% votes?" }, { "role": "assistant", "content": "SELECT SUM(\"seats\") FROM \"government\" WHERE \"change\"=-1 AND \"party\"='others' AND \"pct_votes\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"party\" text,\n \"pct_votes\" real,\n \"pct_change\" real,\n \"seats\" real,\n \"change\" real\n);\n\nQuestion: What are the fewest seats with a -3.7% change and more than 4.7% votes?" }, { "role": "assistant", "content": "SELECT MIN(\"seats\") FROM \"government\" WHERE \"pct_change\"=-3.7 AND \"pct_votes\">4.7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"party\" text,\n \"pct_votes\" real,\n \"pct_change\" real,\n \"seats\" real,\n \"change\" real\n);\n\nQuestion: What is the change number with fewer than 4.7% votes and more than 0 seats?" }, { "role": "assistant", "content": "SELECT SUM(\"change\") FROM \"government\" WHERE \"pct_votes\"<4.7 AND \"seats\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"government\" (\n \"party\" text,\n \"pct_votes\" real,\n \"pct_change\" real,\n \"seats\" real,\n \"change\" real\n);\n\nQuestion: What are the fewest seats with fewer than 5.4% seats and more than -1 change?" }, { "role": "assistant", "content": "SELECT MIN(\"seats\") FROM \"government\" WHERE \"pct_votes\"<5.4 AND \"change\">-1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_13_8_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the score where Olga Lugina played in the Tournament of poitiers , france itf $25,000?" }, { "role": "assistant", "content": "SELECT \"score_in_the_final\" FROM \"doubles_13_8_5\" WHERE \"partner\"='olga lugina' AND \"tournament\"='poitiers , france itf $25,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_13_8_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What surface did Ruxandra Dragomir play on?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"doubles_13_8_5\" WHERE \"partner\"='ruxandra dragomir';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_13_8_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Who had the opponent of Lenka Cenkov\u00e1 kate\u0159ina \u0161i\u0161kov\u00e1 in the final?" }, { "role": "assistant", "content": "SELECT \"partner\" FROM \"doubles_13_8_5\" WHERE \"opponents_in_the_final\"='lenka cenkov\u00e1 kate\u0159ina \u0161i\u0161kov\u00e1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"doubles_13_8_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What tournament had an opponent of Els Callens Nancy Feber?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"doubles_13_8_5\" WHERE \"opponents_in_the_final\"='els callens nancy feber';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What kind of Winning driver has a Winning constructor of mercer?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='mercer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Which Winning driver has a Winning constructor of mercedes, and a Name of elgin trophy?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='mercedes' AND \"name\"='elgin trophy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the Report of tourist trophy?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"other_grands_prix\" WHERE \"name\"='tourist trophy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the Winning constructor on 31 may and a Circuit of madonie?" }, { "role": "assistant", "content": "SELECT \"winning_constructor\" FROM \"other_grands_prix\" WHERE \"date\"='31 may' AND \"circuit\"='madonie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the Date of mercedes, and a Circuit of elgin?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='mercedes' AND \"circuit\"='elgin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_grands_prix\" (\n \"name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: Name the Winning driver of mercedes on 22 august?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"other_grands_prix\" WHERE \"winning_constructor\"='mercedes' AND \"date\"='22 august';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_clubs\" (\n \"club\" text,\n \"coach\" text,\n \"city\" text,\n \"stadium\" text,\n \"2007_2008_season\" text\n);\n\nQuestion: Which coach had a 2007-2008 season of 6th?" }, { "role": "assistant", "content": "SELECT \"coach\" FROM \"members_clubs\" WHERE \"2007_2008_season\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_clubs\" (\n \"club\" text,\n \"coach\" text,\n \"city\" text,\n \"stadium\" text,\n \"2007_2008_season\" text\n);\n\nQuestion: Which stadium did Rashid Budaj coach?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"members_clubs\" WHERE \"coach\"='rashid budaj';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_clubs\" (\n \"club\" text,\n \"coach\" text,\n \"city\" text,\n \"stadium\" text,\n \"2007_2008_season\" text\n);\n\nQuestion: Who coached for al farwaniyah?" }, { "role": "assistant", "content": "SELECT \"coach\" FROM \"members_clubs\" WHERE \"city\"='al farwaniyah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_clubs\" (\n \"club\" text,\n \"coach\" text,\n \"city\" text,\n \"stadium\" text,\n \"2007_2008_season\" text\n);\n\nQuestion: Who was the coach for qadsia?" }, { "role": "assistant", "content": "SELECT \"coach\" FROM \"members_clubs\" WHERE \"club\"='qadsia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members_clubs\" (\n \"club\" text,\n \"coach\" text,\n \"city\" text,\n \"stadium\" text,\n \"2007_2008_season\" text\n);\n\nQuestion: Which stadium had the club Kuwait?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"members_clubs\" WHERE \"club\"='kuwait';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text,\n \"name\" text\n);\n\nQuestion: What's the score in 1990?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles\" WHERE \"year\"='1990';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text,\n \"name\" text\n);\n\nQuestion: Who was the champion of the Philips Open with a runner-up of Javier S\u00e1nchez?" }, { "role": "assistant", "content": "SELECT \"champion\" FROM \"singles\" WHERE \"name\"='philips open' AND \"runner_up\"='javier s\u00e1nchez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text,\n \"name\" text\n);\n\nQuestion: What's the score of the Nice International Championships where Bj\u00f6rn Borg was the champion?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles\" WHERE \"name\"='nice international championships' AND \"champion\"='bj\u00f6rn borg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text,\n \"name\" text\n);\n\nQuestion: What year had a score of 6\u20132, 2\u20136, 5\u20137, 7\u20136, 8\u20136?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"singles\" WHERE \"score\"='6\u20132, 2\u20136, 5\u20137, 7\u20136, 8\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"score\" text,\n \"name\" text\n);\n\nQuestion: What's the name when Henrik Sundstr\u00f6m was champion?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"singles\" WHERE \"champion\"='henrik sundstr\u00f6m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When the away team was Bolton Wanderers, what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"away_team\"='bolton wanderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: On the date of 30/01/1991, when the away team was Liverpool, what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"date\"='30/01/1991' AND \"away_team\"='liverpool';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When the tie no was 1, what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When the home team was Shrewsbury town, what was the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"home_team\"='shrewsbury town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: When the home team was Woking, what was the tie no?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"fourth_round_proper\" WHERE \"home_team\"='woking';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: How many people attended the game against away team Cambridge City?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"replays\" WHERE \"away_team\"='cambridge city';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the home team that played against Aylesbury Vale?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"replays\" WHERE \"away_team\"='aylesbury vale';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Which home team has 44 ties?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"replays\" WHERE \"tie_no\"='44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replays\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: How many people attended the game with home team Witton Albion?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"replays\" WHERE \"home_team\"='witton albion';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance at the Billericay Town home game?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"quarterfinals\" WHERE \"home_team\"='billericay town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the tie number of the away game for Ashford Town (Middx)?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"quarterfinals\" WHERE \"away_team\"='ashford town (middx)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance at the Billericay Town home game?" }, { "role": "assistant", "content": "SELECT \"attendance\" FROM \"quarterfinals\" WHERE \"home_team\"='billericay town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the away team at the game attended by 81?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"quarterfinals\" WHERE \"attendance\"='81';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What score has a tie of 5?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fifth_round_proper\" WHERE \"tie_no\"='5';" } ]