text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "downloadable_content" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "release_date" text, "single_pack" text ); Question: What is the name of the artist with a Sing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the record at the game that had a loss of Lemanczyk (0–1)? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Date of october 8 happened at what time? <|assistant|> SELECT "time" FROM "summary" WHERE "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Game 1's sum of attendance is? <|assistant|> SELECT SUM("attendance") FROM "summary" WHERE "gam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the finish of the winner of the 2000 Masters? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: For the player from Fiji, what was his finish? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: For the player finishing at +8, what is his nationality? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the score of the game that had a record of 52–103? <|assistant|> SELECT "score" FROM "ga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the date of the game when the record was 53–104? <|assistant|> SELECT "date" FROM "game_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the record at the game that had a loss of Huffman (6–18)? <|assistant|> SELECT "record" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 8:00 of kid nation what is at 10:00? <|assistant|> SELECT "10_0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 10:00 of the simple life what is the 9:00? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 10:00 of le journal du soir what is the 9:00? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 7:30 of access hollywood what is the 10:00? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wednesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text, "10_30" text ); Question: for the 9:00 of bionic woman what is the 8:30? <|assistant|> SELECT "8_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Which format is released on August 29, 1998? <|assistant|> SELECT "format" FROM "release_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the catalog number for the January 25, 1987 release? <|assistant|> SELECT "catalo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Which format is released on May 27, 2009? <|assistant|> SELECT "format" FROM "release_his...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the catalog number of the May 27, 2009 release? <|assistant|> SELECT "catalog" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What is the release date of a CD with the catalog number ALCA-9206? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Which format is released on May 27, 2009? <|assistant|> SELECT "format" FROM "release_his...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "player" text, "years" text, "games" real, "ppg_avg" real, "total_points" real ); Question: What was the average of points with ranks smaller than 7 but with total poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the sum of the roll with an area of Waikaka? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the roll number for East Gore School? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the lowest decile with 1-6 years and area of Maitla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which gender has 7-15 years? <|assistant|> SELECT "gender" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the gender for Otama? <|assistant|> SELECT "gender"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "gore_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the authority for roll of 96? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southland_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: When is a Roll of 9? <|assistant|> SELECT "years" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southland_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the Area with 26 in Roll <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: For nations with more than 6 silvers and more than 10 golds, what is the lowest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest rank for nations with more than 3 bronze medals and more tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which country has the most bronze and has more than one silver, 1 gold, and le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation has the most bronze medals with over 11 total medals? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals does Cuba have? <|assistant|> SELECT SUM("silver") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Where was the game that the Indianapolis Colts lost 24-14? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: On what date was the game that the Indianapolis Colts lost in 2004? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Which team won against the New England Patriots 40-21? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What was the date of the game played at Gillette Stadium with a score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s_patriots_8_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What year was the game that ended with a score of 24-14? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score of the 3-0 Win result? <|assistant|> SELECT "score" FROM "inter...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the result of the game from 10 October 2009? <|assistant|> SELECT "result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the name of the competition that has a score of 2-0? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which Men's singles has a Mixed doubles of kai abraham pet...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which women's doubles has a Year of 1992? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which year has a Men's doubles of marcus ellis peter mills...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the visitor for home of dallas <|assistant|> SELECT "vis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the period for south korea with peak position of #1 <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the period for south korea with peak position of #24 <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the period for Chart of g-music j-pop/k-pop chart <|assistant|> SELECT "pe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chart_performance" ( "country" text, "chart" text, "period" text, "peak_position" text, "sales" text ); Question: Name the sales with peak position of #24 <|assistant|> SELECT "sales" FROM "cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "round" text, "club" text, "home" text, "away" text, "aggregate" text ); Question: Which aggregate has ajax as the club? <|assistant|> SELECT "aggregate" FROM "european_recor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: How many attended on march 1? <|assistant|> SELECT AVG("atten...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Who was the visitor on march 21? <|assistant|> SELECT "visito...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Who was the cyclist from Belgium? <|assistant|> SELECT "cyclist" FROM "general_stand...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: What is the nation of the person who was from the CSC team? <|assistant|> SELECT "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Who is the cyclist from the GCE team and had UCI points under 20? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Which nation is Danilo di Luca from? <|assistant|> SELECT "nation" FROM "general_sta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: Which nation is Robert Gesink from? <|assistant|> SELECT "nation" FROM "general_stan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_standings" ( "cyclist" text, "nation" text, "team" text, "time" text, "uci_points" real ); Question: What is the sum of UCI points for Kim Kirchen? <|assistant|> SELECT SUM("uci_points"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "years" text, "games" real, "ast_avg" real, "total_assists" real ); Question: How many games for the player that has an over 2.7 assist average and over...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assists" ( "rank" real, "player" text, "years" text, "games" real, "ast_avg" real, "total_assists" real ); Question: How many assists does cam long average in under 132 games? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadiums" ( "rank" real, "stadium" text, "total_capacity" text, "seating_capacity" real, "location" text ); Question: Where is the Stadium of Gortakeegan located? <|assistant|> SELECT "location...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadiums" ( "rank" real, "stadium" text, "total_capacity" text, "seating_capacity" real, "location" text ); Question: What is the lowest ranking seating capacity smaller than 7,485, and a stadi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: In 1972, how many points did the entrant with the March 721G Chassis have?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: In 1971, how many total points did the entrant stp march have? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which Chassis was featured in the year 1971? <|assistant|> SELECT "chassis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_stats" ( "player" text, "l_apps" real, "c_apps" real, "total_apps" real, "total_g" real ); Question: What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the lowest round for Southern College? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Who had the placekicker position with a round abov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_5_5" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the partner of the team that faced the guillermo garcía-lóp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_5_5" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What are the dates where the opponent was guillermo garcía-lópez alb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the earliest year in the 125cc class with more than 102 po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: Which team had fewer than 167 points in the 250cc class? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: For years before 1996, having a rank of 3rd in the 125cc class, wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: Who did the Raiders play in week 12? <|assistant|> SELECT "opponent" FROM "schedule" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: How many people were at the game that took place at the Kingdome? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_championship" ( "team" text, "car_no" text, "mnz_spr" text, "mnz_fea" text, "spa_spr" text, "spa_fea" text, "mon_fea" text, "sil_spr" text, "sil_fea" text, "hun_spr" text, "hun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_sports_teams" ( "club" text, "sport" text, "league" text, "venue" text, "championships_years" text ); Question: Which years did the Tampa Bay Storm win the Championships? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is the height of the person born before 1975? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sources" ( "name" text, "party" text, "province" text, "term_expires" real, "term_of_office" text ); Question: How many times did Ken Wright expired in North Western? <|assistant|> SELECT COUNT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "species" text, "order" text, "family" text, "species_worldwide" real, "species_on_r_union" real ); Question: Which species on Réunion island is part of the procellariiformes order and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "species" text, "order" text, "family" text, "species_worldwide" real, "species_on_r_union" real ); Question: How many species does the sternidae family have worldwide with less than 9...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "species" text, "order" text, "family" text, "species_worldwide" real, "species_on_r_union" real ); Question: How many species on Réunion do the dromadidae family have with a worldwide...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2010 with tournament of grand slam tournaments <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2008 with 2010 of 2r and wimbledon tournament <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2013 for 2010 of 1r <|assistant|> SELECT "2013" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ); Question: Name the 2010 for 2008 of 1r and tournament of us open <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have a Decile of 4, an Authority of state, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have a Decile smaller than 6, an Area of te ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the average Decile with a state authority and a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which years have an Area of rangitoto? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "waitomo_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Which gender has a Name of rangitoto school? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the t o par for Ralph Guldahl? <|assistant|> SELECT "to_par" F...