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 \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team was the away team when they played at lake oval?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_5\" WHERE \"venue\"='lake oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many people were in the crowd when North Melbourne was the home team?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"round_5\" WHERE \"home_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_backs\" (\n \"player\" text,\n \"car\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is Mark Grieb's average when his TDs are smaller than 2?" }, { "role": "assistant", "content": "SELECT SUM(\"avg\") FROM \"running_backs\" WHERE \"player\"='mark grieb' AND \"td_s\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_backs\" (\n \"player\" text,\n \"car\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is Craig Whelihan's average when his yards are smaller than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"avg\") FROM \"running_backs\" WHERE \"player\"='craig whelihan' AND \"yards\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"touchdowns\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"avg\" real,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: Which largest average had 1229 yards?" }, { "role": "assistant", "content": "SELECT MAX(\"avg\") FROM \"touchdowns\" WHERE \"yards\"=1229;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the constructor where the circuit is Silverstone?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"non_championship_race_results\" WHERE \"circuit\"='silverstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: Who is the Winning Driver in the race viii gran premio di siracusa?" }, { "role": "assistant", "content": "SELECT \"winning_driver\" FROM \"non_championship_race_results\" WHERE \"race_name\"='viii gran premio di siracusa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_championship_race_results\" (\n \"race_name\" text,\n \"circuit\" text,\n \"date\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"report\" text\n);\n\nQuestion: What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"non_championship_race_results\" WHERE \"winning_driver\"='stirling moss' AND \"race_name\"='vi grand prix de caen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_easternmost_high_summits_of_the_rock\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"state\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Which state is the location of 39.1178\u00b0n 106.4454\u00b0w in?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"the_easternmost_high_summits_of_the_rock\" WHERE \"location\"='39.1178\u00b0n 106.4454\u00b0w';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_easternmost_high_summits_of_the_rock\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"state\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: What is the highest rank Mount Elbert has?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"the_easternmost_high_summits_of_the_rock\" WHERE \"mountain_peak\"='mount elbert';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_easternmost_high_summits_of_the_rock\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"state\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: What is the mountain range at 37.3934\u00b0n 104.9201\u00b0w?" }, { "role": "assistant", "content": "SELECT \"mountain_range\" FROM \"the_easternmost_high_summits_of_the_rock\" WHERE \"location\"='37.3934\u00b0n 104.9201\u00b0w';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_easternmost_high_summits_of_the_rock\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"state\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: What is the location of Blanca Peak?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"the_easternmost_high_summits_of_the_rock\" WHERE \"mountain_peak\"='blanca peak';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_easternmost_high_summits_of_the_rock\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"state\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: Which state is West Spanish Peak in?" }, { "role": "assistant", "content": "SELECT \"state\" FROM \"the_easternmost_high_summits_of_the_rock\" WHERE \"mountain_peak\"='west spanish peak';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"the_easternmost_high_summits_of_the_rock\" (\n \"rank\" real,\n \"mountain_peak\" text,\n \"state\" text,\n \"mountain_range\" text,\n \"location\" text\n);\n\nQuestion: What is the ranked 5 mountain range?" }, { "role": "assistant", "content": "SELECT \"mountain_range\" FROM \"the_easternmost_high_summits_of_the_rock\" WHERE \"rank\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_representatives\" (\n \"name\" text,\n \"took_office\" text,\n \"left_office\" text,\n \"party\" text,\n \"district_residence\" text\n);\n\nQuestion: Name of choice b. Randell is the name of which District Residence?" }, { "role": "assistant", "content": "SELECT \"district_residence\" FROM \"list_of_representatives\" WHERE \"name\"='choice b. randell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_representatives\" (\n \"name\" text,\n \"took_office\" text,\n \"left_office\" text,\n \"party\" text,\n \"district_residence\" text\n);\n\nQuestion: Who has a Took Office of march 4, 1903?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list_of_representatives\" WHERE \"took_office\"='march 4, 1903';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_representatives\" (\n \"name\" text,\n \"took_office\" text,\n \"left_office\" text,\n \"party\" text,\n \"district_residence\" text\n);\n\nQuestion: Which Took Office that has a Party of democrat, under the name of John Hancock" }, { "role": "assistant", "content": "SELECT \"took_office\" FROM \"list_of_representatives\" WHERE \"party\"='democrat' AND \"name\"='john hancock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_representatives\" (\n \"name\" text,\n \"took_office\" text,\n \"left_office\" text,\n \"party\" text,\n \"district_residence\" text\n);\n\nQuestion: Who has Took Office of march 4, 1875?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"list_of_representatives\" WHERE \"took_office\"='march 4, 1875';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the record on june 22" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='june 22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"april\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the total number in attendance for when the bulls visited" }, { "role": "assistant", "content": "SELECT COUNT(\"attendance\") FROM \"april\" WHERE \"visitor\"='bulls';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preliminary_competition\" (\n \"state\" text,\n \"interview\" real,\n \"swimsuit\" real,\n \"evening_gown\" real,\n \"average\" real\n);\n\nQuestion: Name the most swimsuit for interview less than 8.46" }, { "role": "assistant", "content": "SELECT MAX(\"swimsuit\") FROM \"preliminary_competition\" WHERE \"interview\"<8.46;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"preliminary_competition\" (\n \"state\" text,\n \"interview\" real,\n \"swimsuit\" real,\n \"evening_gown\" real,\n \"average\" real\n);\n\nQuestion: Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12" }, { "role": "assistant", "content": "SELECT MAX(\"evening_gown\") FROM \"preliminary_competition\" WHERE \"average\"<8.793 AND \"swimsuit\"<8.12 AND \"interview\"=8.51;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_timeline\" (\n \"tournament\" text,\n \"starts\" real,\n \"top_10s\" real,\n \"wins\" real,\n \"earnings\" text\n);\n\nQuestion: On average, how many Starts have Wins that are smaller than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"starts\") FROM \"results_timeline\" WHERE \"wins\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_timeline\" (\n \"tournament\" text,\n \"starts\" real,\n \"top_10s\" real,\n \"wins\" real,\n \"earnings\" text\n);\n\nQuestion: Which of the top-10s has a starts value of 14?" }, { "role": "assistant", "content": "SELECT MAX(\"top_10s\") FROM \"results_timeline\" WHERE \"starts\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results_timeline\" (\n \"tournament\" text,\n \"starts\" real,\n \"top_10s\" real,\n \"wins\" real,\n \"earnings\" text\n);\n\nQuestion: In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"starts\") FROM \"results_timeline\" WHERE \"tournament\"='hsbc champions' AND \"wins\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"full_results\" (\n \"finished\" text,\n \"post\" real,\n \"horse\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"odds\" real\n);\n\nQuestion: Who trained the horse on post 11 with over 36 odds?" }, { "role": "assistant", "content": "SELECT \"trainer\" FROM \"full_results\" WHERE \"odds\">36 AND \"post\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"full_results\" (\n \"finished\" text,\n \"post\" real,\n \"horse\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"odds\" real\n);\n\nQuestion: What is the lowest post number for calvin borel?" }, { "role": "assistant", "content": "SELECT MIN(\"post\") FROM \"full_results\" WHERE \"jockey\"='calvin borel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"full_results\" (\n \"finished\" text,\n \"post\" real,\n \"horse\" text,\n \"jockey\" text,\n \"trainer\" text,\n \"odds\" real\n);\n\nQuestion: What horse for jara?" }, { "role": "assistant", "content": "SELECT \"horse\" FROM \"full_results\" WHERE \"jockey\"='jara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the date when Lebron James (25) was the lead scorer?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"february\" WHERE \"leading_scorer\"='lebron james (25)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Total has a Gold smaller than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"total\") FROM \"medal_table\" WHERE \"gold\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Which Bronze has a Gold smaller than 0?" }, { "role": "assistant", "content": "SELECT AVG(\"bronze\") FROM \"medal_table\" WHERE \"gold\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campos_racing\" (\n \"year\" real,\n \"team_name\" text,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: Which T.C. has a Win of 1, and a Race of 21?" }, { "role": "assistant", "content": "SELECT \"t_c\" FROM \"campos_racing\" WHERE \"wins\"=1 AND \"races\"=21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campos_racing\" (\n \"year\" real,\n \"team_name\" text,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: How many years have Drivers of ben hanley, and Flaps smaller than 0?" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"campos_racing\" WHERE \"drivers\"='ben hanley' AND \"f_laps\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campos_racing\" (\n \"year\" real,\n \"team_name\" text,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: How many Points have Drivers of adri\u00e1n vall\u00e9s, and a Year larger than 2006?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"campos_racing\" WHERE \"drivers\"='adri\u00e1n vall\u00e9s' AND \"year\">2006;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"campos_racing\" (\n \"year\" real,\n \"team_name\" text,\n \"drivers\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"points\" real,\n \"d_c\" text,\n \"t_c\" text\n);\n\nQuestion: How many Poles have Drivers of juan cruz \u00e1lvarez, and FLaps larger than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"poles\") FROM \"campos_racing\" WHERE \"drivers\"='juan cruz \u00e1lvarez' AND \"f_laps\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team at Victoria Park?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_15\" WHERE \"venue\"='victoria park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"number\" real,\n \"name\" text,\n \"builder\" text,\n \"type\" text,\n \"date\" real\n);\n\nQuestion: What is the name of the train numbered less than 6 before 1993?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"locomotives\" WHERE \"number\"<6 AND \"date\"<1993;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"number\" real,\n \"name\" text,\n \"builder\" text,\n \"type\" text,\n \"date\" real\n);\n\nQuestion: What is the name of the bo-bodh train with a number less than 5?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"locomotives\" WHERE \"number\"<5 AND \"type\"='bo-bodh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the record when the visitor is st. louis" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"february\" WHERE \"visitor\"='st. louis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the scory when calgary was visiting?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"february\" WHERE \"visitor\"='calgary';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the home when the visitor was dallas on february 2" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"february\" WHERE \"visitor\"='dallas' AND \"date\"='february 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Name the date for turco decision and home of st. louis" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"february\" WHERE \"decision\"='turco' AND \"home\"='st. louis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ultra_lightweight_manx_grand_prix_provis\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: Which rider had a speed of 104.630mph?" }, { "role": "assistant", "content": "SELECT \"rider\" FROM \"ultra_lightweight_manx_grand_prix_provis\" WHERE \"speed\"='104.630mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ultra_lightweight_manx_grand_prix_provis\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What is the best rank with a time of 1:05.14.10?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"ultra_lightweight_manx_grand_prix_provis\" WHERE \"time\"='1:05.14.10';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: Where was the game played when the final score was 35-62?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"2012\" WHERE \"final_score\"='35-62';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: During the game at Candlestick Park, who was the visiting team?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"2012\" WHERE \"stadium\"='candlestick park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: Which visiting team had a final score of 14-34?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"2012\" WHERE \"final_score\"='14-34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: What was the final score in the game against the Cincinnati Bengals?" }, { "role": "assistant", "content": "SELECT \"final_score\" FROM \"2012\" WHERE \"visiting_team\"='cincinnati bengals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2012\" (\n \"date\" text,\n \"visiting_team\" text,\n \"final_score\" text,\n \"host_team\" text,\n \"stadium\" text\n);\n\nQuestion: Who was the visiting team in the game against the Dallas Cowboys?" }, { "role": "assistant", "content": "SELECT \"visiting_team\" FROM \"2012\" WHERE \"host_team\"='dallas cowboys';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_3_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament has an Outcome of runner-up, and an Opponent of ma\u0161a zec pe\u0161kiri\u010d?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_7_3_4\" WHERE \"outcome\"='runner-up' AND \"opponent\"='ma\u0161a zec pe\u0161kiri\u010d';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_3_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which surface has a Score of 6\u20134, 6\u20132?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_7_3_4\" WHERE \"score\"='6\u20134, 6\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_3_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which surface has a Date of 22 august 2006?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_7_3_4\" WHERE \"date\"='22 august 2006';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_3_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6\u20134, 6\u20132?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_7_3_4\" WHERE \"outcome\"='runner-up' AND \"surface\"='hard' AND \"score\"='6\u20134, 6\u20132';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_3_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What is the outcome with marina erakovic as opponent?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"singles_7_3_4\" WHERE \"opponent\"='marina erakovic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7_3_4\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Which tournament has an Outcome of winner, and a Opponent of dia evtimova?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"singles_7_3_4\" WHERE \"outcome\"='winner' AND \"opponent\"='dia evtimova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"unreleased_songs\" (\n \"title\" text,\n \"author_s\" text,\n \"recorded\" text,\n \"location_s\" text,\n \"time\" text\n);\n\nQuestion: What title runs for 3:22?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"unreleased_songs\" WHERE \"time\"='3:22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"unreleased_songs\" (\n \"title\" text,\n \"author_s\" text,\n \"recorded\" text,\n \"location_s\" text,\n \"time\" text\n);\n\nQuestion: Who wrote the song that runs for 2:22?" }, { "role": "assistant", "content": "SELECT \"author_s\" FROM \"unreleased_songs\" WHERE \"time\"='2:22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What Constructor had 66 Laps?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"classification\" WHERE \"laps\"=66;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: With Laps greater than 78, what is the lowest Grid?" }, { "role": "assistant", "content": "SELECT MIN(\"grid\") FROM \"classification\" WHERE \"laps\">78;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many Laps with a Grid smaller than 11 did John Watson have?" }, { "role": "assistant", "content": "SELECT AVG(\"laps\") FROM \"classification\" WHERE \"driver\"='john watson' AND \"grid\"<11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?" }, { "role": "assistant", "content": "SELECT AVG(\"laps\") FROM \"classification\" WHERE \"driver\"='niki lauda' AND \"grid\"<3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the low grid total for a retired due to steering in under 15 laps?" }, { "role": "assistant", "content": "SELECT MIN(\"grid\") FROM \"race\" WHERE \"time_retired\"='steering' AND \"laps\"<15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the average laps that had a time/retired of +5 laps?" }, { "role": "assistant", "content": "SELECT AVG(\"laps\") FROM \"race\" WHERE \"time_retired\"='+5 laps';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"location\"='wonju chiak indoor gym, south korea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which is the lowest Round with the Opponent, Paul Cahoon and Location, Amsterdam, Netherlands?" }, { "role": "assistant", "content": "SELECT MIN(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='paul cahoon' AND \"location\"='amsterdam, netherlands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which Event has the Opponent, Bernard Ackah?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='bernard ackah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ca_or_11th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: when was the destroyer launched when it was laid down on 14 august 1942?" }, { "role": "assistant", "content": "SELECT \"launched\" FROM \"ca_or_11th_emergency_flotilla\" WHERE \"laid_down\"='14 august 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ca_or_11th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: what is the launched date when the builder is john brown, clydebank?" }, { "role": "assistant", "content": "SELECT \"launched\" FROM \"ca_or_11th_emergency_flotilla\" WHERE \"builder\"='john brown, clydebank';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ca_or_11th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: what is the pennant when the builder is yarrow, scotstoun?" }, { "role": "assistant", "content": "SELECT \"pennant\" FROM \"ca_or_11th_emergency_flotilla\" WHERE \"builder\"='yarrow, scotstoun';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ca_or_11th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: what is the name when the laid down is 28 february 1943?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"ca_or_11th_emergency_flotilla\" WHERE \"laid_down\"='28 february 1943';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ca_or_11th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: when was it commissioned when the destroyer was built by scotts, greenock?" }, { "role": "assistant", "content": "SELECT \"commissioned\" FROM \"ca_or_11th_emergency_flotilla\" WHERE \"builder\"='scotts, greenock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ca_or_11th_emergency_flotilla\" (\n \"name\" text,\n \"pennant\" text,\n \"builder\" text,\n \"laid_down\" text,\n \"launched\" text,\n \"commissioned\" text\n);\n\nQuestion: when was the launched date when the laid down date is 14 august 1942?" }, { "role": "assistant", "content": "SELECT \"launched\" FROM \"ca_or_11th_emergency_flotilla\" WHERE \"laid_down\"='14 august 1942';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"final_score\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record for a week below 13 on July 12?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"season_schedule\" WHERE \"week\"<13 AND \"date\"='july 12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"location\" text,\n \"final_score\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: What location had a final score of W 30 \u2013 5?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"season_schedule\" WHERE \"final_score\"='w 30 \u2013 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which label had a catalog designation of ch-9196?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"catalog\"='ch-9196';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which format's catalog designation was 21-382a?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"catalog\"='21-382a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which catalog had a date year of 1984?" }, { "role": "assistant", "content": "SELECT \"catalog\" FROM \"release_history\" WHERE \"date\"='1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which format was under the London Records label?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"label\"='london records';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which label was in the United Kingdom region?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"region\"='united kingdom';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which date had the catalog designation of ha-m 2230?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"release_history\" WHERE \"catalog\"='ha-m 2230';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"clausura_2006_standings\" (\n \"place_posici_n\" real,\n \"team_equipo\" text,\n \"played_pj\" real,\n \"won_pg\" real,\n \"draw_pe\" real,\n \"lost_pp\" real,\n \"goals_scored_gf\" real,\n \"goals_conceded_gc\" real,\n \"dif\" real,\n \"points_pts\" real\n);\n\nQuestion: What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?" }, { "role": "assistant", "content": "SELECT MAX(\"goals_conceded_gc\") FROM \"clausura_2006_standings\" WHERE \"draw_pe\"=2 AND \"goals_scored_gf\">29 AND \"dif\">15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"clausura_2006_standings\" (\n \"place_posici_n\" real,\n \"team_equipo\" text,\n \"played_pj\" real,\n \"won_pg\" real,\n \"draw_pe\" real,\n \"lost_pp\" real,\n \"goals_scored_gf\" real,\n \"goals_conceded_gc\" real,\n \"dif\" real,\n \"points_pts\" real\n);\n\nQuestion: What is the points for a team with more than 9 wins and more than 40 goals?" }, { "role": "assistant", "content": "SELECT SUM(\"points_pts\") FROM \"clausura_2006_standings\" WHERE \"won_pg\">9 AND \"goals_scored_gf\">40;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the score of the game played in the 2012 Africa Cup of Nations?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='2012 africa cup of nations';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the score of the friendly competition?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='friendly';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What venue was the game played on 9 February 2011 played at?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"date\"='9 february 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"november\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What date did NY Rangers play at home?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"november\" WHERE \"home\"='ny rangers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"november\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the score of Colorado when they were a visitor and had a Smith decision?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"november\" WHERE \"decision\"='smith' AND \"visitor\"='colorado';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"tournament\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"score\" text,\n \"third_place\" text\n);\n\nQuestion: Who is the runner up when the score was 3\u20136, 6\u20133, [10\u20134]?" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"2010\" WHERE \"score\"='3\u20136, 6\u20133, [10\u20134]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"tournament\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"score\" text,\n \"third_place\" text\n);\n\nQuestion: What is the name of the runner up in the Tournament of s\u00e3o paulo?" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"2010\" WHERE \"tournament\"='s\u00e3o paulo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"tournament\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"score\" text,\n \"third_place\" text\n);\n\nQuestion: What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?" }, { "role": "assistant", "content": "SELECT \"third_place\" FROM \"2010\" WHERE \"winner\"='thomas enqvist' AND \"runner_up\"='guy forget';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"tournament\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"score\" text,\n \"third_place\" text\n);\n\nQuestion: What tournament was Thomas Enqvist runner up?" }, { "role": "assistant", "content": "SELECT \"tournament\" FROM \"2010\" WHERE \"runner_up\"='thomas enqvist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"tournament\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"score\" text,\n \"third_place\" text\n);\n\nQuestion: What is the name of the runner up when yevgeny kafelnikov was third place and the score was 3\u20136, 6\u20134, [10\u20133]?" }, { "role": "assistant", "content": "SELECT \"runner_up\" FROM \"2010\" WHERE \"third_place\"='yevgeny kafelnikov' AND \"score\"='3\u20136, 6\u20134, [10\u20133]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"tournament\" text,\n \"winner\" text,\n \"runner_up\" text,\n \"score\" text,\n \"third_place\" text\n);\n\nQuestion: What is the name of the winner when Goran Ivani\u0161evi\u0107 was in third place?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"2010\" WHERE \"third_place\"='goran ivani\u0161evi\u0107';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television\" (\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"call_sign\" text,\n \"name\" text,\n \"network\" text\n);\n\nQuestion: Which analog channel has a digital channel of 4.1?" }, { "role": "assistant", "content": "SELECT \"analog_channel\" FROM \"television\" WHERE \"digital_channel\"='4.1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television\" (\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"call_sign\" text,\n \"name\" text,\n \"network\" text\n);\n\nQuestion: Which digital channel is named Storm Tracker?" }, { "role": "assistant", "content": "SELECT \"digital_channel\" FROM \"television\" WHERE \"name\"='storm tracker';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television\" (\n \"analog_channel\" text,\n \"digital_channel\" text,\n \"call_sign\" text,\n \"name\" text,\n \"network\" text\n);\n\nQuestion: Which analog channel is Fox on?" }, { "role": "assistant", "content": "SELECT \"analog_channel\" FROM \"television\" WHERE \"network\"='fox';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"area_name\" text,\n \"area_headquarters\" text,\n \"area_president_quorum\" text,\n \"first_counselor_quorum\" text,\n \"second_counselor_quorum\" text\n);\n\nQuestion: Name the area president when the area name is south america south" }, { "role": "assistant", "content": "SELECT \"area_president_quorum\" FROM \"list\" WHERE \"area_name\"='south america south';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70" }, { "role": "assistant", "content": "SELECT COUNT(\"grid\") FROM \"race\" WHERE \"time_retired\"='+2 laps' AND \"laps\"<70;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_superlative_academy_award_winner\" (\n \"superlative\" text,\n \"actress\" text,\n \"record_set\" text,\n \"year\" real,\n \"notes\" text\n);\n\nQuestion: What year did Shelley Winters win?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"list_of_superlative_academy_award_winner\" WHERE \"actress\"='shelley winters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_superlative_academy_award_winner\" (\n \"superlative\" text,\n \"actress\" text,\n \"record_set\" text,\n \"year\" real,\n \"notes\" text\n);\n\nQuestion: Which award was won by Gloria Stuart after 1984?" }, { "role": "assistant", "content": "SELECT \"superlative\" FROM \"list_of_superlative_academy_award_winner\" WHERE \"year\">1984 AND \"actress\"='gloria stuart';" } ]