text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trades" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: WHo is the Visitor on april 14?
<|assistant|>
SELECT "visitor" FROM "trades" WHERE "date"='april 14'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "trades" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Record has a Visitor of quebec nordiques with a Score of 4β5?
<|assistant|>
SELECT "record" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the highest December against the Pittsburgh Penguins in a game ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the score for December of 30?
<|assistant|>
SELECT "score" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_1" (
"games" real,
"drawn" real,
"lost" real,
"goal_difference" text,
"points" real
);
Question: What is the average number of games associated with 6 points and under 2 losses?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_1" (
"games" real,
"drawn" real,
"lost" real,
"goal_difference" text,
"points" real
);
Question: What is the low point total when there are over 5 games?
<|assistant|>
SELECT MIN("points"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presidential_elections" (
"year" real,
"electors" real,
"votes" text,
"share_of_votes" text,
"candidate" text
);
Question: What was the share of votes when there were more than 56 electors and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "presidential_elections" (
"year" real,
"electors" real,
"votes" text,
"share_of_votes" text,
"candidate" text
);
Question: What is the total of electors when the share of votes was 11,0%?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Lost has Games larger than 7?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Points have a Lost smaller than 1, and Games larger tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Lost has Points larger than 13?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_denmark" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which Points have a Drawn larger than 1?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_cent_test_tokens" (
"year_of_issue" real,
"weight" text,
"diameter" text,
"thickness" text,
"edge" text
);
Question: Which Diameter has a Year of Issue of 1977?
<|assistant|>
SELECT "diamet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_cent_test_tokens" (
"year_of_issue" real,
"weight" text,
"diameter" text,
"thickness" text,
"edge" text
);
Question: Which Year of Issue has a Thickness of 1.42mm?
<|assistant|>
SELECT MAX(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_cent_test_tokens" (
"year_of_issue" real,
"weight" text,
"diameter" text,
"thickness" text,
"edge" text
);
Question: Which Diameter has a Thickness of 1.3mm?
<|assistant|>
SELECT "diameter"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elected_me_ps_5" (
"candidate" text,
"party" text,
"eu_party" text,
"1st_count" real,
"29th_count" text
);
Question: Which party's candidate is Grech Louis Grech?
<|assistant|>
SELECT "party" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elected_me_ps_5" (
"candidate" text,
"party" text,
"eu_party" text,
"1st_count" real,
"29th_count" text
);
Question: Which eu party has a 29th count of 40,529?
<|assistant|>
SELECT "eu_party" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "elected_me_ps_5" (
"candidate" text,
"party" text,
"eu_party" text,
"1st_count" real,
"29th_count" text
);
Question: Which candidate's party is pl when the 29th count is 39,250?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009" (
"date" text,
"site" text,
"sport" text,
"winning_team" text,
"series" text
);
Question: What is the sport played in Iowa City on February 14, 2009?
<|assistant|>
SELECT "sport" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_2009" (
"date" text,
"site" text,
"sport" text,
"winning_team" text,
"series" text
);
Question: What is the series of the winning team in Iowa, for softball?
<|assistant|>
SELECT "series" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the score of the match that was against alberto berasateg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: How many rebounds does Ann Wauters have?
<|assistant|>
SELECT COUNT("rebounds") FROM "rebounds" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: Who played 10 games?
<|assistant|>
SELECT "name" FROM "rebounds" WHERE "games"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
);
Question: What is the total number of rebounds values for Ann Wauters?
<|assistant|>
SELECT COUNT("rebounds")... |
<|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: Who did the Colts play against on September 25, 1966?
<... |
<|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: What is the date of the game with 40,005 in attendance?... |
<|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: What is the lowest week number for the game that was at... |
<|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: After week 11, what was the Result on December 13, 1964?
<|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,
"attendance" real
);
Question: After week 8, what was the Attendance on November 1, 1964?
<|assistant|>
SELECT AVG("attenda... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b1" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text
);
Question: What is the alternate of the nation with Piotras Gerasimovici as the second?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b1" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text
);
Question: What is the alternate of the nation with hubert grΓΌndhammer as the second?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b1" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text
);
Question: What is the alternate of the nation with Erkki Lill as the skip?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b1" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text
);
Question: Who is the skip of the nation with Laurens van der Windt as the alternate?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b1" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text,
"alternate" text
);
Question: Who is the lead of the nation with Juha Pekaristo as the alternate?
<|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: What is the highest round in which a player was picked for t... |
<|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: What is John Flatters' nationality?
<|assistant|>
SELECT "na... |
<|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: What is Jeremy Duchesne's position?
<|assistant|>
SELECT "po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text
);
Question: When was the attendance 1,034?
<|assistant|>
SELECT MIN("date") FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "football_alliance" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: what was the opponent on 26 october 1889?
<|assistant|>
SELECT "opponents" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "estimated_total_direct_programme_hours_p" (
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"1996_2" real
);
Question: 1950 larger than 80, and a 1960 of 196, and a 1990 larg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "estimated_total_direct_programme_hours_p" (
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"1996_2" real
);
Question: 1960 larger than 196, and a 1996[2] smaller than 726, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "estimated_total_direct_programme_hours_p" (
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"1996_2" real
);
Question: 1980 smaller than 719, and a 1960 smaller than 205, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "estimated_total_direct_programme_hours_p" (
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"1996_2" real
);
Question: 1996[2] larger than 68, and a 1990 smaller than 352, an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "estimated_total_direct_programme_hours_p" (
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"1996_2" real
);
Question: 1996[2] of 127, and a 1990 smaller than 120 is the sum ... |
<|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,
"game_site" text,
"record" text
);
Question: Who was the opponent at the game with a result of w 14β6?
<|assistant|>
SELE... |
<|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,
"game_site" text,
"record" text
);
Question: What was the result of the game with a record of 2β3β2 before week 8?
<|assi... |
<|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,
"game_site" text,
"record" text
);
Question: What was the earliest week with a game at the Braves Field on October 2, 193... |
<|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,
"game_site" text,
"record" text
);
Question: What was the record at the game on November 13, 1932?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "others" (
"character" text,
"actor" text,
"duration" text,
"role" text,
"appearances" text
);
Question: What role is Kevin Bishop the actor?
<|assistant|>
SELECT "role" FROM "others" WHERE "act... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "others" (
"character" text,
"actor" text,
"duration" text,
"role" text,
"appearances" text
);
Question: What is the duration for mike walling as the actor?
<|assistant|>
SELECT "duration" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "others" (
"character" text,
"actor" text,
"duration" text,
"role" text,
"appearances" text
);
Question: What is the duration that has 3 for appearances, and james garret as the character?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "others" (
"character" text,
"actor" text,
"duration" text,
"role" text,
"appearances" text
);
Question: What is the duration for nickolas grace as the actor?
<|assistant|>
SELECT "duration" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Time ( ET ) of 1:00pm, and a Result of w 34β14 has what rec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Date of sun. oct. 1 has what location?
<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Record of 3β3 has what result?
<|assistant|>
SELECT "result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Date of sun. oct. 29 has what time (et)?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_france" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many games have more than 10 points and more than 2 draws?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_france" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the sum of losses that have points of 11 and more than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_france" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the greatest points value that have draws under 2 and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_france" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: How many losses have draw values under 1?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the lowest February for less than 57 points?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the February for the game against the Montreal Canadiens?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What's the record for Game 58?
<|assistant|>
SELECT "record" FROM "reg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which Winner has a Season of 2005β06?
<|assistant|>
SELECT "winner" FROM "list_of_final... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which Runner-up played in the Season of 2000β01?
<|assistant|>
SELECT "runner_up" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What was the venue during the Season of 2010β11?
<|assistant|>
SELECT "venue" FROM "lis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which Winner has a Runner-up of larne, and a Season of 2003β04?
<|assistant|>
SELECT "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_finals" (
"season" text,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which Winner has a Score of 1 β 0, and a Season of 2011β12?
<|assistant|>
SELECT "winne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_nfl_draft" (
"round" real,
"pick" text,
"name" text,
"position" text,
"college" text
);
Question: What position does Martin Rucker play?
<|assistant|>
SELECT "position" FROM "2008_nfl_draf... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_nfl_draft" (
"round" real,
"pick" text,
"name" text,
"position" text,
"college" text
);
Question: What was the lowest round for Paul Hubbard?
<|assistant|>
SELECT MIN("round") FROM "2008_n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_nfl_draft" (
"round" real,
"pick" text,
"name" text,
"position" text,
"college" text
);
Question: What was the lowest round for a tight end position?
<|assistant|>
SELECT MIN("round") FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_records" (
"coach" text,
"years" text,
"wins" real,
"losses" real,
"ties" real
);
Question: What years did the person coach who had more than 31 ties?
<|assistant|>
SELECT "years" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_records" (
"coach" text,
"years" text,
"wins" real,
"losses" real,
"ties" real
);
Question: What is the average number of wins for the person who coached from 1951 to 1956 and had less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_records" (
"coach" text,
"years" text,
"wins" real,
"losses" real,
"ties" real
);
Question: Who was the coach who had 215 losses?
<|assistant|>
SELECT "coach" FROM "coaching_records" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_records" (
"coach" text,
"years" text,
"wins" real,
"losses" real,
"ties" real
);
Question: What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_records" (
"coach" text,
"years" text,
"wins" real,
"losses" real,
"ties" real
);
Question: What years did the person coach who had less than 82 wins and more than 24 losses?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Points have a Game larger than 25, and an Opponent of dallas stars?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Record has a December smaller than 28, and Points smaller than 38, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Opponent has a Game of 31?
<|assistant|>
SELECT "opponent" FROM "game_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Record has Points smaller than 40, and a Game larger than 25, and a Sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_6" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Episode of 9 in which performer 3 had?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_6" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Date of 8 july 1994 involves which performer 1?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_6" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Date of 15 july 1994 involves which performer 3?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_6" (
"date" text,
"episode" real,
"performer_1" text,
"performer_2" text,
"performer_3" text,
"performer_4" text
);
Question: Performer 2 of chip esten has what performer 3?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_of_the_class" (
"name" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"date_of_commission" text,
"homeport_as_of_july_2013" text,
"planned_decommission_as_announced_in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_of_the_class" (
"name" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"date_of_commission" text,
"homeport_as_of_july_2013" text,
"planned_decommission_as_announced_in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_of_the_class" (
"name" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"date_of_commission" text,
"homeport_as_of_july_2013" text,
"planned_decommission_as_announced_in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_of_the_class" (
"name" text,
"pennant_number" text,
"laid_down" text,
"launched" text,
"date_of_commission" text,
"homeport_as_of_july_2013" text,
"planned_decommission_as_announced_in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "money_leaders" (
"rank" real,
"player" text,
"country" text,
"events" real,
"prize_money" real
);
Question: Which player had more than 25 events?
<|assistant|>
SELECT "player" FROM "money_leade... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "money_leaders" (
"rank" real,
"player" text,
"country" text,
"events" real,
"prize_money" real
);
Question: What amount of prize money was there when the rank was less than 7, there were more t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "money_leaders" (
"rank" real,
"player" text,
"country" text,
"events" real,
"prize_money" real
);
Question: What is the least amount of prize money when there are 21 events?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_8_2006_2007" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which series episode has a netfli... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_8_2006_2007" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which segment a's netflix figure ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_8_2006_2007" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: How many episodes have a segment ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_8_2006_2007" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: Which episode's segment b is s ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: When was Lachlan Dale born?
<|assistant|>
SELECT "d_o_b" FROM "player_ros... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which batter played P and was born 18 April 1984?
<|assistant|>
SELECT "b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which Surname has Bats of r, and a Position of p, and a DOB of 20 may 198... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: Which Position has Throws of r, and a DOB of 12 february 1983?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: How many throws did Needle have?
<|assistant|>
SELECT "throws" FROM "play... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.