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';<|endoftext|> |
<|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" FROM "trades" WHERE "visitor"='quebec nordiques' AND "score"='4β5';<|endoftext|> |
<|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 larger than 27, with less than 41 points?
<|assistant|>
SELECT MAX("december") FROM "regular_season" WHERE "game">27 AND "opponent"='pittsburgh penguins' AND "points"<41;<|endoftext|> |
<|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 "regular_season" WHERE "december"=30;<|endoftext|> |
<|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?
<|assistant|>
SELECT AVG("games") FROM "group_1" WHERE "points"=6 AND "lost"<2;<|endoftext|> |
<|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") FROM "group_1" WHERE "games">5;<|endoftext|> |
<|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 the year was more recent than 1950?
<|assistant|>
SELECT "share_of_votes" FROM "presidential_elections" WHERE "electors">56 AND "year">1950;<|endoftext|> |
<|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%?
<|assistant|>
SELECT SUM("electors") FROM "presidential_elections" WHERE "share_of_votes"='11,0%';<|endoftext|> |
<|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("lost") FROM "world_championship_group_b_denmark" WHERE "games">7;<|endoftext|> |
<|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 than 7?
<|assistant|>
SELECT MAX("points") FROM "world_championship_group_b_denmark" WHERE "lost"<1 AND "games">7;<|endoftext|> |
<|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 AVG("lost") FROM "world_championship_group_b_denmark" WHERE "points">13;<|endoftext|> |
<|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 AVG("points") FROM "world_championship_group_b_denmark" WHERE "drawn">1;<|endoftext|> |
<|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 "diameter" FROM "one_cent_test_tokens" WHERE "year_of_issue"=1977;<|endoftext|> |
<|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("year_of_issue") FROM "one_cent_test_tokens" WHERE "thickness"='1.42mm';<|endoftext|> |
<|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" FROM "one_cent_test_tokens" WHERE "thickness"='1.3mm';<|endoftext|> |
<|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" FROM "elected_me_ps_5" WHERE "candidate"='grech louis grech';<|endoftext|> |
<|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" FROM "elected_me_ps_5" WHERE "29th_count"='40,529';<|endoftext|> |
<|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|>
SELECT "candidate" FROM "elected_me_ps_5" WHERE "party"='pl' AND "29th_count"='39,250';<|endoftext|> |
<|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" FROM "2008_2009" WHERE "site"='iowa city' AND "date"='february 14, 2009';<|endoftext|> |
<|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" FROM "2008_2009" WHERE "winning_team"='iowa' AND "sport"='softball';<|endoftext|> |
<|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 berasategui?
<|assistant|>
SELECT "score_in_the_final" FROM "singles" WHERE "opponent_in_the_final"='alberto berasategui';<|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: How many rebounds does Ann Wauters have?
<|assistant|>
SELECT COUNT("rebounds") FROM "rebounds" WHERE "name"='ann wauters';<|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: 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") FROM "rebounds" WHERE "name"='ann wauters';<|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: Who did the Colts play against on September 25, 1966?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='september 25, 1966';<|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: What is the date of the game with 40,005 in attendance?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attendance"='40,005';<|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: What is the lowest week number for the game that was at milwaukee county stadium?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHERE "game_site"='milwaukee county stadium';<|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: After week 11, what was the Result on December 13, 1964?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week">11 AND "date"='december 13, 1964';<|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: After week 8, what was the Attendance on November 1, 1964?
<|assistant|>
SELECT AVG("attendance") FROM "schedule" WHERE "date"='november 1, 1964' AND "week">8;<|endoftext|> |
<|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?
<|assistant|>
SELECT "alternate" FROM "group_b1" WHERE "second"='piotras gerasimovici';<|endoftext|> |
<|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?
<|assistant|>
SELECT "alternate" FROM "group_b1" WHERE "second"='hubert grΓΌndhammer';<|endoftext|> |
<|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|>
SELECT "alternate" FROM "group_b1" WHERE "skip"='erkki lill';<|endoftext|> |
<|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?
<|assistant|>
SELECT "skip" FROM "group_b1" WHERE "alternate"='laurens van der windt';<|endoftext|> |
<|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|>
SELECT "lead" FROM "group_b1" WHERE "alternate"='juha pekaristo';<|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: What is the highest round in which a player was picked for the Center position?
<|assistant|>
SELECT MAX("round") FROM "draft_picks" WHERE "position"='center';<|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: What is John Flatters' nationality?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "player"='john flatters';<|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: What is Jeremy Duchesne's position?
<|assistant|>
SELECT "position" FROM "draft_picks" WHERE "player"='jeremy duchesne';<|endoftext|> |
<|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 "february" WHERE "attendance"='1,034';<|endoftext|> |
<|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 "football_alliance" WHERE "date"='26 october 1889';<|endoftext|> |
<|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 larger than 131 what is the lowest 1996[2]?
<|assistant|>
SELECT MIN("1996_2") FROM "estimated_total_direct_programme_hours_p" WHERE "1950">80 AND "1960"=196 AND "1990">131;<|endoftext|> |
<|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, and a 1980 larger than 125, and a 1990 larger than 848, what is the highest 1950?
<|assistant|>
SELECT MAX("1950") FROM "estimated_total_direct_programme_hours_p" WHERE "1960">196 AND "1996_2"<726 AND "1980">125 AND "1990">848;<|endoftext|> |
<|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 a 1996[2] smaller than 364, and a 1970 larger than 251 is what 1990 highest?
<|assistant|>
SELECT MAX("1990") FROM "estimated_total_direct_programme_hours_p" WHERE "1980"<719 AND "1960"<205 AND "1996_2"<364 AND "1970">251;<|endoftext|> |
<|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, and a 1970 larger than 105, and a 1950 of 119 is the sum of what 1980?
<|assistant|>
SELECT SUM("1980") FROM "estimated_total_direct_programme_hours_p" WHERE "1996_2">68 AND "1990"<352 AND "1970">105 AND "1950"=119;<|endoftext|> |
<|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 of 1990?
<|assistant|>
SELECT SUM("1980") FROM "estimated_total_direct_programme_hours_p" WHERE "1996_2"=127 AND "1990"<120;<|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,
"game_site" text,
"record" text
);
Question: Who was the opponent at the game with a result of w 14β6?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "result"='w 14β6';<|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,
"game_site" text,
"record" text
);
Question: What was the result of the game with a record of 2β3β2 before week 8?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week"<8 AND "record"='2β3β2';<|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,
"game_site" text,
"record" text
);
Question: What was the earliest week with a game at the Braves Field on October 2, 1932?
<|assistant|>
SELECT MIN("week") FROM "schedule" WHERE "game_site"='braves field' AND "date"='october 2, 1932';<|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,
"game_site" text,
"record" text
);
Question: What was the record at the game on November 13, 1932?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "date"='november 13, 1932';<|endoftext|> |
<|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 "actor"='kevin bishop';<|endoftext|> |
<|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 "others" WHERE "actor"='mike walling';<|endoftext|> |
<|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?
<|assistant|>
SELECT "duration" FROM "others" WHERE "appearances"='3' AND "character"='james garret';<|endoftext|> |
<|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" FROM "others" WHERE "actor"='nickolas grace';<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Time ( ET ) of 1:00pm, and a Result of w 34β14 has what record?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "time_et"='1:00pm' AND "result"='w 34β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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Date of sun. oct. 1 has what location?
<|assistant|>
SELECT "location" FROM "schedule" WHERE "date"='sun. oct. 1';<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Record of 3β3 has what result?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "record"='3β3';<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: Date of sun. oct. 29 has what time (et)?
<|assistant|>
SELECT "time_et" FROM "schedule" WHERE "date"='sun. oct. 29';<|endoftext|> |
<|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?
<|assistant|>
SELECT COUNT("games") FROM "world_championship_group_b_france" WHERE "points"=10 AND "drawn">2;<|endoftext|> |
<|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 1 draw?
<|assistant|>
SELECT SUM("lost") FROM "world_championship_group_b_france" WHERE "points"=11 AND "drawn">1;<|endoftext|> |
<|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 2 losses?
<|assistant|>
SELECT MAX("points") FROM "world_championship_group_b_france" WHERE "drawn"<2 AND "lost"=2;<|endoftext|> |
<|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 COUNT("lost") FROM "world_championship_group_b_france" WHERE "drawn"<1;<|endoftext|> |
<|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|>
SELECT MIN("february") FROM "regular_season" WHERE "points"<57;<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("february") FROM "regular_season" WHERE "opponent"='montreal canadiens';<|endoftext|> |
<|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 "regular_season" WHERE "game"=58;<|endoftext|> |
<|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_finals" WHERE "season"='2005β06';<|endoftext|> |
<|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 "list_of_finals" WHERE "season"='2000β01';<|endoftext|> |
<|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 "list_of_finals" WHERE "season"='2010β11';<|endoftext|> |
<|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 "winner" FROM "list_of_finals" WHERE "runner_up"='larne' AND "season"='2003β04';<|endoftext|> |
<|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 "winner" FROM "list_of_finals" WHERE "score"='1 β 0' AND "season"='2011β12';<|endoftext|> |
<|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_draft" WHERE "name"='martin rucker';<|endoftext|> |
<|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_nfl_draft" WHERE "name"='paul hubbard';<|endoftext|> |
<|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 "2008_nfl_draft" WHERE "position"='tight end';<|endoftext|> |
<|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 "coaching_records" WHERE "ties">31;<|endoftext|> |
<|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 than 174 losses and less than 6 ties?
<|assistant|>
SELECT AVG("wins") FROM "coaching_records" WHERE "losses"<174 AND "years"='1951 to 1956' AND "ties"<6;<|endoftext|> |
<|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" WHERE "losses"=215;<|endoftext|> |
<|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?
<|assistant|>
SELECT "years" FROM "coaching_records" WHERE "ties">1 AND "wins"<311 AND "losses"=174;<|endoftext|> |
<|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?
<|assistant|>
SELECT "years" FROM "coaching_records" WHERE "wins"<82 AND "losses">24;<|endoftext|> |
<|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?
<|assistant|>
SELECT AVG("points") FROM "game_log" WHERE "game">25 AND "opponent"='dallas stars';<|endoftext|> |
<|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 a Game smaller than 26, and a Score of 0β1 ot?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "december"<28 AND "points"<38 AND "game"<26 AND "score"='0β1 ot';<|endoftext|> |
<|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_log" WHERE "game"=31;<|endoftext|> |
<|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 Score of 2β0?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "points"<40 AND "game">25 AND "score"='2β0';<|endoftext|> |
<|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|>
SELECT "performer_3" FROM "series_6" WHERE "episode"=9;<|endoftext|> |
<|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?
<|assistant|>
SELECT "performer_1" FROM "series_6" WHERE "date"='8 july 1994';<|endoftext|> |
<|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?
<|assistant|>
SELECT "performer_3" FROM "series_6" WHERE "date"='15 july 1994';<|endoftext|> |
<|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?
<|assistant|>
SELECT "performer_3" FROM "series_6" WHERE "performer_2"='chip esten';<|endoftext|> |
<|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_2009" text
);
Question: Which Name has a Pennant number of f82?
<|assistant|>
SELECT "name" FROM "ships_of_the_class" WHERE "pennant_number"='f82';<|endoftext|> |
<|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_2009" text
);
Question: What is the Launched which is on 3 may 2001?
<|assistant|>
SELECT "launched" FROM "ships_of_the_class" WHERE "date_of_commission"='3 may 2001';<|endoftext|> |
<|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_2009" text
);
Question: What is the Homeport that has a Laid down on 14 december 1985?
<|assistant|>
SELECT "homeport_as_of_july_2013" FROM "ships_of_the_class" WHERE "laid_down"='14 december 1985';<|endoftext|> |
<|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_2009" text
);
Question: What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80?
<|assistant|>
SELECT "launched" FROM "ships_of_the_class" WHERE "homeport_as_of_july_2013"='sold to chile' AND "pennant_number"='f80';<|endoftext|> |
<|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_leaders" WHERE "events">25;<|endoftext|> |
<|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 than 6 events, and the country was Fiji?
<|assistant|>
SELECT "prize_money" FROM "money_leaders" WHERE "rank"<7 AND "events">6 AND "country"='fiji';<|endoftext|> |
<|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|>
SELECT MIN("prize_money") FROM "money_leaders" WHERE "events"=21;<|endoftext|> |
<|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 netflix figure of s04e21?
<|assistant|>
SELECT "series_ep" FROM "season_8_2006_2007" WHERE "netflix"='s04e21';<|endoftext|> |
<|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 is s04e24?
<|assistant|>
SELECT "segment_a" FROM "season_8_2006_2007" WHERE "netflix"='s04e24';<|endoftext|> |
<|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 d that is goalie masks (part 2)?
<|assistant|>
SELECT COUNT("episode") FROM "season_8_2006_2007" WHERE "segment_d"='goalie masks (part 2)';<|endoftext|> |
<|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 hacksaw?
<|assistant|>
SELECT "episode" FROM "season_8_2006_2007" WHERE "segment_b"='s hacksaw';<|endoftext|> |
<|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_roster" WHERE "surname"='dale' AND "first"='lachlan';<|endoftext|> |
<|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 "bats" FROM "player_roster" WHERE "position"='p' AND "d_o_b"='18 april 1984';<|endoftext|> |
<|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 1989?
<|assistant|>
SELECT "surname" FROM "player_roster" WHERE "bats"='r' AND "position"='p' AND "d_o_b"='20 may 1989';<|endoftext|> |
<|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?
<|assistant|>
SELECT "position" FROM "player_roster" WHERE "throws"='r' AND "d_o_b"='12 february 1983';<|endoftext|> |
<|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 "player_roster" WHERE "surname"='needle';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.