text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What shows for Playoffs when the Open Cup shows as did not qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the highest points value for 1962, in the 125cc class, and with 0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What is the highest points value for the 500cc class in years after 1962 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: For Team AJS, what is the total number of points for drivers with 0 wins?...
<|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 year had 0 points and an AGS JH23B chassis? <|assistant|> SELECT "ye...
<|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: How many points does the year after 1986 with a AGS JH23B 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: How many points did the Tyrrell Racing Organisation have? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: September 23, 1973 landed on which week of the season? <|assistant|> SELECT "week" FROM "sch...
<|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's the lowest Gold if the Rank is over 4 but the Total is less than 1? <|as...
<|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's the highest bronze with a less than 1 Rank? <|assistant|> SELECT MAX("br...
<|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's the average total if the Bronze is 5 and the Silver is less than 4? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "106_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: How many Votes, when the Residence is Halifax...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "106_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the Riding, when the Rank is 4th? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "106_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the lowest number of Votes, when the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "106_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the Candidate's Name, when the Votes ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "106_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the Occupation, when the Candidate's ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Name the most cuts made with top-25 more than 4 and top 5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Name the top-25 with wins less than 1 and events of 12 <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Who was the away team when the attendance was 7,891? <|assistant|> SELECT "aw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What was the score of the game when the attendance was 1,644? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Who was the away team when the home team was Lincoln City? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What was the score of the game when the home team was Lincoln City? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Who was the away team when the attendance was 7,891? <|assistant|> SELECT "aw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_results" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What is the most amount of points for a team before 1983? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_results" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What team has 4 points and a Chassis of march 82/83c? <|assistant|> SELECT "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_results" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What engine was used by Curb Motorsports after 1982 that had 11 points? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cart_results" ( "year" real, "team" text, "chassis" text, "engine" text, "rank" text, "points" real ); Question: What is the Engine used before 1983? <|assistant|> SELECT "engine" FROM "cart_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "wickets" real, "runs" real, "average" real, "career" text ); Question: Name the total number of average for wickets less than 265, runs less than 45...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "wickets" real, "runs" real, "average" real, "career" text ); Question: Name the total number of average for wickets more than 537, career of 1899/00...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "wickets" real, "runs" real, "average" real, "career" text ); Question: Name the least average with wickets more than 265 and career of 1888/89-1913/...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "wickets" real, "runs" real, "average" real, "career" text ); Question: Name the total number of matches with wickets less than 537 and career of 189...
<|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" real, "series" text ); Question: Can you tell me the Opponent that has the Series of 4-2? <|assistant|> SELEC...
<|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 to par of the player with a t4 place and a score of 75-69-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which entrant scored less than 8 points and used a Maserati ch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which entrant, with an Offenhauser L4 engine and a Kurtis Kraf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What type of engine did the Fuel Injection entrant use? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the average number of points for an Offenhauser L4 eng...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "republican_primary" ( "poll_source" text, "date_s_administered" text, "tom_campbell" text, "meg_whitman" text, "steve_poizner" text, "peter_foy" text ); Question: What poll had Steve Poizner ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "republican_primary" ( "poll_source" text, "date_s_administered" text, "tom_campbell" text, "meg_whitman" text, "steve_poizner" text, "peter_foy" text ); Question: When did Meg Whitman get 60%...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text ); Question: How many players were drafted from the Boston Cannons in the round? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text ); Question: Which round was a player from the Long Island Lizards drafted in first? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "team" text ); Question: Dave Curry has what Nationality? <|assistant|> SELECT "nationality" FROM "ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Name the manufacturer with grid of 11 <|assistant|> SELECT "manufacturer"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Name the manufacturer for grid more than 18 and laps more than 1 with tir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Name the laps for suzuki and time/retired of +1:02.804 <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Name the sum of laps for 12 grids <|assistant|> SELECT SUM("laps") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election_results_1945_2000" ( "election" real, "num_of_candidates_nominated" real, "num_of_seats_won" real, "num_of_total_votes" real, "pct_of_popular_vote" text ); Question: Name the most # of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was Jack McGrath's finish number in 1954? <|assistant|> SELECT "finish" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What place did Jack McGrath start in when he received a qual score of 141.033?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was Jack McGrath's rank in 1955 when he started at 3 and finished at 26? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, "may_5" text, "may_12" text, "may_19" text, "may_26" text, "final_poll" text ); Question: Which pre-season has May 5 of 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, "may_5" text, "may_12" text, "may_19" text, "may_26" text, "final_poll" text ); Question: Which March 3 has a Poll of bas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_movement" ( "poll" text, "pre_season" text, "mar_3" text, "may_5" text, "may_12" text, "may_19" text, "may_26" text, "final_poll" text ); Question: Which pre-season has a Mar. 3 o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who is the opponent on September 9, 1979? <|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, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the sum of the week for the Denver Broncos? <|assistant|> SELECT SUM("week") FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the attendance number for December 2, 1979? <|assistant|> SELECT SUM("attendance") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Name the term in office for liberal and state of sa for ian mclachlan <|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, "attendance" real, "record" text ); Question: What was the record for July 26? <|assistant|> SELECT "record" FROM "game_lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); Question: Played that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); Question: B.P. of 0, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); Question: Pts Agst of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "truck_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: What is the most number of rounds th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "truck_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: Who was the crew chief for the team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "truck_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: Who was the driver for crew chief Ni...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "part_time_teams" ( "team" text, "truck_s" text, "driver_s" text, "primary_sponsor_s" text, "owner_s" text, "crew_chief" text, "rounds" real ); Question: What is the truck used by Brett Moff...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wildcats_in_the_nba" ( "position" text, "name" text, "height" text, "weight_lbs" real, "hometown" text, "draft_year" real, "pick" text, "all_stars" text, "nba_championships" text, "nba...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wildcats_in_the_nba" ( "position" text, "name" text, "height" text, "weight_lbs" real, "hometown" text, "draft_year" real, "pick" text, "all_stars" text, "nba_championships" text, "nba...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|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: Which opponent has a record of 44-28? <|assistant|> SELECT "opponent" FROM "...
<|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: Which opponent has an attendance of 40,560? <|assistant|> SELECT "opponent" ...
<|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: Which loss was on June 13? <|assistant|> SELECT "loss" FROM "game_log" WHERE...
<|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 is the attendance that has a record of 43-28? <|assistant|> SELECT "att...
<|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 date of the record of 43-28? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "points" real, "goalsfor" real, "goalsagainst" real ); Question: Goalsagainst that has a Points of 108, and a Lost smaller than 14 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "points" real, "goalsfor" real, "goalsagainst" real ); Question: Lost of 42, and a Goalsfor larger than 195 contains how many numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "points" real, "goalsfor" real, "goalsagainst" real ); Question: Season of 2002–03, and a Lost larger than 14, what is the lowest g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "points" real, "goalsfor" real, "goalsagainst" real ); Question: Goalsagainst of 285, and a Season of 2006–07, and a Games smaller ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "season" text, "games" real, "lost" real, "points" real, "goalsfor" real, "goalsagainst" real ); Question: Goals for of 288, and Points smaller than 85 what is the highest g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signed_offer_sheets" ( "player" text, "date" text, "original_team" text, "offer_team" text, "result" text ); Question: What player originally played for the Los Angeles Kings? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signed_offer_sheets" ( "player" text, "date" text, "original_team" text, "offer_team" text, "result" text ); Question: What Offer Team has a date of July 29, 1994? <|assistant|> SELECT "offer_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signed_offer_sheets" ( "player" text, "date" text, "original_team" text, "offer_team" text, "result" text ); Question: What is the Result that has the New York Rangers as the Offer Team and Ada...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signed_offer_sheets" ( "player" text, "date" text, "original_team" text, "offer_team" text, "result" text ); Question: What date has Vancouver Canucks as the original team, Ryan Kesler as the p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signed_offer_sheets" ( "player" text, "date" text, "original_team" text, "offer_team" text, "result" text ); Question: What was David Backes' Offer Team? <|assistant|> SELECT "offer_team" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "signed_offer_sheets" ( "player" text, "date" text, "original_team" text, "offer_team" text, "result" text ); Question: What is the result of Chris Gratton and Philadelphia Flyers as the Offer T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "game" real, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: Which game had an attendance of 5,000 and was away? <|assistant|> SELECT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" real, "date" text, "name" text, "race" text, "method" text, "offense" text ); Question: When was the date in 1786? <|assistant|> SELECT "date" FROM "history" WHERE "year"=17...
<|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" real, "record" text ); Question: How low is the Attendance that has an Opponent of devil rays and a Date of m...
<|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" real, "record" text ); Question: How high is the Attendance with a Record of 29-25? <|assistant|> SELECT MAX(...
<|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" real, "record" text ); Question: Which Opponent has a lost of wells (6-2)? <|assistant|> SELECT "opponent" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoffs" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the team 2 with a 0-0 2nd leg? <|assistant|> SELECT "team_2" FROM "relegatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_playoffs" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the team 1 with a (g14)morolo team 2? <|assistant|> SELECT "team_1" FROM "re...
<|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: What is the average Total, when the value for Silver is less than 1, when the v...
<|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: What is the average Total, when the Nation is Sweden, and when the value for Br...
<|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: What is the average value for Gold, when the value for Silver is greater than 2...
<|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: What is the value for Gold, when the value for Bronze is less than 0? <|assista...