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 \"turkish_airlines_reported_incidents_and_\" (\n \"date\" text,\n \"flight\" text,\n \"aircraft\" text,\n \"registration\" text,\n \"location\" text,\n \"fatalities\" real\n);\n\nQuestion: Which fatality was at ankara for the aircraft douglas c-47?" }, { "role": "assistant", "content": "SELECT \"fatalities\" FROM \"turkish_airlines_reported_incidents_and_\" WHERE \"location\"='ankara' AND \"aircraft\"='douglas c-47';" } ]
[ { "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: How many total rounds have the results of win, and n/a as the method?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"res\"='win' AND \"method\"='n/a';" } ]
[ { "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: How long did the match last in the Rings: Final Capture event?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='rings: final capture';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What is the result for the match against Wataru Sakata?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='wataru sakata';" } ]
[ { "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: The match against Oleg Taktarov had what result?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='oleg taktarov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What was the method when 4-2 was the record?" }, { "role": "assistant", "content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='4-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the score for Tie no. 6?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fifth_round_proper\" WHERE \"tie_no\"='6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fifth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the tie against the away team, Leicester City?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"fifth_round_proper\" WHERE \"away_team\"='leicester city';" } ]
[ { "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\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which round has a time of 3:01?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='3:01';" } ]
[ { "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\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Where is the UFC 110 event with 3 rounds located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"round\"='3' AND \"event\"='ufc 110';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Home team score is on sunday 24 february?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"1st_round\" WHERE \"date\"='sunday 24 february';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Home team has a score of 12.10 (82)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"1st_round\" WHERE \"home_team_score\"='12.10 (82)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Crowd has a Home team of st kilda?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"1st_round\" WHERE \"home_team\"='st kilda';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Away team has a Ground of gabba?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"1st_round\" WHERE \"ground\"='gabba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which Crowd has a Away team of sydney?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"1st_round\" WHERE \"away_team\"='sydney';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"proof_coins\" (\n \"year\" real,\n \"10_1_10_oz\" real,\n \"25_1_4_oz\" real,\n \"50_1_2_oz\" real,\n \"100_1_oz\" real\n);\n\nQuestion: WHAT IS THE NUMBER OF COINS OF $25-1/4 OZ WITH $50-1/2 OZ OF 13,836, AND $100-01 OZ, SMALLER THAN 14,912?" }, { "role": "assistant", "content": "SELECT COUNT(\"25_1_4_oz\") FROM \"proof_coins\" WHERE \"50_1_2_oz\"='13,836' AND \"100_1_oz\"<'14,912';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: Which OWGR pts has Dates of may 10-13?" }, { "role": "assistant", "content": "SELECT SUM(\"owgr_pts\") FROM \"tournament_results\" WHERE \"dates\"='may 10-13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: Which OWGR pts has Dates of apr 26-29, and a Prize fund (\uffe5) smaller than 120,000,000?" }, { "role": "assistant", "content": "SELECT MIN(\"owgr_pts\") FROM \"tournament_results\" WHERE \"dates\"='apr 26-29' AND \"prize_fund\"<'120,000,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: Which OWGR pts has a Prize fund (\uffe5) larger than 100,000,000, and Dates of oct 25-28?" }, { "role": "assistant", "content": "SELECT \"owgr_pts\" FROM \"tournament_results\" WHERE \"prize_fund\">'100,000,000' AND \"dates\"='oct 25-28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: How many OWGR pts have a Prize fund (\uffe5) of 100,000,000, and a Tournament of tsuruya open?" }, { "role": "assistant", "content": "SELECT COUNT(\"owgr_pts\") FROM \"tournament_results\" WHERE \"prize_fund\"='100,000,000' AND \"tournament\"='tsuruya open';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Which Home has an Attendance larger than 1,858?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_9\" WHERE \"attendance\">'1,858';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Which Attendance has a Score of 0:2?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"round_9\" WHERE \"score\"='0:2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Which Date has an Attendance larger than 1,858?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_9\" WHERE \"attendance\">'1,858';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_9\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Which Home has a Score of 0:2?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_9\" WHERE \"score\"='0:2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which Date has a Location/Attendance of verizon center 7,448?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"location_attendance\"='verizon center 7,448';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which Game has a Score of 101-109 (ot)?" }, { "role": "assistant", "content": "SELECT AVG(\"game\") FROM \"regular_season\" WHERE \"score\"='101-109 (ot)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"playoffs\" WHERE \"location_attendance\"='fleetcenter' AND \"score\"='w 120-87';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Which player was the high points scorer during the game with an end score of W 93-85?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"playoffs\" WHERE \"score\"='w 93-85';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: For the game in which P. Pierce (31) scored the most points, what was the final score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"playoffs\" WHERE \"high_points\"='p. pierce (31)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"series\" text\n);\n\nQuestion: Who made the most assists in Game 2 of this season?" }, { "role": "assistant", "content": "SELECT \"high_assists\" FROM \"playoffs\" WHERE \"game\"=2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the smallest number of goals when the goals against are more than 58 and played number is more than 30?" }, { "role": "assistant", "content": "SELECT MIN(\"goals_for\") FROM \"group_ii\" WHERE \"goals_against\">58 AND \"played\">30;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the minimum position when points are 32 and wins are greater than 13?" }, { "role": "assistant", "content": "SELECT MIN(\"position\") FROM \"group_ii\" WHERE \"points\"=32 AND \"wins\">13;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51?" }, { "role": "assistant", "content": "SELECT MAX(\"draws\") FROM \"group_ii\" WHERE \"goals_against\">33 AND \"losses\"=13 AND \"goals_for\"<51;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: What is the position when wins are fewer than 14 and draws are fewer than 3?" }, { "role": "assistant", "content": "SELECT AVG(\"position\") FROM \"group_ii\" WHERE \"wins\"<14 AND \"draws\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: Which club has 15 losses and 14 wins?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"group_ii\" WHERE \"losses\"=15 AND \"wins\"=14;" } ]
[ { "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 \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What home is dated march 19?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"game_log\" WHERE \"date\"='march 19';" } ]
[ { "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 \"attendance\" real,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What home has 46 points?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"game_log\" WHERE \"points\"=46;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"series_sorted\" text,\n \"title\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: What was the date of release for the episode sorted value of 6Y/AA?" }, { "role": "assistant", "content": "SELECT \"released\" FROM \"series_1\" WHERE \"series_sorted\"='6y/aa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"series_sorted\" text,\n \"title\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: What is the series sorted value for the episode released December 2009?" }, { "role": "assistant", "content": "SELECT \"series_sorted\" FROM \"series_1\" WHERE \"released\"='december 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"belarusian_clubs_in_euporean_cups\" (\n \"round\" text,\n \"team_num1\" text,\n \"agg\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What round has Team #2 Gomel?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"belarusian_clubs_in_euporean_cups\" WHERE \"team_num2\"='gomel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?" }, { "role": "assistant", "content": "SELECT \"elevator\" FROM \"cardinal_electors\" WHERE \"order_and_title\"='cardinal-deacon of s. nicola in carcere tulliano';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: The Cardinal-Priest of S. Prassede order and title has who as the elevator?" }, { "role": "assistant", "content": "SELECT \"elevator\" FROM \"cardinal_electors\" WHERE \"order_and_title\"='cardinal-priest of s. prassede';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: When the elevator was Innocent IV what was the nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"cardinal_electors\" WHERE \"elevator\"='innocent iv';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: When Giovanni Gaetano Orsini was the elector who was the elevator?" }, { "role": "assistant", "content": "SELECT \"elevator\" FROM \"cardinal_electors\" WHERE \"elector\"='giovanni gaetano orsini';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: When Anchero Pantaleone was the elector what is under nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"cardinal_electors\" WHERE \"elector\"='anchero pantaleone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cardinal_electors\" (\n \"elector\" text,\n \"nationality\" text,\n \"order_and_title\" text,\n \"elevated\" text,\n \"elevator\" text\n);\n\nQuestion: With a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title?" }, { "role": "assistant", "content": "SELECT \"order_and_title\" FROM \"cardinal_electors\" WHERE \"elevated\"='may 1262' AND \"elector\"='guillaume de bray';" } ]
[ { "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\" real\n);\n\nQuestion: What was the result when the San Francisco 49ers were the opponents?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='san francisco 49ers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_titles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the Score of the Rabat Tournament with Opponent in the final Yannik Reuter?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_titles\" WHERE \"tournament\"='rabat' AND \"opponent_in_the_final\"='yannik reuter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_titles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the Opponent of the match played on a Clay Surface with a Score of 6\u20130, 6\u20132?" }, { "role": "assistant", "content": "SELECT \"opponent_in_the_final\" FROM \"singles_titles\" WHERE \"surface\"='clay' AND \"score\"='6\u20130, 6\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_titles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the Date of the match with Opponent in the final of Filip Pol\u00e1\u0161ek?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"singles_titles\" WHERE \"opponent_in_the_final\"='filip pol\u00e1\u0161ek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_titles\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"singles_titles\" WHERE \"tournament\"='rabat' AND \"opponent_in_the_final\"='frederico gil';" } ]
[ { "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 Date was the Result of the game W 30\u201315?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='w 30\u201315';" } ]
[ { "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 is the Date of Week 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=9;" } ]
[ { "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 is the Result of the game on September 1, 1996?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"date\"='september 1, 1996';" } ]
[ { "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 Week was the Result W 34\u201324?" }, { "role": "assistant", "content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"result\"='w 34\u201324';" } ]
[ { "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 is the Week on November 10, 1996?" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"schedule\" WHERE \"date\"='november 10, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the Status of the Paris with a Census Ranking of 3,474 of 5,008?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"parishes\" WHERE \"census_ranking\"='3,474 of 5,008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the Area of the Parish with a Population of 2,113?" }, { "role": "assistant", "content": "SELECT COUNT(\"area_km_2\") FROM \"parishes\" WHERE \"population\"='2,113';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the Population of the Parish with an Area km 2 of 236.76?" }, { "role": "assistant", "content": "SELECT MIN(\"population\") FROM \"parishes\" WHERE \"area_km_2\"=236.76;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"parishes\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is the Area of the Parish with a Population of 71?" }, { "role": "assistant", "content": "SELECT \"area_km_2\" FROM \"parishes\" WHERE \"population\"=71;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"flintlock_tests\" (\n \"name\" text,\n \"location\" text,\n \"elevation_height\" text,\n \"delivery\" text,\n \"purpose\" text,\n \"yield\" text\n);\n\nQuestion: What is the elevation and height for Halfbeak?" }, { "role": "assistant", "content": "SELECT \"elevation_height\" FROM \"flintlock_tests\" WHERE \"name\"='halfbeak';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"flintlock_tests\" (\n \"name\" text,\n \"location\" text,\n \"elevation_height\" text,\n \"delivery\" text,\n \"purpose\" text,\n \"yield\" text\n);\n\nQuestion: What is the purpose of Long Shot?" }, { "role": "assistant", "content": "SELECT \"purpose\" FROM \"flintlock_tests\" WHERE \"name\"='long shot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"flintlock_tests\" (\n \"name\" text,\n \"location\" text,\n \"elevation_height\" text,\n \"delivery\" text,\n \"purpose\" text,\n \"yield\" text\n);\n\nQuestion: What is the yield in NTS Area U2R when the purpose is weapons development?" }, { "role": "assistant", "content": "SELECT \"yield\" FROM \"flintlock_tests\" WHERE \"purpose\"='weapons development' AND \"location\"='nts area u2r';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"borough\" text\n);\n\nQuestion: What location was listed on 1977-09-15?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"references\" WHERE \"listed\"='1977-09-15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"borough\" text\n);\n\nQuestion: What is the Borough for the Seward listing on 1977-11-23?" }, { "role": "assistant", "content": "SELECT \"borough\" FROM \"references\" WHERE \"location\"='seward' AND \"listed\"='1977-11-23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"borough\" text\n);\n\nQuestion: What location was listed on 1977-11-23?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"references\" WHERE \"listed\"='1977-11-23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"borough\" text\n);\n\nQuestion: What are the listings in the Valdez-cordova (census area) Borough?" }, { "role": "assistant", "content": "SELECT \"listed\" FROM \"references\" WHERE \"borough\"='valdez-cordova (census area)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"built\" text,\n \"listed\" text,\n \"location\" text,\n \"borough\" text\n);\n\nQuestion: What is the name of the building listed on 1977-11-23?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"references\" WHERE \"listed\"='1977-11-23';" } ]
[ { "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\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What was the Maple Leafs' record on game 52?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=52;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: What was Germany's lowest sales when the profit was smaller than 6.7 billion?" }, { "role": "assistant", "content": "SELECT MIN(\"sales_billion\") FROM \"2011_list\" WHERE \"headquarters\"='germany' AND \"profits_billion\"<6.7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion?" }, { "role": "assistant", "content": "SELECT \"industry\" FROM \"2011_list\" WHERE \"profits_billion\"<14.2 AND \"assets_billion\">'2,467.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: For which industry is the assets smaller than 1,258.1 and the profit smaller than 11.6?" }, { "role": "assistant", "content": "SELECT \"industry\" FROM \"2011_list\" WHERE \"assets_billion\"<'1,258.1' AND \"profits_billion\"<11.6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: What is the average rank for USA when the market value is 407.2 billion?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"2011_list\" WHERE \"headquarters\"='usa' AND \"market_value_billion\">407.2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: What was date was the attendance larger than 875 against Platense?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_3\" WHERE \"attendance\">875 AND \"home\"='platense';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the home team with 3305 in attendance?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_3\" WHERE \"attendance\"=3305;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: What was the highest attendance for the Hispano team?" }, { "role": "assistant", "content": "SELECT MAX(\"attendance\") FROM \"round_3\" WHERE \"home\"='hispano';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What country has the player Tiger Woods?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"final_round\" WHERE \"player\"='tiger woods';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the Money ($) player Loren Roberts has made?" }, { "role": "assistant", "content": "SELECT MAX(\"money\") FROM \"final_round\" WHERE \"player\"='loren roberts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"structures_past_or_present_600_m_and_tal\" (\n \"name\" text,\n \"pinnacle_height\" text,\n \"structure_type\" text,\n \"main_use\" text,\n \"town\" text\n);\n\nQuestion: What is the Pinnacle height for Metcalf, Georgia?" }, { "role": "assistant", "content": "SELECT \"pinnacle_height\" FROM \"structures_past_or_present_600_m_and_tal\" WHERE \"town\"='metcalf, georgia';" } ]
[ { "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: Who placed t7 with a score of 70-71=141?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"second_round\" WHERE \"place\"='t7' AND \"score\"='70-71=141';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What country scored 71-69=140?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"second_round\" WHERE \"score\"='71-69=140';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_sports\" (\n \"rank\" text,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What nation had more than 3 bronze, 0 gold, and a total of 9?" }, { "role": "assistant", "content": "SELECT \"nation\" FROM \"official_sports\" WHERE \"bronze\">3 AND \"gold\"=0 AND \"total\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_eagles_5_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What's the earliest year the new york giants lost at new meadowlands stadium?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"2010s_eagles_5_3\" WHERE \"loser\"='new york giants' AND \"location\"='new meadowlands stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_eagles_5_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: How many years did the new york giants lose at metlife stadium?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"2010s_eagles_5_3\" WHERE \"location\"='metlife stadium' AND \"loser\"='new york giants';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_eagles_5_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: How many years did the new york giants win with a result of 15-7 at lincoln financial field?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"2010s_eagles_5_3\" WHERE \"location\"='lincoln financial field' AND \"winner\"='new york giants' AND \"result\"='15-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_eagles_5_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: Who lost when the philadelphia eagles won at lincoln financial field on september 30?" }, { "role": "assistant", "content": "SELECT \"loser\" FROM \"2010s_eagles_5_3\" WHERE \"location\"='lincoln financial field' AND \"winner\"='philadelphia eagles' AND \"date\"='september 30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010s_eagles_5_3\" (\n \"year\" real,\n \"date\" text,\n \"winner\" text,\n \"result\" text,\n \"loser\" text,\n \"location\" text\n);\n\nQuestion: What date did the new york giants win after 2011?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2010s_eagles_5_3\" WHERE \"winner\"='new york giants' AND \"year\">2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is Official Name, when Census Ranking is 769 of 5,008?" }, { "role": "assistant", "content": "SELECT \"official_name\" FROM \"albert_county_new_brunswick\" WHERE \"census_ranking\"='769 of 5,008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is Status, when Area km 2 is greater than 303.73?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"albert_county_new_brunswick\" WHERE \"area_km_2\">303.73;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"albert_county_new_brunswick\" (\n \"official_name\" text,\n \"status\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"census_ranking\" text\n);\n\nQuestion: What is Area km 2, when Population is greater than 1,395?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km_2\") FROM \"albert_county_new_brunswick\" WHERE \"population\">'1,395';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Place of the Player from Zimbabwe?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='zimbabwe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Place of the Player with a Score of 73-68-71=212?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"score\"='73-68-71=212';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Place of the Player with a +3 To par?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"to_par\"='+3';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Score of Stewart Cink with a To par of +4?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"to_par\"='+4' AND \"player\"='stewart cink';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What T10 Place Player has a Score of 74-73-68=215?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"place\"='t10' AND \"score\"='74-73-68=215';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the maximum pick when WR was the position and Michigan the college, and the overall greater than 255?" }, { "role": "assistant", "content": "SELECT MAX(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"position\"='wr' AND \"college\"='michigan' AND \"overall\">255;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name?" }, { "role": "assistant", "content": "SELECT SUM(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"position\"='db' AND \"name\"='jeff welch' AND \"pick\"<21;" } ]
[ { "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\" real,\n \"finish\" text\n);\n\nQuestion: What is Player, when Year(s) Won is 1978 , 1985?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"year_s_won\"='1978 , 1985';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5?" }, { "role": "assistant", "content": "SELECT AVG(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"college\"='purdue' AND \"round\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?" }, { "role": "assistant", "content": "SELECT MAX(\"pick\") FROM \"washington_redskins_draft_history\" WHERE \"position\"='te' AND \"round\"<2;" } ]