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 \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Country, when Score is \"69-69=138\", and when Player is \"Ian Poulter\"?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='69-69=138' AND \"player\"='ian poulter';" } ]
[ { "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 is Score, when Country is \"Scotland\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"country\"='scotland';" } ]
[ { "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 is Score, when Country is \"United States\", and when Player is \"Bob Tway\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"country\"='united states' AND \"player\"='bob tway';" } ]
[ { "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 is Score, when Player is \"Ernie Els\"?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"second_round\" WHERE \"player\"='ernie els';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"american_football_league\" (\n \"year\" real,\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"afl_team\" text\n);\n\nQuestion: What is the smallest Pick with Overall of 244?" }, { "role": "assistant", "content": "SELECT MIN(\"pick\") FROM \"american_football_league\" WHERE \"overall\"=244;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"american_football_league\" (\n \"year\" real,\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"afl_team\" text\n);\n\nQuestion: What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?" }, { "role": "assistant", "content": "SELECT MIN(\"pick\") FROM \"american_football_league\" WHERE \"overall\">17 AND \"player_name\"='dave adams category:articles with hcards' AND \"year\">1963;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"american_football_league\" (\n \"year\" real,\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"player_name\" text,\n \"position\" text,\n \"afl_team\" text\n);\n\nQuestion: What is the greatest Year with a Player name of dave adams category:articles with hcards, and a Round smaller than 23?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"american_football_league\" WHERE \"player_name\"='dave adams category:articles with hcards' AND \"round\"<23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Name the Round that has Res of win and an Opponent of demian maia?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"res\"='win' AND \"opponent\"='demian maia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: which Event that has an Opponent of kendall grove?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='kendall grove';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: When has an Event of ufc 123?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 123';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"censorship_by_country\" (\n \"country\" text,\n \"region\" text,\n \"fh_freepressreport\" text,\n \"rwb_pressfreedomindex\" text,\n \"internetlists\" text,\n \"on_ipoliticalfiltering\" text,\n \"on_isocialfiltering\" text,\n \"on_isecurityfiltering\" text,\n \"on_itoolsfiltering\" text\n);\n\nQuestion: The country of Laos is in what region?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"censorship_by_country\" WHERE \"country\"='laos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"censorship_by_country\" (\n \"country\" text,\n \"region\" text,\n \"fh_freepressreport\" text,\n \"rwb_pressfreedomindex\" text,\n \"internetlists\" text,\n \"on_ipoliticalfiltering\" text,\n \"on_isocialfiltering\" text,\n \"on_isecurityfiltering\" text,\n \"on_itoolsfiltering\" text\n);\n\nQuestion: What is the name of the country that has internetlists of \u2014, and ONIsecurityfiltering of \u2014?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"censorship_by_country\" WHERE \"internetlists\"='\u2014' AND \"on_isecurityfiltering\"='\u2014';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"censorship_by_country\" (\n \"country\" text,\n \"region\" text,\n \"fh_freepressreport\" text,\n \"rwb_pressfreedomindex\" text,\n \"internetlists\" text,\n \"on_ipoliticalfiltering\" text,\n \"on_isocialfiltering\" text,\n \"on_isecurityfiltering\" text,\n \"on_itoolsfiltering\" text\n);\n\nQuestion: With a FHFreepressreport of 54, and ne as ONIsocialfiltering, what is the ONItoolsfiltering?" }, { "role": "assistant", "content": "SELECT \"on_itoolsfiltering\" FROM \"censorship_by_country\" WHERE \"fh_freepressreport\"='54' AND \"on_isocialfiltering\"='ne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arizona\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What were the Results in Arizona 1 District?" }, { "role": "assistant", "content": "SELECT \"results\" FROM \"arizona\" WHERE \"district\"='arizona 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arizona\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What Republican District had Incumbent First Elected in 2000 then Re-elected?" }, { "role": "assistant", "content": "SELECT \"district\" FROM \"arizona\" WHERE \"party\"='republican' AND \"results\"='re-elected' AND \"first_elected\"=2000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"arizona\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"results\" text\n);\n\nQuestion: What is John Shadegg's First Elected date?" }, { "role": "assistant", "content": "SELECT AVG(\"first_elected\") FROM \"arizona\" WHERE \"incumbent\"='john shadegg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_28\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: On which date was the opponent lamine ouahab?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_28\" WHERE \"opponent\"='lamine ouahab';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_28\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: On what date did the match take place in a round of 1r and have a result 2\u20136, 5\u20137, 2\u20136?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_28\" WHERE \"round\"='1r' AND \"result\"='2\u20136, 5\u20137, 2\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_28\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: What is the result of the match in round 1r against tunisia and on a hard surface?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"singles_28\" WHERE \"round\"='1r' AND \"surface\"='hard' AND \"against\"='tunisia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_28\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: Who was the match against when on a clay surface during round 2r?" }, { "role": "assistant", "content": "SELECT \"against\" FROM \"singles_28\" WHERE \"round\"='2r' AND \"surface\"='clay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_28\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"result\" text\n);\n\nQuestion: What round had a amtch against cyprus and an edition of 2010 davis cup europe/africa group ii?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"singles_28\" WHERE \"edition\"='2010 davis cup europe/africa group ii' AND \"against\"='cyprus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"time_progression_in_the_100_m\" (\n \"year\" real,\n \"time\" real,\n \"windspeed\" text,\n \"city\" text,\n \"date\" text\n);\n\nQuestion: What is the most recent year with a time of 10.56?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"time_progression_in_the_100_m\" WHERE \"time\"=10.56;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"friendlies\" (\n \"date\" text,\n \"opponents\" text,\n \"h_a\" text,\n \"result_f_a\" text,\n \"scorers\" text\n);\n\nQuestion: When was the game played against Astley Bridge 'a'?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"friendlies\" WHERE \"opponents\"='astley bridge ''a''';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: Who was the girl of the week after nicole woodruff in the same month?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"2003\" WHERE \"week_4\"='nicole woodruff';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: Who was the girl of the week 3 weeks after brianne bailey in the same month?" }, { "role": "assistant", "content": "SELECT \"week_5\" FROM \"2003\" WHERE \"week_2\"='brianne bailey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2003\" (\n \"week_1\" text,\n \"week_2\" text,\n \"week_3\" text,\n \"week_4\" text,\n \"week_5\" text\n);\n\nQuestion: Who was the girl of the week 2 weeks before terri lynn farrow in the same month?" }, { "role": "assistant", "content": "SELECT \"week_2\" FROM \"2003\" WHERE \"week_4\"='terri lynn farrow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scorers\" (\n \"player\" text,\n \"tries\" real,\n \"goals\" text,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many tries did the player have which ended with 20 Points?" }, { "role": "assistant", "content": "SELECT \"tries\" FROM \"scorers\" WHERE \"points\"=20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scorers\" (\n \"player\" text,\n \"tries\" real,\n \"goals\" text,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What is the highest number of points that Justin Hodges earned with 0 field goals and 0 regular goals?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"scorers\" WHERE \"field_goals\"=0 AND \"goals\"='0' AND \"player\"='justin hodges';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What is the average Points, when Date is \"February 2\", and when Attendance is less than 16,874?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"regular_season\" WHERE \"date\"='february 2' AND \"attendance\"<'16,874';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text,\n \"arena\" text,\n \"points\" real\n);\n\nQuestion: What is the lowest Attendance, when Date is \"February 4\", and when Points is less than 57?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"regular_season\" WHERE \"date\"='february 4' AND \"points\"<57;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"state_titles\" (\n \"school\" text,\n \"sport\" text,\n \"titles\" text,\n \"years\" text,\n \"total\" text\n);\n\nQuestion: For a total of 1 and the sport of softball what were the years?" }, { "role": "assistant", "content": "SELECT \"years\" FROM \"state_titles\" WHERE \"total\"='1' AND \"sport\"='softball';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"state_titles\" (\n \"school\" text,\n \"sport\" text,\n \"titles\" text,\n \"years\" text,\n \"total\" text\n);\n\nQuestion: What was the total for the year of 1925?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"state_titles\" WHERE \"years\"='1925';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue_num\" text\n);\n\nQuestion: Which label is in a limited edition cd/dvd format?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"format\"='limited edition cd/dvd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue_num\" text\n);\n\nQuestion: What is the date for the United Kingdom with an LP format?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"release_history\" WHERE \"country\"='united kingdom' AND \"format\"='lp';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue_num\" text\n);\n\nQuestion: Which format is in Japan?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"country\"='japan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalogue_num\" text\n);\n\nQuestion: What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"country\"='united kingdom' AND \"catalogue_num\"='886973273913 (gowow012)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_la_liga_season_at_least_\" (\n \"rank\" real,\n \"club\" text,\n \"season\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?" }, { "role": "assistant", "content": "SELECT MIN(\"apps\") FROM \"most_goals_in_a_la_liga_season_at_least_\" WHERE \"club\"='barcelona' AND \"season\"='1996/97' AND \"rank\"<7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_la_liga_season_at_least_\" (\n \"rank\" real,\n \"club\" text,\n \"season\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: Which Season has a Club of real madrid, and a Rank smaller than 6, and less than 121 goals?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"most_goals_in_a_la_liga_season_at_least_\" WHERE \"club\"='real madrid' AND \"rank\"<6 AND \"goals\"<121;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_la_liga_season_at_least_\" (\n \"rank\" real,\n \"club\" text,\n \"season\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: How many Apps have a Rank larger than 2, and Goals smaller than 102?" }, { "role": "assistant", "content": "SELECT SUM(\"apps\") FROM \"most_goals_in_a_la_liga_season_at_least_\" WHERE \"rank\">2 AND \"goals\"<102;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"most_goals_in_a_la_liga_season_at_least_\" (\n \"rank\" real,\n \"club\" text,\n \"season\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"most_goals_in_a_la_liga_season_at_least_\" WHERE \"rank\"<4 AND \"club\"='barcelona' AND \"goals\"<115;" } ]
[ { "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: What player has a 147 total from Spain?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"missed_the_cut\" WHERE \"total\"=147 AND \"country\"='spain';" } ]
[ { "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: What year was the 146 total?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"missed_the_cut\" WHERE \"total\"=146;" } ]
[ { "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: What country is Paul Lawrie from?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"missed_the_cut\" WHERE \"player\"='paul lawrie';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"co_2\" text,\n \"years\" text\n);\n\nQuestion: Which Fuel has an Engine of 4cyl, and a 0\u2013100km/h, s of 11.3?" }, { "role": "assistant", "content": "SELECT \"fuel\" FROM \"engines\" WHERE \"engine\"='4cyl' AND \"0_100km_h_s\"=11.3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"co_2\" text,\n \"years\" text\n);\n\nQuestion: Which Fuel has an Output of ps (kw; hp) @6000 rpm?" }, { "role": "assistant", "content": "SELECT \"fuel\" FROM \"engines\" WHERE \"output\"='ps (kw; hp) @6000 rpm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"co_2\" text,\n \"years\" text\n);\n\nQuestion: Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km?" }, { "role": "assistant", "content": "SELECT \"torque\" FROM \"engines\" WHERE \"volume\"='1896 cc' AND \"co_2\"='140 g/km';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"co_2\" text,\n \"years\" text\n);\n\nQuestion: How much 0\u2013100km/h, s has a Fuel of diesel, and a Torque of n\u00b7m (lb\u00b7ft) @1900 rpm, and an Engine ID code(s) of agr/alh?" }, { "role": "assistant", "content": "SELECT COUNT(\"0_100km_h_s\") FROM \"engines\" WHERE \"fuel\"='diesel' AND \"torque\"='n\u00b7m (lb\u00b7ft) @1900 rpm' AND \"engine_id_code_s\"='agr/alh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"volume\" text,\n \"engine\" text,\n \"fuel\" text,\n \"output\" text,\n \"torque\" text,\n \"engine_id_code_s\" text,\n \"0_100km_h_s\" real,\n \"top_speed\" text,\n \"co_2\" text,\n \"years\" text\n);\n\nQuestion: Which CO 2 has an Output of ps (kw; hp) @4000 rpm, and a 0\u2013100km/h, s smaller than 11.1?" }, { "role": "assistant", "content": "SELECT \"co_2\" FROM \"engines\" WHERE \"output\"='ps (kw; hp) @4000 rpm' AND \"0_100km_h_s\"<11.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"time\" text\n);\n\nQuestion: What Venue has a Year smaller than 1986, and a Position of 6th?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"year\"<1986 AND \"position\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"time\" text\n);\n\nQuestion: What Position has a Time of 3:01.78?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"achievements\" WHERE \"time\"='3:01.78';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"time\" text\n);\n\nQuestion: What Event has a Competition of world championships?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"achievements\" WHERE \"competition\"='world championships';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"time\" text\n);\n\nQuestion: What Time has a Year of 1984?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"achievements\" WHERE \"year\"=1984;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text,\n \"time\" text\n);\n\nQuestion: What Competition has a Year smaller than 1983?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"achievements\" WHERE \"year\"<1983;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text\n);\n\nQuestion: What is the Weight of the Senior Player with a Height of 6\u201310?" }, { "role": "assistant", "content": "SELECT SUM(\"weight\") FROM \"roster\" WHERE \"year\"='senior' AND \"height\"='6\u201310';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text\n);\n\nQuestion: What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"roster\" WHERE \"weight\"<230 AND \"home_town\"='san antonio, texas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text\n);\n\nQuestion: What is the Height of the Sophomore Guard weighing 185?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"roster\" WHERE \"year\"='sophomore' AND \"position\"='guard' AND \"weight\"=185;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" real,\n \"year\" text,\n \"home_town\" text\n);\n\nQuestion: What is the Year of the Player weighing 185?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"roster\" WHERE \"weight\"=185;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former\" (\n \"club\" text,\n \"nickname\" text,\n \"location\" text,\n \"gfl_premierships\" text,\n \"years_in_gfl\" text\n);\n\nQuestion: Which club is located in Thomson, Victoria?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"former\" WHERE \"location\"='thomson, victoria';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former\" (\n \"club\" text,\n \"nickname\" text,\n \"location\" text,\n \"gfl_premierships\" text,\n \"years_in_gfl\" text\n);\n\nQuestion: What is the nickname of the team who was in the GFL from 1986-1988?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"former\" WHERE \"years_in_gfl\"='1986-1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former\" (\n \"club\" text,\n \"nickname\" text,\n \"location\" text,\n \"gfl_premierships\" text,\n \"years_in_gfl\" text\n);\n\nQuestion: Which location did the Tigers have?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"former\" WHERE \"nickname\"='tigers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former\" (\n \"club\" text,\n \"nickname\" text,\n \"location\" text,\n \"gfl_premierships\" text,\n \"years_in_gfl\" text\n);\n\nQuestion: What was the nickname of the team in the Geelong West Cricket & Football Club?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"former\" WHERE \"club\"='geelong west cricket & football club';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former\" (\n \"club\" text,\n \"nickname\" text,\n \"location\" text,\n \"gfl_premierships\" text,\n \"years_in_gfl\" text\n);\n\nQuestion: What GLF Premiership did the Magpies have?" }, { "role": "assistant", "content": "SELECT \"gfl_premierships\" FROM \"former\" WHERE \"nickname\"='magpies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former\" (\n \"club\" text,\n \"nickname\" text,\n \"location\" text,\n \"gfl_premierships\" text,\n \"years_in_gfl\" text\n);\n\nQuestion: What was the nickname of the team in the East Geelong club?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"former\" WHERE \"club\"='east geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What year has a winning finish of T27?" }, { "role": "assistant", "content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"finish\"='t27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What was the finish for England?" }, { "role": "assistant", "content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"country\"='england';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What county won in 1991?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1991';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is the highest total to par of +9?" }, { "role": "assistant", "content": "SELECT MAX(\"total\") FROM \"made_the_cut\" WHERE \"to_par\"='+9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What Status has Against of 12?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"1990\" WHERE \"against\"=12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990\" (\n \"opposing_teams\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What Venue has a Date of 17/03/1990?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"1990\" WHERE \"date\"='17/03/1990';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: How many weeks had an Attendance of 43,272?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"attendance\"='43,272';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: Who played on december 12, 1993?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='december 12, 1993';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text,\n \"report\" text\n);\n\nQuestion: What day was United States the opposing team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"matches\" WHERE \"opposing_team\"='united states';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text,\n \"report\" text\n);\n\nQuestion: What was the opposing team for the second test?" }, { "role": "assistant", "content": "SELECT \"opposing_team\" FROM \"matches\" WHERE \"status\"='second test';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text,\n \"report\" text\n);\n\nQuestion: What was the opposing team for the second test?" }, { "role": "assistant", "content": "SELECT \"opposing_team\" FROM \"matches\" WHERE \"status\"='second test';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_and_player_records\" (\n \"team\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What round was in canberra stadium?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"club_and_player_records\" WHERE \"venue\"='canberra stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_and_player_records\" (\n \"team\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What is the venue of the match with cronulla sharks as the opponent?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"club_and_player_records\" WHERE \"opponent\"='cronulla sharks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_and_player_records\" (\n \"team\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: Who is the opponent at toyota stadium?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"club_and_player_records\" WHERE \"venue\"='toyota stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_and_player_records\" (\n \"team\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What is the score of the match with the sydney roosters as the opponent?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"club_and_player_records\" WHERE \"opponent\"='sydney roosters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"club_and_player_records\" (\n \"team\" text,\n \"opponent\" text,\n \"score\" text,\n \"venue\" text,\n \"round\" text\n);\n\nQuestion: What is the venue of the match with the cronulla sharks as the opponent?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"club_and_player_records\" WHERE \"opponent\"='cronulla sharks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What Location Attendance has a Game of 4?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What Date has a Location Attendance of reunion arena?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"game_log\" WHERE \"location_attendance\"='reunion arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What Record has a Location Attendance of delta center, and an Opponent of vs vancouver grizzlies?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"location_attendance\"='delta center' AND \"opponent\"='vs vancouver grizzlies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What Location Attendance has an Opponent of at denver nuggets?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"opponent\"='at denver nuggets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What Record has an Opponent of vs washington wizards?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"opponent\"='vs washington wizards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What Location Attendance has a Game of 14?" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"game\"='14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runner_ups_5\" (\n \"year\" real,\n \"championship\" text,\n \"partnering\" text,\n \"opponents_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner?" }, { "role": "assistant", "content": "SELECT \"score_in_final\" FROM \"runner_ups_5\" WHERE \"partnering\"='robin ammerlaan' AND \"opponents_in_final\"='shingo kunieda maikel scheffers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"runner_ups_5\" (\n \"year\" real,\n \"championship\" text,\n \"partnering\" text,\n \"opponents_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?" }, { "role": "assistant", "content": "SELECT \"championship\" FROM \"runner_ups_5\" WHERE \"partnering\"='maikel scheffers' AND \"year\">2007 AND \"opponents_in_final\"='stephane houdet nicolas peiffer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_models\" (\n \"model\" text,\n \"screen_size\" text,\n \"bluetooth\" text,\n \"fm_transmitter\" text,\n \"flash\" text\n);\n\nQuestion: What is the screen size of the s45 (Australia only) Model with no bluetooth?" }, { "role": "assistant", "content": "SELECT \"screen_size\" FROM \"previous_models\" WHERE \"bluetooth\"='no' AND \"model\"='s45 (australia only)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_models\" (\n \"model\" text,\n \"screen_size\" text,\n \"bluetooth\" text,\n \"fm_transmitter\" text,\n \"flash\" text\n);\n\nQuestion: Does the S90i model have bluetooth?" }, { "role": "assistant", "content": "SELECT \"bluetooth\" FROM \"previous_models\" WHERE \"model\"='s90i';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"previous_models\" (\n \"model\" text,\n \"screen_size\" text,\n \"bluetooth\" text,\n \"fm_transmitter\" text,\n \"flash\" text\n);\n\nQuestion: Does the s35 model have bluetooth?" }, { "role": "assistant", "content": "SELECT \"bluetooth\" FROM \"previous_models\" WHERE \"model\"='s35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"croatia\" (\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 height for club Havk Mladost?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"croatia\" WHERE \"club\"='havk mladost';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"croatia\" (\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 height for Nikola Frankovi\u0107?" }, { "role": "assistant", "content": "SELECT \"height\" FROM \"croatia\" WHERE \"name\"='nikola frankovi\u0107';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"croatia\" (\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 Damir Buri\u0107?" }, { "role": "assistant", "content": "SELECT \"weight\" FROM \"croatia\" WHERE \"name\"='damir buri\u0107';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is Total, when Rank Points is \"15\", and when Event is \"WC Beijing\"?" }, { "role": "assistant", "content": "SELECT \"total\" FROM \"qualification\" WHERE \"rank_points\"='15' AND \"event\"='wc beijing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is Score Points, when Event is \"WC Rio De Janeiro\", and when Rank Points is \"10\"?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"event\"='wc rio de janeiro' AND \"rank_points\"='10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is Shooter, when Total is \"21\"?" }, { "role": "assistant", "content": "SELECT \"shooter\" FROM \"qualification\" WHERE \"total\"='21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is Score Points, when Shooter is \"Sandra Kolly ( SUI )\"?" }, { "role": "assistant", "content": "SELECT \"score_points\" FROM \"qualification\" WHERE \"shooter\"='sandra kolly ( sui )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is Rank Points, when Event is \"WC Milan\", and when Shooter is \"Lalita Yauhleuskaya ( AUS )\"?" }, { "role": "assistant", "content": "SELECT \"rank_points\" FROM \"qualification\" WHERE \"event\"='wc milan' AND \"shooter\"='lalita yauhleuskaya ( aus )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is Rank Points, when Total is \"17\", and when Shooter is \"Lalita Yauhleuskaya ( AUS )\"?" }, { "role": "assistant", "content": "SELECT \"rank_points\" FROM \"qualification\" WHERE \"total\"='17' AND \"shooter\"='lalita yauhleuskaya ( aus )';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_performances_on\" (\n \"week\" text,\n \"theme\" text,\n \"song_sung\" text,\n \"artist\" text,\n \"status\" text\n);\n\nQuestion: Which Artist is listed as having Top 6 in Week" }, { "role": "assistant", "content": "SELECT \"artist\" FROM \"list_of_performances_on\" WHERE \"week\"='top 6';" } ]