text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What shows for region when the date is february 2006? <|assistant|> SELECT "region" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What shows as the format for catalog 11 135? <|assistant|> SELECT "format" FROM "release_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What is the release Date of the 7" single in Catalog 87184? <|assistant|> SELECT "date" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: In what Region is Catalog number 885 380-1? <|assistant|> SELECT "region" FROM "release_h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text ); Question: What Label is dated April 1986 in 7" single Format in France? <|assistant|> SELECT "label...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison" ( "model" text, "release_date" real, "price" text, "midi_inputs_outputs" text, "sampling_rate" text, "sampling_memory_upgrade_able" text, "sampling_time" text, "storage_method"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison" ( "model" text, "release_date" real, "price" text, "midi_inputs_outputs" text, "sampling_rate" text, "sampling_memory_upgrade_able" text, "sampling_time" text, "storage_method"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison" ( "model" text, "release_date" real, "price" text, "midi_inputs_outputs" text, "sampling_rate" text, "sampling_memory_upgrade_able" text, "sampling_time" text, "storage_method"...
<|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, "record" text ); Question: what team scored on december 19 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='decemb...
<|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, "record" text ); Question: what team scored 5–5–1–1? <|assistant|> SELECT "home" FROM "game_log" WHERE "record"='5–5–1–1';<|e...
<|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, "record" text ); Question: what team scored on november 7 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='novembe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: Which player has rank 1? <|assistant|> SELECT "player" FROM "leaders" WHERE "rank"=1;<|endoftext...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What's the mean number of wins with a rank that's more than 5? <|assistant|> SELECT AVG("wins") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What amount of earnings does Tiger Woods have? <|assistant|> SELECT "earnings" FROM "leaders" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: What is the position number of the club with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: What is the goals for/against of the club wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: What is the highest number of games played of...
<|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: Which date's attendance was more than 35,540? <|assistant|> SELECT "date" 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 smallest attendance number for December 3, 1944? <|assistant|> SELECT MIN("atten...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inde_fran_aise" ( "colony" text, "liberation" text, "de_facto_transfer" text, "treaty_of_cession" text, "de_jure_transfer" text, "merger" text ); Question: When was the Treaty of Cession for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what day was the game in argentina <|assistant|> SELECT "date" FROM "1972" WHERE "opponent"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what city scored 0:0 <|assistant|> SELECT "city" FROM "1972" WHERE "results"='0:0';<|endoftex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1972" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what game was played on june 14 <|assistant|> SELECT "type_of_game" FROM "1972" WHERE "date"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "series" text ); Question: What score has april 28 as the date? <|assistant|> SELECT "score" FROM "playoffs" WHERE "date"='ap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What score has tim duncan (27) as the leading scorer? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What visitor has tim duncan (16) as the leading scorer? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What were Will Rackley's total rounds? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which cornerback has the lowest overall and a pi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which cornerback has the highest round? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_14_9_5" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What was the outcome on 25 october 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_14_9_5" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which opponent was a runner-up on 2 ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_14_9_5" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which championship had an oppenent of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_up_additional_member_system_results" ( "party" text, "votes" real, "share" text, "change" text, "seats" text ); Question: Name the change with share of 2.9% <|assistant|> SELECT "change" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_up_additional_member_system_results" ( "party" text, "votes" real, "share" text, "change" text, "seats" text ); Question: Name the change for english democrats <|assistant|> SELECT "change"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_up_additional_member_system_results" ( "party" text, "votes" real, "share" text, "change" text, "seats" text ); Question: Name the average votes for one london <|assistant|> SELECT AVG("vot...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Which Country has a Rank of 5? <|assistant|> SELECT "country" FROM "leaders" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Which Earnings ($) is the lowest one that has a Rank of 1, and Events smaller t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: How many earnings have Wins larger than 3? <|assistant|> SELECT SUM("earnings")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "events" real, "wins" real ); Question: Which Player has 4 Wins? <|assistant|> SELECT "player" FROM "leaders" WHERE "wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "class" text, "team_name" text, "bike" text, "riders" text, "races" text, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" text, "pos" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "class" text, "team_name" text, "bike" text, "riders" text, "races" text, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" text, "pos" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "melodifestivalen_1997" ( "draw" real, "artist" text, "song" text, "points" real, "place" text ); Question: What is the average of points for 8th place with draw more than 8? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have a Game smaller than 8, and a Record of 1–0–0? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has a Record of 5–3–1, and an October smaller than 29? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has a Score of 3–4? <|assistant|> SELECT MIN("game") FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has a Record of 4–2–1, and Points larger than 9? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Nationality has a Position of defense, and a Player of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Nationality has a Position of left wing? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Player has a Position of forward? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_poll" ( "week_1_sept_2" text, "week_2_sept_7" text, "week_3_sept_14" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_13_nov_23" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_poll" ( "week_1_sept_2" text, "week_2_sept_7" text, "week_3_sept_14" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_13_nov_23" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_poll" ( "week_1_sept_2" text, "week_2_sept_7" text, "week_3_sept_14" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_13_nov_23" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_poll" ( "week_1_sept_2" text, "week_2_sept_7" text, "week_3_sept_14" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_13_nov_23" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_poll" ( "week_1_sept_2" text, "week_2_sept_7" text, "week_3_sept_14" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_13_nov_23" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaches_poll" ( "week_1_sept_2" text, "week_2_sept_7" text, "week_3_sept_14" text, "week_5_sept_28" text, "week_6_oct_5" text, "week_7_oct_12" text, "week_10_nov_2" text, "week_13_nov_23" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the highest round of Tommy Allman, who had a pick less than 40? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Who was the back player with a pick less than 183 from the round greater than 12? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the total number of rounds of the end player with a pick number greater than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the highest pick of the back player from round 28? <|assistant|> SELECT MAX(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is position of the player with a pick number greater than 315 and a round of 30...
<|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: On what Week was the Result W 17-14? <|assistant|> SELECT AVG("week") FROM "schedule" WHERE ...
<|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 was the Result after the Week 4 on November 3, 1968? <|assistant|> SELECT "result" FROM...
<|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, "venue" text, "attendance" real ); Question: What is the attendance in week 4? <|assistant|> SELECT AVG("attendance") FRO...
<|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 with a record of 17–25? <|assistant|> SELECT "date" FROM "game_log"...
<|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: Who was the opponent at the game with a score of 6–5 (10)? <|assistant|> SELECT "opponent" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What was the result of the bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which location held the bout ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What discs has a region 1 release date of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_quarter" ( "rank" real, "name" text, "headquarters" text, "industry" text, "market_value_usd_million" real ); Question: What is the lowest rank of Citigroup? <|assistant|> SELECT MIN("ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_quarter" ( "rank" real, "name" text, "headquarters" text, "industry" text, "market_value_usd_million" real ); Question: What is the market value of the automotive industry? <|assistant|> ...
<|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: Name the attendance with result of t 14-14 <|assistant|> SELECT "attendance" FROM "schedule"...
<|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: Name the total number of attendance for october 20, 1946 with week less than 4 <|assistant|>...
<|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: Name the most attendance for november 17, 1946 and week more than 8 <|assistant|> SELECT MAX...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_kickers" ( "rank" text, "player" text, "position" text, "career" text, "points" real ); Question: What is the sum of the points for the player who was a rank of 61t? <|assistant|> SELECT SU...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_kickers" ( "rank" text, "player" text, "position" text, "career" text, "points" real ); Question: Who is the player who had more than 1,052 points? <|assistant|> SELECT "player" FROM "non_k...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_kickers" ( "rank" text, "player" text, "position" text, "career" text, "points" real ); Question: What are the highest points that Emmitt Smith had? <|assistant|> SELECT MAX("points") FROM ...
<|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, "record" text, "game_site" text, "attendance" text ); Question: Record of 6–8 had what attendance? <|assistant|> SELECT...
<|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, "record" text, "game_site" text, "attendance" text ); Question: Result of l 17–20 had what attendance? <|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, "record" text, "game_site" text, "attendance" text ); Question: Game Site of hoosier dome, and a Result of l 7–31 invol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "champion" text, "country" text, "venue" text, "location" text, "score" text, "to_par" text, "purse" real, "winner_s_share" real ); Question: Which Year is the h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "champion" text, "country" text, "venue" text, "location" text, "score" text, "to_par" text, "purse" real, "winner_s_share" real ); Question: Which Champion has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_25_lists" ( "year" real, "performance" text, "world_ranking" real, "venue" text, "date" text ); Question: How many world rankings are after Aug 5, 1980 ? <|assistant|> SELECT SUM("world_ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_25_lists" ( "year" real, "performance" text, "world_ranking" real, "venue" text, "date" text ); Question: On which date is there a performance of more than 8.22.72? <|assistant|> SELECT "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_25_lists" ( "year" real, "performance" text, "world_ranking" real, "venue" text, "date" text ); Question: The venue of Rome has which date? <|assistant|> SELECT "date" FROM "top_25_lists" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_sixteen" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 1st leg of the match that had an aggregate of 4-3? <|assistant|> SELECT "1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_sixteen" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 2nd leg fo the match that had a 1st leg of 1-3 and aggregate of 1-6? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); Question: When was the last final lost of the club with 7 wins? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); Question: How many runners-up did the club with the last final lost in 1985 have? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); Question: When was the last final lost of the club with a last win in 1959? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); Question: When was the last win of Celtic? <|assistant|> SELECT "last_win" FROM "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_club" ( "club" text, "wins" text, "last_win" text, "runners_up" text, "last_final_lost" text ); Question: Which club had 13 runners-up? <|assistant|> SELECT "club" FROM "performa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Who is the visitor in Philadelphia on March 6? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: what date were they pl...