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 \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?" }, { "role": "assistant", "content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"manner_of_departure\"='end of tenure as caretaker' AND \"replaced_by\"='jesper hansen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"position_in_table\"='pre-season' AND \"manner_of_departure\"='end of tenure as caretaker';" } ]
[ { "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 place is Fredrik Jacobson from?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"first_round\" WHERE \"player\"='fredrik jacobson';" } ]
[ { "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 to par of Tiger Woods, where his score was less than 67, and he was in t1 place?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"score\"<67 AND \"place\"='t1' AND \"player\"='tiger woods';" } ]
[ { "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 place is player Brad Faxon from?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"first_round\" WHERE \"player\"='brad faxon';" } ]
[ { "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 Sweden's lowest score?" }, { "role": "assistant", "content": "SELECT MIN(\"score\") FROM \"first_round\" WHERE \"country\"='sweden';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_luster\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sogn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Sub-Parish (Sogn) was built after 1894 in the Parish (Prestegjeld) of jostedal parish?" }, { "role": "assistant", "content": "SELECT \"sub_parish_sogn\" FROM \"churches_in_luster\" WHERE \"year_built\">1894 AND \"parish_prestegjeld\"='jostedal parish';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_luster\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sogn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?" }, { "role": "assistant", "content": "SELECT \"sub_parish_sogn\" FROM \"churches_in_luster\" WHERE \"parish_prestegjeld\"='hafslo parish' AND \"church_name\"='hafslo kyrkje';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_luster\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sogn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?" }, { "role": "assistant", "content": "SELECT \"sub_parish_sogn\" FROM \"churches_in_luster\" WHERE \"parish_prestegjeld\"='hafslo parish' AND \"location_of_the_church\"='urnes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_luster\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sogn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?" }, { "role": "assistant", "content": "SELECT \"sub_parish_sogn\" FROM \"churches_in_luster\" WHERE \"year_built\"<1883 AND \"parish_prestegjeld\"='jostedal parish' AND \"location_of_the_church\"='gaupne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"churches_in_luster\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sogn\" text,\n \"church_name\" text,\n \"year_built\" real,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Sub-Parish (Sogn) has a church named Jostedal Kyrkje?" }, { "role": "assistant", "content": "SELECT \"sub_parish_sogn\" FROM \"churches_in_luster\" WHERE \"church_name\"='jostedal kyrkje';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titleholders\" (\n \"year\" real,\n \"country_territory\" text,\n \"miss_international\" text,\n \"national_title\" text,\n \"location\" text\n);\n\nQuestion: What's the national title of miss international ikumi yoshimatsu?" }, { "role": "assistant", "content": "SELECT \"national_title\" FROM \"titleholders\" WHERE \"miss_international\"='ikumi yoshimatsu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titleholders\" (\n \"year\" real,\n \"country_territory\" text,\n \"miss_international\" text,\n \"national_title\" text,\n \"location\" text\n);\n\nQuestion: What's the earliest year the philippines won?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"titleholders\" WHERE \"country_territory\"='philippines';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titleholders\" (\n \"year\" real,\n \"country_territory\" text,\n \"miss_international\" text,\n \"national_title\" text,\n \"location\" text\n);\n\nQuestion: What's the average year lebanon won?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"titleholders\" WHERE \"country_territory\"='lebanon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"titleholders\" (\n \"year\" real,\n \"country_territory\" text,\n \"miss_international\" text,\n \"national_title\" text,\n \"location\" text\n);\n\nQuestion: What country or territory is ma\u0142gorzata ro\u017cniecka from?" }, { "role": "assistant", "content": "SELECT \"country_territory\" FROM \"titleholders\" WHERE \"miss_international\"='ma\u0142gorzata ro\u017cniecka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bc_augsburg_versus_tsv_schwaben_augsburg\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: Which team had a league of regionalliga s\u00fcd?" }, { "role": "assistant", "content": "SELECT \"teams\" FROM \"bc_augsburg_versus_tsv_schwaben_augsburg\" WHERE \"league\"='regionalliga s\u00fcd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bc_augsburg_versus_tsv_schwaben_augsburg\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What was the home for season 1949-50?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"bc_augsburg_versus_tsv_schwaben_augsburg\" WHERE \"season\"='1949-50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bc_augsburg_versus_tsv_schwaben_augsburg\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: Which season had a home 2-3?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"bc_augsburg_versus_tsv_schwaben_augsburg\" WHERE \"home\"='2-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bc_augsburg_versus_tsv_schwaben_augsburg\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: Which team had a season 1954-55?" }, { "role": "assistant", "content": "SELECT \"teams\" FROM \"bc_augsburg_versus_tsv_schwaben_augsburg\" WHERE \"season\"='1954-55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bc_augsburg_versus_tsv_schwaben_augsburg\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What season has an away 2-0?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"bc_augsburg_versus_tsv_schwaben_augsburg\" WHERE \"away\"='2-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bc_augsburg_versus_tsv_schwaben_augsburg\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What team has a home of 2-3?" }, { "role": "assistant", "content": "SELECT \"teams\" FROM \"bc_augsburg_versus_tsv_schwaben_augsburg\" WHERE \"home\"='2-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total that wehn Lithuania is the nation, and Silver is more than 0?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"medals_table\" WHERE \"nation\"='lithuania' AND \"silver\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"medals_table\" WHERE \"bronze\">0 AND \"gold\">1 AND \"nation\"='japan' AND \"silver\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank when the total is less than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"medals_table\" WHERE \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total when silver is more than 0, and bronze less than 0?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"medals_table\" WHERE \"silver\">0 AND \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank that when Serbia is the nation, and gold is larger than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"medals_table\" WHERE \"nation\"='serbia' AND \"gold\">0;" } ]
[ { "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\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Which Year(s) won has a To par smaller than 12, and a Player of john daly?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"missed_the_cut\" WHERE \"to_par\"<12 AND \"player\"='john daly';" } ]
[ { "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\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Which Player has a To par of 12, and a Country of fiji?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"missed_the_cut\" WHERE \"to_par\"=12 AND \"country\"='fiji';" } ]
[ { "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\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: Which Total has a To par larger than 12?" }, { "role": "assistant", "content": "SELECT MIN(\"total\") FROM \"missed_the_cut\" WHERE \"to_par\">12;" } ]
[ { "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\" text,\n \"total\" real,\n \"to_par\" real\n);\n\nQuestion: How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?" }, { "role": "assistant", "content": "SELECT SUM(\"to_par\") FROM \"missed_the_cut\" WHERE \"total\">149 AND \"country\"='united states' AND \"year_s_won\"='1997';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_most_watched_television_broadcas\" (\n \"rank\" real,\n \"show\" text,\n \"number_of_viewers\" text,\n \"date\" text,\n \"network\" text\n);\n\nQuestion: Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"list_of_most_watched_television_broadcas\" WHERE \"rank\">5 AND \"show\"='2012 summer olympics closing ceremony in london';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_most_watched_television_broadcas\" (\n \"rank\" real,\n \"show\" text,\n \"number_of_viewers\" text,\n \"date\" text,\n \"network\" text\n);\n\nQuestion: Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"list_of_most_watched_television_broadcas\" WHERE \"network\"='bbc one' AND \"number_of_viewers\"='30.15million';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_most_watched_television_broadcas\" (\n \"rank\" real,\n \"show\" text,\n \"number_of_viewers\" text,\n \"date\" text,\n \"network\" text\n);\n\nQuestion: When has a Rank larger than 2 and a Network of itv?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"list_of_most_watched_television_broadcas\" WHERE \"rank\">2 AND \"network\"='itv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"term_of_office\" text\n);\n\nQuestion: What is the Term of office for Leonard Reynolds of NSW?" }, { "role": "assistant", "content": "SELECT \"term_of_office\" FROM \"see_also\" WHERE \"state\"='nsw' AND \"member\"='leonard reynolds';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"term_of_office\" text\n);\n\nQuestion: What state shows for Cunningham?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"see_also\" WHERE \"electorate\"='cunningham';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"term_of_office\" text\n);\n\nQuestion: What is the Electorate when the term of office was 1955\u20131972, for Peter Howson?" }, { "role": "assistant", "content": "SELECT \"electorate\" FROM \"see_also\" WHERE \"term_of_office\"='1955\u20131972' AND \"member\"='peter howson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"member\" text,\n \"party\" text,\n \"electorate\" text,\n \"state\" text,\n \"term_of_office\" text\n);\n\nQuestion: What party has a term of office of 1951\u20131966, and a State of sa?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"see_also\" WHERE \"term_of_office\"='1951\u20131966' AND \"state\"='sa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text\n);\n\nQuestion: What was the Attendance at Jobing.com Arena?" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"preseason\" WHERE \"arena\"='jobing.com arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text\n);\n\nQuestion: What is the Date of the game with a Loss of Leneveu (1\u20130\u20131)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"preseason\" WHERE \"loss\"='leneveu (1\u20130\u20131)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text\n);\n\nQuestion: What is the Date with a game with a Record of 2\u20131\u20131?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"preseason\" WHERE \"record\"='2\u20131\u20131';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text\n);\n\nQuestion: What is the Score at Jobing.com Arena?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"preseason\" WHERE \"arena\"='jobing.com arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preseason\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text\n);\n\nQuestion: What is the Opponent of the game on September 26?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"preseason\" WHERE \"date\"='september 26';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What Label has a Region of united states, and a Format of cassette?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"region\"='united states' AND \"format\"='cassette';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What Date has a Label of grilled cheese?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"release_history\" WHERE \"label\"='grilled cheese';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What Catalog has a Label of geffen records / universal music special markets?" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"label\"='geffen records / universal music special markets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What Label has a Format of cd, and a Catalog of crgd 86136?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"format\"='cd' AND \"catalog\"='crgd 86136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What Region has a Catalog of crgd 86136?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"release_history\" WHERE \"catalog\"='crgd 86136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What Label has a Catalog of 486 136-2?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"catalog\"='486 136-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_division\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which Date has an Attendance larger than 51,338, and an Opponent of manchester united?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"first_division\" WHERE \"attendance\">'51,338' AND \"opponent\"='manchester united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_division\" (\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which Opponent has a Result of 0-3?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"first_division\" WHERE \"result\"='0-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"uefa_cup_winner_s_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the total attendance with a 1-0 result, at Venue H, and Round SF?" }, { "role": "assistant", "content": "SELECT SUM(\"attendance\") FROM \"uefa_cup_winner_s_cup\" WHERE \"result\"='1-0' AND \"venue\"='h' AND \"round\"='sf';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"uefa_cup_winner_s_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the lowest attendance at Venue H in Round R2?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"uefa_cup_winner_s_cup\" WHERE \"venue\"='h' AND \"round\"='r2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"uefa_cup_winner_s_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the highest attendance for the opponents Club Brugge in Venue A?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"uefa_cup_winner_s_cup\" WHERE \"opponent\"='club brugge' AND \"venue\"='a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"uefa_cup_winner_s_cup\" (\n \"date\" text,\n \"round\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What is the round for the opponent CSKA Sofia in Venue A?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"uefa_cup_winner_s_cup\" WHERE \"opponent\"='cska sofia' AND \"venue\"='a';" } ]
[ { "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 player placed t10?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"first_round\" WHERE \"place\"='t10';" } ]
[ { "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 was Bernhard Langer's highest score?" }, { "role": "assistant", "content": "SELECT MAX(\"score\") FROM \"first_round\" WHERE \"player\"='bernhard langer';" } ]
[ { "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 was Craig Stadler's lowest score for United states?" }, { "role": "assistant", "content": "SELECT MIN(\"score\") FROM \"first_round\" WHERE \"country\"='united states' AND \"player\"='craig stadler';" } ]
[ { "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 Money (\u00a3) has a Country of ireland?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_round\" WHERE \"country\"='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: What Player has a Place of t10?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"final_round\" WHERE \"place\"='t10';" } ]
[ { "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 To par has a Score of 71-73-71-71=286?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"score\"='71-73-71-71=286';" } ]
[ { "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 Place has a To par of \u20134?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_round\" WHERE \"to_par\"='\u20134';" } ]
[ { "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 Score has a Place of t8, and a Country of scotland?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"place\"='t8' AND \"country\"='scotland';" } ]
[ { "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 To par has a Country of united states, and a Score of 67-66-78-77=288?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"country\"='united states' AND \"score\"='67-66-78-77=288';" } ]
[ { "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 is the average Money ( $ ), when Country is \"United States\", and when To par is \"+3\"?" }, { "role": "assistant", "content": "SELECT AVG(\"money\") FROM \"final_leaderboard\" WHERE \"country\"='united states' AND \"to_par\"='+3';" } ]
[ { "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 is Money ( $ ), when Player is \"Morgan Pressel\"?" }, { "role": "assistant", "content": "SELECT \"money\" FROM \"final_leaderboard\" WHERE \"player\"='morgan pressel';" } ]
[ { "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 is Place, when Player is \"Mi Hyun Kim\"?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"player\"='mi hyun kim';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"raiding_history\" (\n \"date\" text,\n \"ship\" text,\n \"nationality\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: What was the tonnage on 30 march 1943?" }, { "role": "assistant", "content": "SELECT AVG(\"tonnage\") FROM \"raiding_history\" WHERE \"date\"='30 march 1943';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"raiding_history\" (\n \"date\" text,\n \"ship\" text,\n \"nationality\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: What was the fate on 27 june 1942?" }, { "role": "assistant", "content": "SELECT \"fate\" FROM \"raiding_history\" WHERE \"date\"='27 june 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"raiding_history\" (\n \"date\" text,\n \"ship\" text,\n \"nationality\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: What was the tonnage on 12 september 1942?" }, { "role": "assistant", "content": "SELECT \"tonnage\" FROM \"raiding_history\" WHERE \"date\"='12 september 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"raiding_history\" (\n \"date\" text,\n \"ship\" text,\n \"nationality\" text,\n \"tonnage\" real,\n \"fate\" text\n);\n\nQuestion: What was Yugoslavia's fate?" }, { "role": "assistant", "content": "SELECT \"fate\" FROM \"raiding_history\" WHERE \"nationality\"='yugoslavia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships_of_the_class\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"homeport\" text,\n \"commissioned\" text,\n \"status\" text\n);\n\nQuestion: What is the status of the ship INS Ranvir?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"ships_of_the_class\" WHERE \"name\"='ins ranvir';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships_of_the_class\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"homeport\" text,\n \"commissioned\" text,\n \"status\" text\n);\n\nQuestion: Who was the builder of the ship INS Rana?" }, { "role": "assistant", "content": "SELECT \"builder\" FROM \"ships_of_the_class\" WHERE \"name\"='ins rana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurovision_song_contest_entries\" (\n \"year\" real,\n \"song\" text,\n \"artist\" text,\n \"place\" text,\n \"points\" text,\n \"composer\" text\n);\n\nQuestion: What is the place in 2007 for the song \" work your magic \"?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"eurovision_song_contest_entries\" WHERE \"year\"=2007 AND \"song\"='\\\" work your magic \\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurovision_song_contest_entries\" (\n \"year\" real,\n \"song\" text,\n \"artist\" text,\n \"place\" text,\n \"points\" text,\n \"composer\" text\n);\n\nQuestion: Who is the Composer of \" peace will come \"?" }, { "role": "assistant", "content": "SELECT \"composer\" FROM \"eurovision_song_contest_entries\" WHERE \"song\"='\\\" peace will come \\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurovision_song_contest_entries\" (\n \"year\" real,\n \"song\" text,\n \"artist\" text,\n \"place\" text,\n \"points\" text,\n \"composer\" text\n);\n\nQuestion: What year shows 248 (sf: 217) points?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"eurovision_song_contest_entries\" WHERE \"points\"='248 (sf: 217)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurovision_song_contest_entries\" (\n \"year\" real,\n \"song\" text,\n \"artist\" text,\n \"place\" text,\n \"points\" text,\n \"composer\" text\n);\n\nQuestion: What is the place later than 2007, with 141 (sf:83) points?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"eurovision_song_contest_entries\" WHERE \"year\">2007 AND \"points\"='141 (sf:83)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"eurovision_song_contest_entries\" (\n \"year\" real,\n \"song\" text,\n \"artist\" text,\n \"place\" text,\n \"points\" text,\n \"composer\" text\n);\n\nQuestion: What artist shows 2007 and composer of Hayko?" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"eurovision_song_contest_entries\" WHERE \"year\"=2007 AND \"composer\"='hayko';" } ]
[ { "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 place is Corey Pavin in?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='corey pavin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: Which 1991-92 has a 1993-94 smaller than 34, and a Team of argentinos juniors?" }, { "role": "assistant", "content": "SELECT \"1991_92\" FROM \"relegation\" WHERE \"1993_94\"<34 AND \"team\"='argentinos juniors';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: How many Points have an Average smaller than 1, a Played larger than 38, and a Team of gimnasia de la plata?" }, { "role": "assistant", "content": "SELECT SUM(\"points\") FROM \"relegation\" WHERE \"average\"<1 AND \"played\">38 AND \"team\"='gimnasia de la plata';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: Which 1992-93 has Played of 114, and a 1991-92 of 48?" }, { "role": "assistant", "content": "SELECT \"1992_93\" FROM \"relegation\" WHERE \"played\"=114 AND \"1991_92\"='48';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: Which 1991-92 has a 1993-94 of 43?" }, { "role": "assistant", "content": "SELECT \"1991_92\" FROM \"relegation\" WHERE \"1993_94\"=43;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" real,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: Which 1992-93 has a 1993-94 of 43?" }, { "role": "assistant", "content": "SELECT \"1992_93\" FROM \"relegation\" WHERE \"1993_94\"=43;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atomic_properties\" (\n \"atomic_property\" text,\n \"helium\" text,\n \"neon\" text,\n \"argon\" text,\n \"krypton\" text,\n \"xenon\" text,\n \"radon\" text\n);\n\nQuestion: Which Atomic property has Helium of 4.16?" }, { "role": "assistant", "content": "SELECT \"atomic_property\" FROM \"atomic_properties\" WHERE \"helium\"='4.16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atomic_properties\" (\n \"atomic_property\" text,\n \"helium\" text,\n \"neon\" text,\n \"argon\" text,\n \"krypton\" text,\n \"xenon\" text,\n \"radon\" text\n);\n\nQuestion: Which Krypton has Neon of 10?" }, { "role": "assistant", "content": "SELECT \"krypton\" FROM \"atomic_properties\" WHERE \"neon\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atomic_properties\" (\n \"atomic_property\" text,\n \"helium\" text,\n \"neon\" text,\n \"argon\" text,\n \"krypton\" text,\n \"xenon\" text,\n \"radon\" text\n);\n\nQuestion: Which Radon has Neon of 4.79?" }, { "role": "assistant", "content": "SELECT \"radon\" FROM \"atomic_properties\" WHERE \"neon\"='4.79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atomic_properties\" (\n \"atomic_property\" text,\n \"helium\" text,\n \"neon\" text,\n \"argon\" text,\n \"krypton\" text,\n \"xenon\" text,\n \"radon\" text\n);\n\nQuestion: Which Neon has Atomic property of average valence electron energy (avee)?" }, { "role": "assistant", "content": "SELECT \"neon\" FROM \"atomic_properties\" WHERE \"atomic_property\"='average valence electron energy (avee)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atomic_properties\" (\n \"atomic_property\" text,\n \"helium\" text,\n \"neon\" text,\n \"argon\" text,\n \"krypton\" text,\n \"xenon\" text,\n \"radon\" text\n);\n\nQuestion: Which Radon has Atomic property of outer shell electron configuration?" }, { "role": "assistant", "content": "SELECT \"radon\" FROM \"atomic_properties\" WHERE \"atomic_property\"='outer shell electron configuration';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"atomic_properties\" (\n \"atomic_property\" text,\n \"helium\" text,\n \"neon\" text,\n \"argon\" text,\n \"krypton\" text,\n \"xenon\" text,\n \"radon\" text\n);\n\nQuestion: Which Xenon has Neon of 20.1797(6)?" }, { "role": "assistant", "content": "SELECT \"xenon\" FROM \"atomic_properties\" WHERE \"neon\"='20.1797(6)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ties\" (\n \"tie_no\" real,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" real\n);\n\nQuestion: What is the highest attendance of the game with eastwood town as the away team?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"ties\" WHERE \"away_team\"='eastwood town';" } ]
[ { "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 place is Scott McCarron in?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"final_round\" WHERE \"player\"='scott mccarron';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is Alexandr Elke's Weight?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"kazakhstan\" WHERE \"name\"='alexandr elke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Name of the D Player from the Dinamo Moscow Club?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"kazakhstan\" WHERE \"club\"='dinamo moscow' AND \"pos\"='d';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Date of Birth of the Player from the CSK VMF Moscow Club?" }, { "role": "assistant", "content": "SELECT \"date_of_birth\" FROM \"kazakhstan\" WHERE \"club\"='csk vmf moscow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kazakhstan\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Weight of the Player from DSHNK Almaty Club with a Height of m (ft 6in)?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"kazakhstan\" WHERE \"club\"='dshnk almaty' AND \"height\"='m (ft 6in)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation_playoff\" (\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: Which Position has Goals against smaller than 43, and Wins larger than 14, and Played larger than 38?" }, { "role": "assistant", "content": "SELECT SUM(\"position\") FROM \"relegation_playoff\" WHERE \"goals_against\"<43 AND \"wins\">14 AND \"played\">38;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation_playoff\" (\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: Which Goals for has a Position smaller than 16, and Wins smaller than 19, and Goals against smaller than 32?" }, { "role": "assistant", "content": "SELECT MIN(\"goals_for\") FROM \"relegation_playoff\" WHERE \"position\"<16 AND \"wins\"<19 AND \"goals_against\"<32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation_playoff\" (\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: Which Points have Goals against of 32, and Played larger than 38?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"relegation_playoff\" WHERE \"goals_against\"=32 AND \"played\">38;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation_playoff\" (\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: Which Position has Goals against smaller than 59, and Goals for larger than 32, and Draws larger than 9, and Points larger than 35?" }, { "role": "assistant", "content": "SELECT AVG(\"position\") FROM \"relegation_playoff\" WHERE \"goals_against\"<59 AND \"goals_for\">32 AND \"draws\">9 AND \"points\">35;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"connecticut\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What district re-elected a Republican?" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"connecticut\" WHERE \"party\"='republican' AND \"results\"='re-elected';" } ]