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 \"list_of_male_capital_artists_singers\" (\n \"english_name\" text,\n \"chinese_name\" text,\n \"year_signed\" real,\n \"year_separated\" text,\n \"reason_for_separation\" text\n);\n\nQuestion: What was the signed year for the Chinese name \u8607\u6c38\u5eb7 who separated in 1987?" }, { "role": "assistant", "content": "SELECT \"year_signed\" FROM \"list_of_male_capital_artists_singers\" WHERE \"year_separated\"='1987' AND \"chinese_name\"='\u8607\u6c38\u5eb7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT IS THE SITE ON OCTOBER 7?" }, { "role": "assistant", "content": "SELECT \"site\" FROM \"schedule\" WHERE \"date\"='october 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT DATE HAD 6 RANK?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"rank_num\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT OPPONENT WAS ON OCTOBER 7?" }, { "role": "assistant", "content": "SELECT \"opponentnum\" FROM \"schedule\" WHERE \"date\"='october 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponentnum\" text,\n \"rank_num\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: WHAT RANK HAD A RESULT OF W13-3?" }, { "role": "assistant", "content": "SELECT \"rank_num\" FROM \"schedule\" WHERE \"result\"='w13-3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_undrafted_players\" (\n \"original_nfl_team\" text,\n \"player\" text,\n \"pos\" text,\n \"college\" text,\n \"conf\" text\n);\n\nQuestion: What is the original NFL team of the College of Oregon DT Player?" }, { "role": "assistant", "content": "SELECT \"original_nfl_team\" FROM \"notable_undrafted_players\" WHERE \"college\"='oregon' AND \"pos\"='dt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notable_undrafted_players\" (\n \"original_nfl_team\" text,\n \"player\" text,\n \"pos\" text,\n \"college\" text,\n \"conf\" text\n);\n\nQuestion: What Player is from Iowa State?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"notable_undrafted_players\" WHERE \"college\"='iowa state';" } ]
[ { "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: What was the result of the game that had 77,702 people in attendance?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\"='77,702';" } ]
[ { "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: On what day did the team play the Indianapolis Colts?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"opponent\"='indianapolis colts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the average Played, when Goals Against is less than 63, when Team is \"Nelson\", and when Lost is greater than 16?" }, { "role": "assistant", "content": "SELECT AVG(\"played\") FROM \"third_division_final_table\" WHERE \"goals_against\"<63 AND \"team\"='nelson' AND \"lost\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the total number of Goals For, when Points 1 is \"41\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"goals_for\") FROM \"third_division_final_table\" WHERE \"points_1\"='41';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the lowest Position, when Lost is greater than 15, when Team is Cheadle Town, and when Drawn is greater than 8?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"third_division_final_table\" WHERE \"lost\">15 AND \"team\"='cheadle town' AND \"drawn\">8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_division_final_table\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" text,\n \"points_1\" text\n);\n\nQuestion: What is the lowest Position, when Points 1 is \"39\", and when Goals Against is greater than 49?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"third_division_final_table\" WHERE \"points_1\"='39' AND \"goals_against\">49;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"lkf_cup\" text,\n \"regional_competitions\" text,\n \"europe\" text,\n \"head_coach\" text\n);\n\nQuestion: WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"season_by_season\" WHERE \"head_coach\"='jonas kazlauskas' AND \"europe\"='champions cup group stage';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"lkf_cup\" text,\n \"regional_competitions\" text,\n \"europe\" text,\n \"head_coach\" text\n);\n\nQuestion: WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist?" }, { "role": "assistant", "content": "SELECT \"lkf_cup\" FROM \"season_by_season\" WHERE \"europe\"='euroleague group stage' AND \"regional_competitions\"='bbl elite division finalist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_by_season\" (\n \"season\" text,\n \"lkf_cup\" text,\n \"regional_competitions\" text,\n \"europe\" text,\n \"head_coach\" text\n);\n\nQuestion: WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?" }, { "role": "assistant", "content": "SELECT \"europe\" FROM \"season_by_season\" WHERE \"head_coach\"='vainauskas , sakalauskas' AND \"regional_competitions\"='nebl finalist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"initial_unstressed_syllables\" (\n \"semi_closed_initial_unstressed_vowels\" text,\n \"17th_c\" text,\n \"american\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the American sound that has a 17th century equivalent of \u026a, and a Semi-closed initial unstressed vowels of i /\u026a, \u0268/?" }, { "role": "assistant", "content": "SELECT \"american\" FROM \"initial_unstressed_syllables\" WHERE \"17th_c\"='\u026a' AND \"semi_closed_initial_unstressed_vowels\"='i /\u026a, \u0268/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"initial_unstressed_syllables\" (\n \"semi_closed_initial_unstressed_vowels\" text,\n \"17th_c\" text,\n \"american\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the American sound that has a 17th century equivalent of \u0254?" }, { "role": "assistant", "content": "SELECT \"american\" FROM \"initial_unstressed_syllables\" WHERE \"17th_c\"='\u0254';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"initial_unstressed_syllables\" (\n \"semi_closed_initial_unstressed_vowels\" text,\n \"17th_c\" text,\n \"american\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the entry for the Australian sound that has an example of illyria, cf. cirrhosis?" }, { "role": "assistant", "content": "SELECT \"australian\" FROM \"initial_unstressed_syllables\" WHERE \"examples\"='illyria, cf. cirrhosis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"initial_unstressed_syllables\" (\n \"semi_closed_initial_unstressed_vowels\" text,\n \"17th_c\" text,\n \"american\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: For the 17th century entry of \u0250, what is Semi-closed initial unstressed vowels?" }, { "role": "assistant", "content": "SELECT \"semi_closed_initial_unstressed_vowels\" FROM \"initial_unstressed_syllables\" WHERE \"17th_c\"='\u0250';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"initial_unstressed_syllables\" (\n \"semi_closed_initial_unstressed_vowels\" text,\n \"17th_c\" text,\n \"american\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the entry for the Australian sound that has a 17th century equivalent of \u0250?" }, { "role": "assistant", "content": "SELECT \"australian\" FROM \"initial_unstressed_syllables\" WHERE \"17th_c\"='\u0250';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"initial_unstressed_syllables\" (\n \"semi_closed_initial_unstressed_vowels\" text,\n \"17th_c\" text,\n \"american\" text,\n \"australian\" text,\n \"examples\" text\n);\n\nQuestion: What is the example for the American of \u026a, \u0259, and a Semi-closed initial unstressed vowels of y /\u0268/?" }, { "role": "assistant", "content": "SELECT \"examples\" FROM \"initial_unstressed_syllables\" WHERE \"american\"='\u026a, \u0259' AND \"semi_closed_initial_unstressed_vowels\"='y /\u0268/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"home_away\" text,\n \"field\" text,\n \"result\" text\n);\n\nQuestion: What field is an opponent of cannons and resulted with w 16-11?" }, { "role": "assistant", "content": "SELECT \"field\" FROM \"schedule\" WHERE \"opponent\"='cannons' AND \"result\"='w 16-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"home_away\" text,\n \"field\" text,\n \"result\" text\n);\n\nQuestion: what is the result from texas stadium?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"field\"='texas stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"home_away\" text,\n \"field\" text,\n \"result\" text\n);\n\nQuestion: What field resulted with w 18-12?" }, { "role": "assistant", "content": "SELECT \"field\" FROM \"schedule\" WHERE \"result\"='w 18-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"home_away\" text,\n \"field\" text,\n \"result\" text\n);\n\nQuestion: What field had results of w 18-12?" }, { "role": "assistant", "content": "SELECT \"field\" FROM \"schedule\" WHERE \"result\"='w 18-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"group_i\" WHERE \"goals_for\">48 AND \"wins\"<19 AND \"goals_against\"<44 AND \"draws\">5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"group_i\" WHERE \"wins\"<14 AND \"club\"='sd indauchu' AND \"position\">12;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_i\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?" }, { "role": "assistant", "content": "SELECT AVG(\"goals_for\") FROM \"group_i\" WHERE \"draws\"<6 AND \"losses\"<7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_showing_viewing_share_of_individua\" (\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real\n);\n\nQuestion: How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006?" }, { "role": "assistant", "content": "SELECT COUNT(\"2010\") FROM \"table_showing_viewing_share_of_individua\" WHERE \"2007\">4.6 AND \"2006\"=8.2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_showing_viewing_share_of_individua\" (\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real\n);\n\nQuestion: What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007?" }, { "role": "assistant", "content": "SELECT \"2010\" FROM \"table_showing_viewing_share_of_individua\" WHERE \"2006\"<6.9 AND \"2008\">1.6 AND \"2007\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_showing_viewing_share_of_individua\" (\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real\n);\n\nQuestion: How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?" }, { "role": "assistant", "content": "SELECT COUNT(\"2008\") FROM \"table_showing_viewing_share_of_individua\" WHERE \"2006\"=6.9 AND \"2007\"<7.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_showing_viewing_share_of_individua\" (\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real\n);\n\nQuestion: What is the highest 2010 that has a 2009 less than 6.5, 0.4 as the 2008, with a 2007 less than 0.5?" }, { "role": "assistant", "content": "SELECT MAX(\"2010\") FROM \"table_showing_viewing_share_of_individua\" WHERE \"2009\"<6.5 AND \"2008\"=0.4 AND \"2007\"<0.5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table_showing_viewing_share_of_individua\" (\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real\n);\n\nQuestion: How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1?" }, { "role": "assistant", "content": "SELECT SUM(\"2007\") FROM \"table_showing_viewing_share_of_individua\" WHERE \"2006\"=0.2 AND \"2010\"<0.1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_8_4_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What Tournament has an Outcome of runner-up, and a Score of 4\u20136, 3\u20136?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_8_4_4\" WHERE \"outcome\"='runner-up' AND \"score\"='4\u20136, 3\u20136';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_8_4_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What Surface has a Date of 1 september 2008?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_8_4_4\" WHERE \"date\"='1 september 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_8_4_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What Score has an Opponent of nina bratchikova?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_8_4_4\" WHERE \"opponent\"='nina bratchikova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_8_4_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What Surface has a Tournament of pune, india?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_8_4_4\" WHERE \"tournament\"='pune, india';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_8_4_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What Tournament has a Date of 20 december 2010?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_8_4_4\" WHERE \"date\"='20 december 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_8_4_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What Tournament has a Score of 5\u20137, 2\u20136?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_8_4_4\" WHERE \"score\"='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 \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which Place has a Score of 71-70=141?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='71-70=141';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which Country has a Score of 69-66=135?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='69-66=135';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which Country has a To par of \u20139?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"to_par\"='\u20139';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which To par has a Country of united states, and a Score of 71-70=141?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"country\"='united states' AND \"score\"='71-70=141';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which Player has a To par of \u20135, and a Country of england?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"to_par\"='\u20135' AND \"country\"='england';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"role\" text,\n \"result\" text\n);\n\nQuestion: Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010?" }, { "role": "assistant", "content": "SELECT \"category\" FROM \"awards\" WHERE \"award\"='monte carlo tv festival awards' AND \"year\">2010;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"role\" text,\n \"result\" text\n);\n\nQuestion: How many years have a Result of nominated?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"awards\" WHERE \"result\"='nominated';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"role\" text,\n \"result\" text\n);\n\nQuestion: Which Result has a Category of outstanding actor (drama)?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"awards\" WHERE \"category\"='outstanding actor (drama)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"role\" text,\n \"result\" text\n);\n\nQuestion: Which Result has an Award of virgin media tv awards?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"awards\" WHERE \"award\"='virgin media tv awards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" text,\n \"date\" text,\n \"fixtures\" real,\n \"clubs\" text,\n \"new_entries_this_round\" text,\n \"prize_money\" text,\n \"player_of_the_round\" text\n);\n\nQuestion: What is the prize money for the second round qualifying that is listed?" }, { "role": "assistant", "content": "SELECT \"prize_money\" FROM \"calendar\" WHERE \"round\"='second round qualifying';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_2_5\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: How many years have runner-up as the outcome, and indian wells as the championship?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"singles_7_2_5\" WHERE \"outcome\"='runner-up' AND \"championship\"='indian wells';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_2_5\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What score has 2000 as the year?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_7_2_5\" WHERE \"year\"=2000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_2_5\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What surface has indian wells as the championship, with winner as the outcome?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_7_2_5\" WHERE \"championship\"='indian wells' AND \"outcome\"='winner';" } ]
[ { "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\" real,\n \"money\" real\n);\n\nQuestion: Which average money has a To par larger than 12?" }, { "role": "assistant", "content": "SELECT AVG(\"money\") FROM \"final_leaderboard\" 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 \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" real\n);\n\nQuestion: Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_leaderboard\" WHERE \"to_par\"<6 AND \"money\">700 AND \"score\"='69-73-70-71=283';" } ]
[ { "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\" real,\n \"money\" real\n);\n\nQuestion: Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12?" }, { "role": "assistant", "content": "SELECT AVG(\"money\") FROM \"final_leaderboard\" WHERE \"place\"='t10' AND \"player\"='denny shute' AND \"to_par\">12;" } ]
[ { "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\" real,\n \"money\" real\n);\n\nQuestion: Which Country has a Money ($) of 0, and a Place of t10?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_leaderboard\" WHERE \"money\"=0 AND \"place\"='t10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"class\" text,\n \"bike\" text,\n \"team\" text,\n \"race\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: What is the highest FLap by a Honda NSR500 bike after Race 16?" }, { "role": "assistant", "content": "SELECT MAX(\"f_lap\") FROM \"by_season\" WHERE \"bike\"='honda nsr500' AND \"race\">16;" } ]
[ { "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 \"name\" text,\n \"nationality\" text,\n \"tonnage_grt\" real,\n \"fate\" text\n);\n\nQuestion: Which Fate has a Tonnage (GRT) larger than 1,352, and a Name of lavington court?" }, { "role": "assistant", "content": "SELECT \"fate\" FROM \"raiding_history\" WHERE \"tonnage_grt\">'1,352' AND \"name\"='lavington court';" } ]
[ { "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 \"name\" text,\n \"nationality\" text,\n \"tonnage_grt\" real,\n \"fate\" text\n);\n\nQuestion: How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?" }, { "role": "assistant", "content": "SELECT COUNT(\"tonnage_grt\") FROM \"raiding_history\" WHERE \"nationality\"='united kingdom' AND \"date\"='27 june 1941';" } ]
[ { "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 \"name\" text,\n \"nationality\" text,\n \"tonnage_grt\" real,\n \"fate\" text\n);\n\nQuestion: Which Nationality has a Date of 8 may 1942?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"raiding_history\" WHERE \"date\"='8 may 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wha\" (\n \"draft\" real,\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text\n);\n\nQuestion: What is Canada's highest round before 1973?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"wha\" WHERE \"nationality\"='canada' AND \"draft\"<1973;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title_of_work\" text,\n \"result\" text\n);\n\nQuestion: What year was The Saber nominated for best action?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"awards_and_nominations\" WHERE \"title_of_work\"='saber' AND \"category\"='best action';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title_of_work\" text,\n \"result\" text\n);\n\nQuestion: What was awarded before 2013 to the Saber in the category of Best Action?" }, { "role": "assistant", "content": "SELECT \"award\" FROM \"awards_and_nominations\" WHERE \"year\"<2013 AND \"title_of_work\"='saber' AND \"category\"='best action';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mutant_cultivars\" (\n \"date\" text,\n \"inventor\" text,\n \"marketed_as\" text,\n \"mutated_from\" text,\n \"assignee\" text,\n \"habit\" text,\n \"pattern\" text,\n \"earlier\" text,\n \"color\" text,\n \"plant_patent_number\" text\n);\n\nQuestion: What date had the patent number US plant patent 12098?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"mutant_cultivars\" WHERE \"plant_patent_number\"='us plant patent 12098';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mutant_cultivars\" (\n \"date\" text,\n \"inventor\" text,\n \"marketed_as\" text,\n \"mutated_from\" text,\n \"assignee\" text,\n \"habit\" text,\n \"pattern\" text,\n \"earlier\" text,\n \"color\" text,\n \"plant_patent_number\" text\n);\n\nQuestion: What's the mutated having a patent number of US plant patent 9645?" }, { "role": "assistant", "content": "SELECT \"mutated_from\" FROM \"mutant_cultivars\" WHERE \"plant_patent_number\"='us plant patent 9645';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mutant_cultivars\" (\n \"date\" text,\n \"inventor\" text,\n \"marketed_as\" text,\n \"mutated_from\" text,\n \"assignee\" text,\n \"habit\" text,\n \"pattern\" text,\n \"earlier\" text,\n \"color\" text,\n \"plant_patent_number\" text\n);\n\nQuestion: What's the patent number when it was mutated from Yakata 7001 and a standard habit?" }, { "role": "assistant", "content": "SELECT \"plant_patent_number\" FROM \"mutant_cultivars\" WHERE \"habit\"='standard' AND \"mutated_from\"='yakata 7001';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mutant_cultivars\" (\n \"date\" text,\n \"inventor\" text,\n \"marketed_as\" text,\n \"mutated_from\" text,\n \"assignee\" text,\n \"habit\" text,\n \"pattern\" text,\n \"earlier\" text,\n \"color\" text,\n \"plant_patent_number\" text\n);\n\nQuestion: What's the patent number of Fukuda?" }, { "role": "assistant", "content": "SELECT \"plant_patent_number\" FROM \"mutant_cultivars\" WHERE \"inventor\"='fukuda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mutant_cultivars\" (\n \"date\" text,\n \"inventor\" text,\n \"marketed_as\" text,\n \"mutated_from\" text,\n \"assignee\" text,\n \"habit\" text,\n \"pattern\" text,\n \"earlier\" text,\n \"color\" text,\n \"plant_patent_number\" text\n);\n\nQuestion: Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?" }, { "role": "assistant", "content": "SELECT \"inventor\" FROM \"mutant_cultivars\" WHERE \"habit\"='spur' AND \"pattern\"='stripe' AND \"mutated_from\"='redsport type 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mutant_cultivars\" (\n \"date\" text,\n \"inventor\" text,\n \"marketed_as\" text,\n \"mutated_from\" text,\n \"assignee\" text,\n \"habit\" text,\n \"pattern\" text,\n \"earlier\" text,\n \"color\" text,\n \"plant_patent_number\" text\n);\n\nQuestion: What's the mutated of Auvil?" }, { "role": "assistant", "content": "SELECT \"mutated_from\" FROM \"mutant_cultivars\" WHERE \"assignee\"='auvil';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_specifications\" (\n \"model\" text,\n \"years\" text,\n \"engine\" text,\n \"power\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: Which model has a top speed of 231km/h (143mph)?" }, { "role": "assistant", "content": "SELECT \"model\" FROM \"models_and_specifications\" WHERE \"top_speed\"='231km/h (143mph)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_specifications\" (\n \"model\" text,\n \"years\" text,\n \"engine\" text,\n \"power\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?" }, { "role": "assistant", "content": "SELECT \"0_100km_h_62mph\" FROM \"models_and_specifications\" WHERE \"model\"='slk200k' AND \"top_speed\"='236km/h (147mph)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_specifications\" (\n \"model\" text,\n \"years\" text,\n \"engine\" text,\n \"power\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the 0\u2013100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?" }, { "role": "assistant", "content": "SELECT \"0_100km_h_62mph\" FROM \"models_and_specifications\" WHERE \"top_speed\"='208km/h (129mph)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"models_and_specifications\" (\n \"model\" text,\n \"years\" text,\n \"engine\" text,\n \"power\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the top speed of the SLK200K that produces 122kw (163hp)?" }, { "role": "assistant", "content": "SELECT \"top_speed\" FROM \"models_and_specifications\" WHERE \"model\"='slk200k' AND \"power\"='122kw (163hp)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"possible_correspondences_between_proto_s\" (\n \"phoen_value\" text,\n \"phoen_name\" text,\n \"hebrew\" text,\n \"greek\" text,\n \"latin\" text,\n \"cyrillic\" text,\n \"arabic\" text\n);\n\nQuestion: What is the Latin term for the Greek symbol \u03bc?" }, { "role": "assistant", "content": "SELECT \"latin\" FROM \"possible_correspondences_between_proto_s\" WHERE \"greek\"='\u03bc';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"closing_broadway_cast\" text,\n \"original_us_tour_cast\" text,\n \"original_non_equity_tour_cast\" text,\n \"original_s_o_paulo_cast\" text,\n \"original_lima_cast\" text\n);\n\nQuestion: Which role had a closing broadway cast of Adam Grupper?" }, { "role": "assistant", "content": "SELECT \"role\" FROM \"casts\" WHERE \"closing_broadway_cast\"='adam grupper';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"closing_broadway_cast\" text,\n \"original_us_tour_cast\" text,\n \"original_non_equity_tour_cast\" text,\n \"original_s_o_paulo_cast\" text,\n \"original_lima_cast\" text\n);\n\nQuestion: What was the original US Tour cast when the original broadway was Kevin Chamberlin?" }, { "role": "assistant", "content": "SELECT \"original_us_tour_cast\" FROM \"casts\" WHERE \"original_broadway_cast\"='kevin chamberlin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"closing_broadway_cast\" text,\n \"original_us_tour_cast\" text,\n \"original_non_equity_tour_cast\" text,\n \"original_s_o_paulo_cast\" text,\n \"original_lima_cast\" text\n);\n\nQuestion: What was the original nonequity tour when the original broadway was Kevin Chamberlin?" }, { "role": "assistant", "content": "SELECT \"original_non_equity_tour_cast\" FROM \"casts\" WHERE \"original_broadway_cast\"='kevin chamberlin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"casts\" (\n \"role\" text,\n \"original_broadway_cast\" text,\n \"closing_broadway_cast\" text,\n \"original_us_tour_cast\" text,\n \"original_non_equity_tour_cast\" text,\n \"original_s_o_paulo_cast\" text,\n \"original_lima_cast\" text\n);\n\nQuestion: What was the role when the original broadway was Adam Riegler?" }, { "role": "assistant", "content": "SELECT \"role\" FROM \"casts\" WHERE \"original_broadway_cast\"='adam riegler';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"annual_passenger_statistics_for_enonteki\" (\n \"year\" real,\n \"domestic\" real,\n \"international\" real,\n \"total\" real,\n \"change\" text\n);\n\nQuestion: What is the number for the international with 669 domestic earlier than 2005?" }, { "role": "assistant", "content": "SELECT AVG(\"international\") FROM \"annual_passenger_statistics_for_enonteki\" WHERE \"domestic\"=669 AND \"year\"<2005;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"annual_passenger_statistics_for_enonteki\" (\n \"year\" real,\n \"domestic\" real,\n \"international\" real,\n \"total\" real,\n \"change\" text\n);\n\nQuestion: What year was the international lower than 17,517 and domestic was less than 545?" }, { "role": "assistant", "content": "SELECT AVG(\"year\") FROM \"annual_passenger_statistics_for_enonteki\" WHERE \"international\"<'17,517' AND \"domestic\"<545;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_cup\" (\n \"season\" text,\n \"date\" text,\n \"winners\" text,\n \"finalists\" text,\n \"score\" text\n);\n\nQuestion: What was the score on 14 march 2004?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"league_cup\" WHERE \"date\"='14 march 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_cup\" (\n \"season\" text,\n \"date\" text,\n \"winners\" text,\n \"finalists\" text,\n \"score\" text\n);\n\nQuestion: In what season was Kilmarnock a finalist and Hibernian the winner?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"league_cup\" WHERE \"winners\"='hibernian' AND \"finalists\"='kilmarnock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_cup\" (\n \"season\" text,\n \"date\" text,\n \"winners\" text,\n \"finalists\" text,\n \"score\" text\n);\n\nQuestion: Who were the finalists in the 1972\u201373 season?" }, { "role": "assistant", "content": "SELECT \"finalists\" FROM \"league_cup\" WHERE \"season\"='1972\u201373';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_cup\" (\n \"season\" text,\n \"date\" text,\n \"winners\" text,\n \"finalists\" text,\n \"score\" text\n);\n\nQuestion: In which season did the Rangers win with a score of 2\u20131?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"league_cup\" WHERE \"score\"='2\u20131' AND \"winners\"='rangers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league_cup\" (\n \"season\" text,\n \"date\" text,\n \"winners\" text,\n \"finalists\" text,\n \"score\" text\n);\n\nQuestion: When did Motherwell win?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"league_cup\" WHERE \"winners\"='motherwell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" real,\n \"forcible_rape\" text,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"property_crime\" text,\n \"burglary\" real,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" real\n);\n\nQuestion: What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?" }, { "role": "assistant", "content": "SELECT MIN(\"burglary\") FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"forcible_rape\"='39.1' AND \"motor_vehicle_theft\"<568.8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" real,\n \"forcible_rape\" text,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"property_crime\" text,\n \"burglary\" real,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" real\n);\n\nQuestion: When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?" }, { "role": "assistant", "content": "SELECT MIN(\"burglary\") FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"population\">'832,901' AND \"murder_and_non_negligent_manslaughter\"=11.6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012_calendar_year_ratios_of_crime_per_1\" (\n \"state\" text,\n \"city\" text,\n \"population\" real,\n \"violent_crime\" text,\n \"murder_and_non_negligent_manslaughter\" real,\n \"forcible_rape\" text,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"property_crime\" text,\n \"burglary\" real,\n \"larceny_theft\" text,\n \"motor_vehicle_theft\" real\n);\n\nQuestion: What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?" }, { "role": "assistant", "content": "SELECT SUM(\"murder_and_non_negligent_manslaughter\") FROM \"2012_calendar_year_ratios_of_crime_per_1\" WHERE \"larceny_theft\"='3,693.9' AND \"burglary\">'1,027.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assembly_segments\" (\n \"constituency_number\" text,\n \"name\" text,\n \"reserved_for_sc_st_none\" text,\n \"district\" text,\n \"number_of_electorates_2009\" real\n);\n\nQuestion: What is the name for district total:?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"assembly_segments\" WHERE \"district\"='total:';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"assembly_segments\" (\n \"constituency_number\" text,\n \"name\" text,\n \"reserved_for_sc_st_none\" text,\n \"district\" text,\n \"number_of_electorates_2009\" real\n);\n\nQuestion: What is the electorates in 2009 for Modi Nagar?" }, { "role": "assistant", "content": "SELECT AVG(\"number_of_electorates_2009\") FROM \"assembly_segments\" WHERE \"name\"='modi nagar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scottish_premier_league\" (\n \"match_day\" real,\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"score\" text,\n \"attendance\" real,\n \"report\" text\n);\n\nQuestion: Who was the opponent on 12 May, when the match day was more than 33?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"scottish_premier_league\" WHERE \"match_day\">33 AND \"date\"='12 may';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_albums\" (\n \"issue_date\" real,\n \"album_title\" text,\n \"artist\" text,\n \"sales\" real,\n \"highest_position\" real\n);\n\nQuestion: What is the largest issue date for an album that reached position of 3?" }, { "role": "assistant", "content": "SELECT MAX(\"issue_date\") FROM \"top_10_albums\" WHERE \"highest_position\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What is the record on March 16?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='march 16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What was the score on January 23?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='january 23';" } ]
[ { "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 many strokes off par was the player who scored 157?" }, { "role": "assistant", "content": "SELECT COUNT(\"to_par\") FROM \"missed_the_cut\" WHERE \"total\"=157;" } ]
[ { "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 who won in 1977 and scored great than 155 was the closest to par?" }, { "role": "assistant", "content": "SELECT MAX(\"to_par\") FROM \"missed_the_cut\" WHERE \"year_s_won\"='1977' AND \"total\">155;" } ]
[ { "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 was the player who was 11 off par from?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"missed_the_cut\" WHERE \"to_par\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the Home team in Tie no 16?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"second_round_proper\" WHERE \"tie_no\"='16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the Date of Tie no 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"second_round_proper\" WHERE \"tie_no\"='9';" } ]