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,
"2012" text,
"2013" text,
"win_pct" real
);
Question: Which 2011 has a 2009 of 15β2?
<|assistant|>
SELECT "2011" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='15β2';<|endoftext|> |
<|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,
"2012" text,
"2013" text,
"win_pct" real
);
Question: Which 2010 has a 2006 of w?
<|assistant|>
SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2006"='w';<|endoftext|> |
<|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,
"2012" text,
"2013" text,
"win_pct" real
);
Question: Which 2008 has a 2005 of 13β3?
<|assistant|>
SELECT "2008" FROM "grand_slam_tournament_performance_timeli" WHERE "2005"='13β3';<|endoftext|> |
<|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 the time of the Ghantoot Racing and Polo Club?
<|assistant|>
SELECT "time" FROM "round_1" WHERE "ground"='ghantoot racing and polo club';<|endoftext|> |
<|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 the home team score of the game with Adelaide as the away team?
<|assistant|>
SELECT "home_team_score" FROM "round_1" WHERE "away_team"='adelaide';<|endoftext|> |
<|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 the time of the Essendon home team game?
<|assistant|>
SELECT "time" FROM "round_1" WHERE "home_team"='essendon';<|endoftext|> |
<|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 the home team score of the Ghantoot Racing and Polo Club Ground?
<|assistant|>
SELECT "home_team_score" FROM "round_1" WHERE "ground"='ghantoot racing and polo club';<|endoftext|> |
<|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 "release_history" WHERE "date"='february 2006';<|endoftext|> |
<|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_history" WHERE "catalog"='11 135';<|endoftext|> |
<|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" FROM "release_history" WHERE "format"='7\" single' AND "catalog"='87184';<|endoftext|> |
<|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_history" WHERE "catalog"='885 380-1';<|endoftext|> |
<|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" FROM "release_history" WHERE "region"='france' AND "format"='7\" single' AND "date"='april 1986';<|endoftext|> |
<|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" text,
"pad_banks" real
);
Question: Which Sampling Memory/Upgrade-able has a rate of 16-bit 44.1khz?
<|assistant|>
SELECT "sampling_memory_upgrade_able" FROM "comparison" WHERE "sampling_rate"='16-bit 44.1khz';<|endoftext|> |
<|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" text,
"pad_banks" real
);
Question: Around what time frame release a Sampling Rate of 12-bit 40khz?
<|assistant|>
SELECT SUM("release_date") FROM "comparison" WHERE "sampling_rate"='12-bit 40khz';<|endoftext|> |
<|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" text,
"pad_banks" real
);
Question: How much is a product with a Sampling Rate of 12-bit 40khz?
<|assistant|>
SELECT "price" FROM "comparison" WHERE "sampling_rate"='12-bit 40khz';<|endoftext|> |
<|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"='december 19';<|endoftext|> |
<|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';<|endoftext|> |
<|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"='november 7';<|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: 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") FROM "leaders" WHERE "rank">5;<|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 amount of earnings does Tiger Woods have?
<|assistant|>
SELECT "earnings" FROM "leaders" WHERE "player"='tiger woods';<|endoftext|> |
<|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 more than 24 points and a w-l-d of 8-5-3?
<|assistant|>
SELECT COUNT("position") FROM "regular_season" WHERE "points">24 AND "w_l_d"='8-5-3';<|endoftext|> |
<|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 with 17 points?
<|assistant|>
SELECT "goals_for_against" FROM "regular_season" WHERE "points"=17;<|endoftext|> |
<|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 the club with a position number less than 4 and a 29-24 goals for/against?
<|assistant|>
SELECT MAX("games_played") FROM "regular_season" WHERE "position"<4 AND "goals_for_against"='29-24';<|endoftext|> |
<|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" WHERE "attendance">'35,540';<|endoftext|> |
<|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("attendance") FROM "schedule" WHERE "date"='december 3, 1944';<|endoftext|> |
<|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 Karikal Colony?
<|assistant|>
SELECT "treaty_of_cession" FROM "inde_fran_aise" WHERE "colony"='karikal';<|endoftext|> |
<|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"='argentina';<|endoftext|> |
<|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';<|endoftext|> |
<|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"='june 14';<|endoftext|> |
<|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"='april 28';<|endoftext|> |
<|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|>
SELECT "score" FROM "december" WHERE "leading_scorer"='tim duncan (27)';<|endoftext|> |
<|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|>
SELECT "visitor" FROM "december" WHERE "leading_scorer"='tim duncan (16)';<|endoftext|> |
<|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?
<|assistant|>
SELECT COUNT("round") FROM "jacksonville_jaguars_draft_history" WHERE "name"='will rackley';<|endoftext|> |
<|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 pick number smaller than 16?
<|assistant|>
SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "position"='cornerback' AND "pick_num"<16;<|endoftext|> |
<|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?
<|assistant|>
SELECT MAX("round") FROM "jacksonville_jaguars_draft_history" WHERE "position"='cornerback';<|endoftext|> |
<|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 2004?
<|assistant|>
SELECT "outcome" FROM "singles_14_9_5" WHERE "date"='25 october 2004';<|endoftext|> |
<|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 march 1998?
<|assistant|>
SELECT "opponent_in_the_final" FROM "singles_14_9_5" WHERE "outcome"='runner-up' AND "date"='2 march 1998';<|endoftext|> |
<|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 mario anΔiΔ in the final?
<|assistant|>
SELECT "championship" FROM "singles_14_9_5" WHERE "opponent_in_the_final"='mario anΔiΔ';<|endoftext|> |
<|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" FROM "top_up_additional_member_system_results" WHERE "share"='2.9%';<|endoftext|> |
<|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" FROM "top_up_additional_member_system_results" WHERE "party"='english democrats';<|endoftext|> |
<|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("votes") FROM "top_up_additional_member_system_results" WHERE "party"='one london';<|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,
"events" real,
"wins" real
);
Question: Which Country has a Rank of 5?
<|assistant|>
SELECT "country" FROM "leaders" WHERE "rank"=5;<|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,
"events" real,
"wins" real
);
Question: Which Earnings ($) is the lowest one that has a Rank of 1, and Events smaller than 22?
<|assistant|>
SELECT MIN("earnings") FROM "leaders" WHERE "rank"=1 AND "events"<22;<|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,
"events" real,
"wins" real
);
Question: How many earnings have Wins larger than 3?
<|assistant|>
SELECT SUM("earnings") FROM "leaders" WHERE "wins">3;<|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,
"events" real,
"wins" real
);
Question: Which Player has 4 Wins?
<|assistant|>
SELECT "player" FROM "leaders" WHERE "wins"=4;<|endoftext|> |
<|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" text
);
Question: How many Poles have a Bike of honda rc212v, and Podiums smaller than 0?
<|assistant|>
SELECT COUNT("poles") FROM "results" WHERE "bike"='honda rc212v' AND "podiums"<0;<|endoftext|> |
<|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" text
);
Question: Which Wins is the highest one that has a Pos of 2nd, and Poles larger than 2?
<|assistant|>
SELECT MAX("wins") FROM "results" WHERE "pos"='2nd' AND "poles">2;<|endoftext|> |
<|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|>
SELECT AVG("points") FROM "melodifestivalen_1997" WHERE "place"='8th' AND "draw">8;<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("points") FROM "regular_season" WHERE "game"<8 AND "record"='1β0β0';<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("game") FROM "regular_season" WHERE "record"='5β3β1' AND "october"<29;<|endoftext|> |
<|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 "regular_season" WHERE "score"='3β4';<|endoftext|> |
<|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|>
SELECT SUM("game") FROM "regular_season" WHERE "record"='4β2β1' AND "points">9;<|endoftext|> |
<|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 nikita korovkin?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "position"='defense' AND "player"='nikita korovkin';<|endoftext|> |
<|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|>
SELECT "nationality" FROM "draft_picks" WHERE "position"='left wing';<|endoftext|> |
<|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 "player" FROM "draft_picks" WHERE "position"='forward';<|endoftext|> |
<|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" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
Question: Which Week 3 Sept 14 has a Week 6 Oct 5 of kansas (4-1)?
<|assistant|>
SELECT "week_3_sept_14" FROM "coaches_poll" WHERE "week_6_oct_5"='kansas (4-1)';<|endoftext|> |
<|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" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
Question: Which Week 2 Sept 7 has a Week 6 Oct 5 of wake forest (3-1)?
<|assistant|>
SELECT "week_2_sept_7" FROM "coaches_poll" WHERE "week_6_oct_5"='wake forest (3-1)';<|endoftext|> |
<|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" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
Question: Which Week 1 Sept 2 has a Week 3 Sept 14 of south florida (3-0)?
<|assistant|>
SELECT "week_1_sept_2" FROM "coaches_poll" WHERE "week_3_sept_14"='south florida (3-0)';<|endoftext|> |
<|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" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
Question: Which Week 7 Oct 12 has a Week 6 Oct 5 of boise state (4-0)?
<|assistant|>
SELECT "week_7_oct_12" FROM "coaches_poll" WHERE "week_6_oct_5"='boise state (4-0)';<|endoftext|> |
<|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" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
Question: Which Week 2 Sept 7 has a Week 7 Oct 12 of ball state (7-0)?
<|assistant|>
SELECT "week_2_sept_7" FROM "coaches_poll" WHERE "week_7_oct_12"='ball state (7-0)';<|endoftext|> |
<|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" text,
"week_14_nov_30" text,
"week_15_dec_7" text,
"week_16_final_jan_9" text
);
Question: Which Week 6 Oct 5 has a Week 14 Nov 30 of texas (11-1)?
<|assistant|>
SELECT "week_6_oct_5" FROM "coaches_poll" WHERE "week_14_nov_30"='texas (11-1)';<|endoftext|> |
<|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|>
SELECT MAX("round") FROM "nfl_draft" WHERE "player"='tommy allman' AND "pick"<40;<|endoftext|> |
<|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?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "pick"<183 AND "position"='back' AND "round">12;<|endoftext|> |
<|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 303?
<|assistant|>
SELECT COUNT("round") FROM "nfl_draft" WHERE "pick">303 AND "position"='end';<|endoftext|> |
<|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("pick") FROM "nfl_draft" WHERE "position"='back' AND "round"=28;<|endoftext|> |
<|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?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "pick">315 AND "round"=30;<|endoftext|> |
<|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 "result"='w 17-14';<|endoftext|> |
<|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 "schedule" WHERE "week">4 AND "date"='november 3, 1968';<|endoftext|> |
<|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") FROM "schedule" WHERE "week"=4;<|endoftext|> |
<|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" WHERE "record"='17β25';<|endoftext|> |
<|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 "game_log" WHERE "score"='6β5 (10)';<|endoftext|> |
<|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 bout that led to a 4-4 record?
<|assistant|>
SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='4-4';<|endoftext|> |
<|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 that led to a 4-3 record?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='4-3';<|endoftext|> |
<|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 January 22, 2008?
<|assistant|>
SELECT "discs" FROM "dvd_releases" WHERE "region_1_release"='january 22, 2008';<|endoftext|> |
<|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("rank") FROM "first_quarter" WHERE "name"='citigroup';<|endoftext|> |
<|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|>
SELECT COUNT("market_value_usd_million") FROM "first_quarter" WHERE "industry"='automotive';<|endoftext|> |
<|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" WHERE "result"='t 14-14';<|endoftext|> |
<|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|>
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='october 20, 1946' AND "week"<4;<|endoftext|> |
<|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("attendance") FROM "schedule" WHERE "date"='november 17, 1946' AND "week">8;<|endoftext|> |
<|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 SUM("points") FROM "non_kickers" WHERE "rank"='61t';<|endoftext|> |
<|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_kickers" WHERE "points">'1,052';<|endoftext|> |
<|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 "non_kickers" WHERE "player"='emmitt smith';<|endoftext|> |
<|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 "attendance" FROM "schedule" WHERE "record"='6β8';<|endoftext|> |
<|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|>
SELECT "attendance" FROM "schedule" WHERE "result"='l 17β20';<|endoftext|> |
<|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 involved what attendance?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "game_site"='hoosier dome' AND "result"='l 7β31';<|endoftext|> |
<|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 highest one that has a Venue of blackwolf run, composite course, and a Score of 281?
<|assistant|>
SELECT MAX("year") FROM "winners" WHERE "venue"='blackwolf run, composite course' AND "score"='281';<|endoftext|> |
<|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 a Venue of old waverly golf club?
<|assistant|>
SELECT "champion" FROM "winners" WHERE "venue"='old waverly golf club';<|endoftext|> |
<|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_ranking") FROM "top_25_lists" WHERE "date"='aug 5' AND "year">1980;<|endoftext|> |
<|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 "date" FROM "top_25_lists" WHERE "performance"='8.22.72';<|endoftext|> |
<|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" WHERE "venue"='rome';<|endoftext|> |
<|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 "1st_leg" FROM "round_of_sixteen" WHERE "agg"='4-3';<|endoftext|> |
<|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?
<|assistant|>
SELECT "2nd_leg" FROM "round_of_sixteen" WHERE "1st_leg"='1-3' AND "agg"='1-6';<|endoftext|> |
<|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|>
SELECT "last_final_lost" FROM "performance_by_club" WHERE "wins"='7';<|endoftext|> |
<|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?
<|assistant|>
SELECT "runners_up" FROM "performance_by_club" WHERE "last_final_lost"='1985';<|endoftext|> |
<|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?
<|assistant|>
SELECT "last_final_lost" FROM "performance_by_club" WHERE "last_win"='1959';<|endoftext|> |
<|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 "performance_by_club" WHERE "club"='celtic';<|endoftext|> |
<|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 "performance_by_club" WHERE "runners_up"='13';<|endoftext|> |
<|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?
<|assistant|>
SELECT "visitor" FROM "regular_season" WHERE "home"='philadelphia' AND "date"='march 6';<|endoftext|> |
<|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 playing in hawthorn
<|assistant|>
SELECT "date" FROM "round_16" WHERE "away_team"='hawthorn';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.