text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_list" ( "rank" real, "company" text, "headquarters" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Nation of japan, and a Silver larger than 2? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Silver has a Rank of 1, and a Total smaller than 11? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Nation of united states, and a Bronze larger than 3? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_a_partnership_records" ( "wicket" text, "runs" text, "batsmen" text, "opponent" text, "venue" text, "season" text ); Question: Where did jamie cox & daniel marsh play against queensland?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_a_partnership_records" ( "wicket" text, "runs" text, "batsmen" text, "opponent" text, "venue" text, "season" text ); Question: Where were jamie cox & scott kremerskothen paired? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_a_partnership_records" ( "wicket" text, "runs" text, "batsmen" text, "opponent" text, "venue" text, "season" text ); Question: Who were the batsmen paired for wicket 7? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_a_partnership_records" ( "wicket" text, "runs" text, "batsmen" text, "opponent" text, "venue" text, "season" text ); Question: How many runs did they get against new south wales in 2002/...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_a_partnership_records" ( "wicket" text, "runs" text, "batsmen" text, "opponent" text, "venue" text, "season" text ); Question: What season did they play queensland at wicket 4? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "title" text, "peak_position" real, "weeks" text, "sales" real ); Question: What was the Peak Position on July 11, 2001? <|assistant|> SELECT "peak_position" FROM "singl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "title" text, "peak_position" real, "weeks" text, "sales" real ); Question: On December 12, 2001, how many weeks had the single been in its position? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What is the nationality of the Team Purdue? <|assistant|> SELECT "natio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What is the nationality of the Team Georgia Tech? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); Question: What is the nationality of the forward position on the Grizzlies in 201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third_place" text ); Question: Who was the runner-up at the event held in Tartu, Estonia? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third_place" text ); Question: For the event held in Tartu, Estonia, what is the name of the runner-up? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third_place" text ); Question: Who took third place in 2012? <|assistant|> SELECT "third_place" FROM "indivi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_champions" ( "year" real, "venue" text, "winner" text, "runner_up" text, "third_place" text ); Question: In what year was this event held in Oslo, Norway? <|assistant|> SELECT "year"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_foreign_ministers" ( "name" text, "party" text, "tenure" text, "head_s_of_government" text, "ministerial_title" text ); Question: What is the head of government for Don Stephen Senanaya...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: Which team is in 14th position? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: Which position has a Year larger than 1997, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is 2nd Leg, when Team #2 is "San Lorenzo"? <|assistant|> SELECT "2nd_leg" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "voltage_range" text, "socket" text, "release_date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "voltage_range" text, "socket" text, "release_date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "voltage_range" text, "socket" text, "release_date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "voltage_range" text, "socket" text, "release_date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "voltage_range" text, "socket" text, "release_date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standard_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "voltage_range" text, "socket" text, "release_date" text ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Who are the players that placed t2? <|assistant|> SELECT "player" FROM "first_round" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Which country is Lee Trevino from? <|assistant|> SELECT "country" FROM "first_round" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Which player(s) is from South Africa? <|assistant|> SELECT "player" FROM "first_round" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "mlb_club" text, "record" text, "finish" text, "manager" text ); Question: what is the record when the year is after 1992, manager is tom kotchman and finish...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "mlb_club" text, "record" text, "finish" text, "manager" text ); Question: what is the finish when the manager is tom kotchman and record is 43-33? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "mlb_club" text, "record" text, "finish" text, "manager" text ); Question: what is the finish when the manager is tom kotchman and the record is 40-36? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "mlb_club" text, "record" text, "finish" text, "manager" text ); Question: who is the manager when the year is before 1994 and finish is 5th? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" real, "mlb_club" text, "record" text, "finish" text, "manager" text ); Question: what is the record when the year is 2011? <|assistant|> SELECT "record" FROM "year...
<|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" real, "finish" text ); Question: What is Player, when Total is "294", and when Year(s) Won is "1955"? ...
<|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" real, "finish" text ); Question: What is Player, when To Par is less than 14? <|assistant|> SELECT "pl...
<|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" real, "finish" text ); Question: What is To Par, when Player is "Tommy Bolt"? <|assistant|> SELECT "to...
<|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" real, "finish" text ); Question: What is the sum of Total, when Player is "Tommy Bolt"? <|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" real, "finish" text ); Question: What is the total number of Total, when To Par is "7"? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Which award was won when the nomination was Senses Around? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: What was the nomination in a year earlier than 2009? <|assistant|> SELECT "nom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Which award is for the category Best New Artist? <|assistant|> SELECT "award" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: What is the earliest year with a category of Top 10 Selling Mandarin Albums of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "discipline" text, "championship" text, "circuit" text, "event" text, "session" text ); Question: For the USAC National Championship, what is the Discipline? <|assistant|> SELECT "discipli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "discipline" text, "championship" text, "circuit" text, "event" text, "session" text ); Question: In the Indianapolis Sweepstakes race session, what is the championship? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "j" ( "discipline" text, "championship" text, "circuit" text, "event" text, "session" text ); Question: What circuit is the Sprint Cup series championship? <|assistant|> SELECT "circuit" FROM "j...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What were the Results for 25,000 Attendance? <|assistant|> SELECT "result" FROM "schedule" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text ); Question: What was the result on 10/06/1934? <|assistant|> SELECT "result" FROM "schedule" WHERE "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_teams" ( "club" text, "home_city" text, "stadium" text, "founded" real, "seasons_in_prsl" text ); Question: What year was the team Club of atlético de san juan fc who plays at hiram bith...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fbs_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power" text, "location" text ); Question: What is the Branding of the Iloilo City Frequency with a Power of 10 Kw? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fbs_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power" text, "location" text ); Question: What is the Power of the Frequency with a Callsign of DXLL? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fbs_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power" text, "location" text ); Question: What is the Frequency in Davao City? <|assistant|> SELECT "frequency" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fbs_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power" text, "location" text ); Question: What is the Branding with a Callsign DWLL? <|assistant|> SELECT "branding" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fbs_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power" text, "location" text ); Question: What is the Branding of the Metro Manila Frequency with a Callsign of DWBL? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fbs_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power" text, "location" text ); Question: What is the Location of the Frequency with a Callsign of DXBL? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chasma" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: What name in a year after 1997 has a longitude of 213.0e? <|assistant|> SELECT "name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chasma" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); Question: How many years correspond to longitude of 36.8e and diameter greater than 697? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); Question: What was the pick # for a center picked before round 6? <|assistant|> SELECT COUNT("pick_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "participating_teams" ( "seed" real, "team" text, "league" text, "notes" text, "eliminated_at" text ); Question: What team with a seed value greater than 7 has a note that they were an NCRAA cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "date_of_release" real, "title" text, "label" text, "oricon_peak" real, "riaa_cert" text ); Question: WHAT IS THE ORICON PEAK NUMBER WITH AN ATLANTIC LABEL, SUBHUMAN RACE, LATE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "date_of_release" real, "title" text, "label" text, "oricon_peak" real, "riaa_cert" text ); Question: WHAT LABEL HAD A RELEASE DATE OF 1991? <|assistant|> SELECT "label" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "date_of_release" real, "title" text, "label" text, "oricon_peak" real, "riaa_cert" text ); Question: WHAT IS THE AVERAGE DATE OF RELEASE FOR THICKSKIN? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "location" text, "founded" real, "type" text, "enrollment" real, "nickname" text, "joined" real, "left" real, "current_conference" text ); Question: What is the lowest e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text ); Question: Which season was there a game with the score of 1:3 played at the venue of national stadium, mald...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text ); Question: What was the venue of the match where the score was 1:3 and team 2 was binh duong? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text ); Question: What was the score of the game when team 2 was club valencia? <|assistant|> SELECT "score" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text ); Question: What was the venue of the match where team 2 was pea and the score was 1:3? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_top_10_renewable_electricity_produ" ( "country" text, "year" real, "total" real, "hydroelectricity" real, "wind_power" real, "biomass_and_waste" text, "solar" real ); Question: In 201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_top_10_renewable_electricity_produ" ( "country" text, "year" real, "total" real, "hydroelectricity" real, "wind_power" real, "biomass_and_waste" text, "solar" real ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_top_10_renewable_electricity_produ" ( "country" text, "year" real, "total" real, "hydroelectricity" real, "wind_power" real, "biomass_and_waste" text, "solar" real ); Question: In 201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_top_10_renewable_electricity_produ" ( "country" text, "year" real, "total" real, "hydroelectricity" real, "wind_power" real, "biomass_and_waste" text, "solar" real ); Question: What c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: Home for away of hispano? <|assistant|> SELECT "home" FROM "round_13" WHERE "away"='hispano';<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Which Position has a Pick # smaller than 23, and a Player of garrett sutherland? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Name the CFL Team which has a Player of chris evraire? <|assistant|> SELECT "cfl_team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Name The Player who has a Pick # of 27? <|assistant|> SELECT "player" FROM "round_fou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Name the Player who has a CFL Team of toronto? <|assistant|> SELECT "player" FROM "ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Name the Pick # which has a Position of lb, and a CFL Team of winnipeg? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: WHAT IS THE SUM OF ATTENDANCE FOR DETROIT, WHEN POINTS ARE L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "attempts" real, "yards" real, "avg_yards" real, "long" real, "touchdowns" real ); Question: What is the lowest Touchdowns, when Player is Andrew Glover, and when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "attempts" real, "yards" real, "avg_yards" real, "long" real, "touchdowns" real ); Question: What is the average Touchdowns, when Yards is less than 293, and when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "attempts" real, "yards" real, "avg_yards" real, "long" real, "touchdowns" real ); Question: What is the total number of Attempts, when Touchdowns is 6? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is Venue, when Extra is Pentathlon? <|assistant|> SELECT "venue" FROM "achievements" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is the highest Year, when Extra is Pentathlon? <|assistant|> SELECT MAX("year") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is the sum of Year, when Result is 9th? <|assistant|> SELECT SUM("year") FROM "achiev...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is Tournament, when Result is 2nd, and when Year is 2009? <|assistant|> SELECT "tourn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What is Result, when Venue is Götzis , Austria? <|assistant|> SELECT "result" FROM "achiev...
<|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 label does Germany have? <|assistant|> SELECT "label" FROM "release_history" WHERE "...
<|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 region has the Chrysalis label, and a Catalog of chr 1047? <|assistant|> SELECT "reg...
<|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: When did the United Kingdom format a stereo LP? <|assistant|> SELECT "date" 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 region goes along with January 1974? <|assistant|> SELECT "region" 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 label from 1973 that has a catalog number of l 35023? <|assistant|> SELECT "l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "driver" text, "points" real, "races" real, "wins" text, "second" text, "third" text ); Question: How many wins did the driver with 1 second and more than 12 races have? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gp_gs" real, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: What is the lowest Loss number when the Gain is less than 61 and the Avg/G is 6? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "name" text, "gp_gs" real, "gain" real, "loss" real, "long" real, "avg_g" real ); Question: What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visiting team on April 6? <|assistant|> SELECT "visito...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the date of the game that led to a 4-3 record? <|assistan...