text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the number for years 1985-88
<|assistant|>
SELECT MIN("no") FROM "s" WHERE "years_for_jazz"='1985-88';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which position does John Starks play?
<|assistant|>
SELECT "position" FROM "s" WHERE "player"='John Starks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which position does Deshawn Stevenson play?
<|assistant|>
SELECT "position" FROM "s" WHERE "player"='DeShawn Stevenson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player played 2004-05
<|assistant|>
SELECT "player" FROM "s" WHERE "years_for_jazz"='2004-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Name the nationality who played for 1987-89?
<|assistant|>
SELECT "nationality" FROM "r" WHERE "years_for_jazz"='1987-89';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Wht years did truck robinson play?
<|assistant|>
SELECT "years_for_jazz" FROM "r" WHERE "player"='Truck Robinson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the player that played 2004-05?
<|assistant|>
SELECT "player" FROM "r" WHERE "years_for_jazz"='2004-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the number of players that played 1987-89?
<|assistant|>
SELECT "no" FROM "r" WHERE "years_for_jazz"='1987-89';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of bill robinzine?
<|assistant|>
SELECT "nationality" FROM "r" WHERE "player"='Bill Robinzine';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the player that played in 2004-05?
<|assistant|>
SELECT "player" FROM "r" WHERE "years_for_jazz"='2004-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player named Kelly Tripucka?
<|assistant|>
SELECT "nationality" FROM "t" WHERE "player"='Kelly Tripucka';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What years were the Iowa State school/club team have a jazz club?
<|assistant|>
SELECT "years_for_jazz" FROM "t" WHERE "school_club_team"='Iowa State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player wears the number 6?
<|assistant|>
SELECT "player" FROM "t" WHERE "no"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player's position is the shooting guard?
<|assistant|>
SELECT "player" FROM "t" WHERE "position"='Shooting guard';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the number of school/club teams held by BYU?
<|assistant|>
SELECT MIN("no") FROM "t" WHERE "school_club_team"='BYU';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What position did the player from maynard evans hs play
<|assistant|>
SELECT "position" FROM "d" WHERE "school_club_team"='Maynard Evans HS';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the largest jersey number for the player from maryland
<|assistant|>
SELECT MAX("no") FROM "d" WHERE "school_club_team"='Maryland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Who are the players that played for the jazz from 1979-86
<|assistant|>
SELECT "player" FROM "d" WHERE "years_for_jazz"='1979-86';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What years did number 54 play for the jazz
<|assistant|>
SELECT "years_for_jazz" FROM "d" WHERE "no"=54;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "d" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many schools did darryl dawkins play for
<|assistant|>
SELECT COUNT("school_club_team") FROM "d" WHERE "player"='Darryl Dawkins';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the nationality of the player who played during the years 1989-92; 1994-95?
<|assistant|>
SELECT "nationality" FROM "e" WHERE "years_for_jazz"='1989-92; 1994-95';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many schools are listed for the player who played the years for Jazz in 2010-11?
<|assistant|>
SELECT COUNT("school_club_team") FROM "e" WHERE "years_for_jazz"='2010-11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many players were names Howard Eisley?
<|assistant|>
SELECT COUNT("no") FROM "e" WHERE "player"='Howard Eisley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What is the position for player Blue Edwards?
<|assistant|>
SELECT "position" FROM "e" WHERE "player"='Blue Edwards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player played the years for Jazz in 1995-2000, 2004-05
<|assistant|>
SELECT "player" FROM "e" WHERE "years_for_jazz"='1995-2000, 2004-05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "e" (
"player" text,
"no" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: Which player is no. 53?
<|assistant|>
SELECT "player" FROM "e" WHERE "no"='53';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: During which years did Jim Farmer play for Jazz?
<|assistant|>
SELECT "years_for_jazz" FROM "f" WHERE "player"='Jim Farmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many players have played for Jazz during 2006-2007?
<|assistant|>
SELECT COUNT("player") FROM "f" WHERE "years_for_jazz"='2006-2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What's Jim Farmer's nationality?
<|assistant|>
SELECT "nationality" FROM "f" WHERE "player"='Jim Farmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: For how many players from UTEP can one calculate how many years they've played for Jazz?
<|assistant|>
SELECT COUNT("years_for_jazz") FROM "f" WHERE "school_club_team"='UTEP';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "f" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many position does Jim Farmer play in?
<|assistant|>
SELECT COUNT("position") FROM "f" WHERE "player"='Jim Farmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What school or club did number 35 play for?
<|assistant|>
SELECT "school_club_team" FROM "g" WHERE "no"=35;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many years did number 25 play for the Jazz?
<|assistant|>
SELECT "years_for_jazz" FROM "g" WHERE "no"=25;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many years did Paul Griffin play for the Jazz?
<|assistant|>
SELECT COUNT("years_for_jazz") FROM "g" WHERE "player"='Paul Griffin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: What position did Lamar Green play?
<|assistant|>
SELECT "position" FROM "g" WHERE "player"='Lamar Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"no" real,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
Question: How many players only played for the Jazz in only 2010?
<|assistant|>
SELECT COUNT("no") FROM "g" WHERE "years_for_jazz"='2010';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
Question: What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered?
<|assistant|>
SELECT "1st_ship_delivery_date" FROM "yards_on_the_west_coast" WHERE "ship_types_delivered"='S2 (LST) type, S2 (frigate) type, C1-M type';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
Question: What type of ships were delivered on October 1942?
<|assistant|>
SELECT "ship_types_delivered" FROM "yards_on_the_west_coast" WHERE "1st_ship_delivery_date"='October 1942';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"ship_types_delivered" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
Question: When was the delevery date when there were 12 ways of delivery?
<|assistant|>
SELECT "1st_ship_delivery_date" FROM "yards_on_the_west_coast" WHERE "total_number_of_ways"='12 ways';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11562149_1" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"featured_character_s" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What are the episode numbers where the episode features Jack & Locke?
<|assistant|>
SELECT "no_in_series" FROM "table1_11562149_1" WHERE "featured_character_s"='Jack & Locke';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11562149_1" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"featured_character_s" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What are the episode numbers of episodes featuring Hurley?
<|assistant|>
SELECT "no_in_series" FROM "table1_11562149_1" WHERE "featured_character_s"='Hurley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11562149_1" (
"no_in_series" text,
"no_in_season" text,
"title" text,
"directed_by" text,
"written_by" text,
"featured_character_s" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: List the episode whose number in the series is 111.
<|assistant|>
SELECT "no_in_season" FROM "table1_11562149_1" WHERE "no_in_series"='111';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11562143_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"featured_character_s" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What date got 9.82 million viewers?
<|assistant|>
SELECT "original_air_date" FROM "table1_11562143_1" WHERE "u_s_viewers_million"='9.82';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11577996_1" (
"year" real,
"location" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What school placed 4th when Oklahoma State University (black) took 3rd place?
<|assistant|>
SELECT "4th_place" FROM "table1_11577996_1" WHERE "3rd_place"='Oklahoma State University (Black)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11577996_1" (
"year" real,
"location" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What school took 3rd place in 2007?
<|assistant|>
SELECT "3rd_place" FROM "table1_11577996_1" WHERE "year"=2007;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11577996_1" (
"year" real,
"location" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What year did the University of California, San Diego take 1st place?
<|assistant|>
SELECT MAX("year") FROM "table1_11577996_1" WHERE "1st_place"='University of California, San Diego';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11577996_1" (
"year" real,
"location" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What school took 4th place in 2002?
<|assistant|>
SELECT "4th_place" FROM "table1_11577996_1" WHERE "year"=2002;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11577996_1" (
"year" real,
"location" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text,
"5th_place" text
);
Question: What school took 4th place in 2001?
<|assistant|>
SELECT "4th_place" FROM "table1_11577996_1" WHERE "year"=2001;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_18" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: Who were the runner(s)-up when Tiger won by 11 strokes?
<|assistant|>
SELECT "runner_s_up" FROM "wins_18" WHERE "margin_of_victory"='11 strokes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_18" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What tournament did Tiger hold a 2 shot lead after 54 holes?
<|assistant|>
SELECT "championship" FROM "wins_18" WHERE "54_holes"='2 shot lead';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_18" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the margin of victory over Justin Leonard, phillip price?
<|assistant|>
SELECT COUNT("margin_of_victory") FROM "wins_18" WHERE "runner_s_up"='Justin Leonard, Phillip Price';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grounds" (
"name_of_ground" text,
"location" text,
"first_class_span" text,
"worcs_f_c_matches" real,
"list_a_span" text,
"worcs_la_matches" real
);
Question: There were 68 worcs f-c matches played on Chester Road North Ground.
<|assistant|>
SELECT "worcs_f_c_matches" FROM "grounds" WHERE "name_of_ground"='Chester Road North Ground';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pga_tour_professional_career_summary" (
"year" real,
"starts" real,
"cuts_made" text,
"wins_majors" text,
"2nd" real,
"3rd" real,
"top_10" real,
"top_25" real,
"earnings" real,
"money_list_rank" real,
"adjusted_scoring_average_rank" text
);
Question: How many times did Tiger get second in the year where there were 11 cuts?
<|assistant|>
SELECT MAX("2nd") FROM "pga_tour_professional_career_summary" WHERE "cuts_made"='11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name" text,
"number" text,
"builder" text,
"date_built" text,
"wheel_arrangement" text,
"driving_wheels" text,
"cylinders" text,
"boiler_pressure" text,
"notes" text
);
Question: What's written in the notes for the locomotives with cylinder size of 12" x 17"?
<|assistant|>
SELECT "notes" FROM "steam_locomotives" WHERE "cylinders"='12\" x 17\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name" text,
"number" text,
"builder" text,
"date_built" text,
"wheel_arrangement" text,
"driving_wheels" text,
"cylinders" text,
"boiler_pressure" text,
"notes" text
);
Question: Which locomotives 12" x 17" are both ex-industrial and built by Manning Wardle?
<|assistant|>
SELECT "name" FROM "steam_locomotives" WHERE "notes"='Ex-industrial' AND "builder"='Manning Wardle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name" text,
"number" text,
"builder" text,
"date_built" text,
"wheel_arrangement" text,
"driving_wheels" text,
"cylinders" text,
"boiler_pressure" text,
"notes" text
);
Question: What's the size of the cylinders built by Longbottom, Barnsley?
<|assistant|>
SELECT "cylinders" FROM "steam_locomotives" WHERE "builder"='Longbottom, Barnsley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name" text,
"number" text,
"builder" text,
"date_built" text,
"wheel_arrangement" text,
"driving_wheels" text,
"cylinders" text,
"boiler_pressure" text,
"notes" text
);
Question: Who is the builder of the locomotives with wheel arrangement of 2-4-2 T?
<|assistant|>
SELECT "builder" FROM "steam_locomotives" WHERE "wheel_arrangement"='2-4-2 T';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name" text,
"number" text,
"builder" text,
"date_built" text,
"wheel_arrangement" text,
"driving_wheels" text,
"cylinders" text,
"boiler_pressure" text,
"notes" text
);
Question: On what date did Hudswell Clarke build the locomotive with 0-6-0 ST wheel arrangements?
<|assistant|>
SELECT "date_built" FROM "steam_locomotives" WHERE "wheel_arrangement"='0-6-0 ST' AND "builder"='Hudswell Clarke';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1909" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What amount of times is the name, Bok De Korver listed?
<|assistant|>
SELECT MAX("number") FROM "1905_1909" WHERE "name"='Bok de Korver';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1909" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What is the total number of goals on the debut date of 14-04-1907?
<|assistant|>
SELECT COUNT("number_of_goals") FROM "1905_1909" WHERE "date_of_debut"='14-04-1907';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1909" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What is the date of debut that has a date of birth listed at 24-10-1887?
<|assistant|>
SELECT "date_of_debut" FROM "1905_1909" WHERE "date_of_birth"='24-10-1887';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1909" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What is the name of person that scored 10 goals?
<|assistant|>
SELECT "name" FROM "1905_1909" WHERE "number_of_goals"=10;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1909" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What is the name of the person whose date of death is 01-04-1954?
<|assistant|>
SELECT "name" FROM "1905_1909" WHERE "date_of_death"='01-04-1954';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1905_1909" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What is the toatl number of caps where the name is Hans Blume?
<|assistant|>
SELECT COUNT("number_of_caps") FROM "1905_1909" WHERE "name"='Hans Blume';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1910_1919" (
"number" real,
"date_of_debut" text,
"name" text,
"date_of_birth" text,
"number_of_caps" real,
"number_of_goals" real,
"date_of_death" text
);
Question: What was the date of Henk Hordijk's death?
<|assistant|>
SELECT "date_of_death" FROM "1910_1919" WHERE "name"='Henk Hordijk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What frequency is the pentium dual-core t3200?
<|assistant|>
SELECT "frequency" FROM "65_nm" WHERE "model_number"='Pentium Dual-Core T3200';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is the frequency of the model with part number lf80537gf0411m?
<|assistant|>
SELECT "frequency" FROM "65_nm" WHERE "part_number_s"='LF80537GF0411M';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is the FSB of the model with part number lf80537gf0411m?
<|assistant|>
SELECT "fsb" FROM "65_nm" WHERE "part_number_s"='LF80537GF0411M';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is the FSB of the model with part number lf80537ge0251mn?
<|assistant|>
SELECT "fsb" FROM "65_nm" WHERE "part_number_s"='LF80537GE0251MN';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is the socket for the pentium dual-core t2410?
<|assistant|>
SELECT "socket" FROM "65_nm" WHERE "model_number"='Pentium Dual-Core T2410';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "65_nm" (
"model_number" text,
"s_spec_number" text,
"frequency" text,
"l2_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"release_price_usd" text
);
Question: What is the release date for the model with sspec number sla4h(m0)?
<|assistant|>
SELECT "release_date" FROM "65_nm" WHERE "s_spec_number"='SLA4H(M0)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: How many different scores are there for the Verizon Classic?
<|assistant|>
SELECT COUNT("score") FROM "tournament_results" WHERE "tournament"='Verizon Classic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What was the score for the tournament in Michigan where the purse was smaller than 1813335.221493934?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "location"='Michigan' AND "purse"<1813335.221493934;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: How many tournaments were held in Maryland?
<|assistant|>
SELECT COUNT("tournament") FROM "tournament_results" WHERE "location"='Maryland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: How many different locations have the score 207 (-10)?
<|assistant|>
SELECT COUNT("location") FROM "tournament_results" WHERE "score"='207 (-10)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11604804_5" (
"institution" text,
"nickname" text,
"status" text,
"founded" real,
"color" text,
"location" text
);
Question: What is the founding of parsu cimmarons?
<|assistant|>
SELECT MIN("founded") FROM "table1_11604804_5" WHERE "nickname"='ParSU Cimmarons';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11604804_5" (
"institution" text,
"nickname" text,
"status" text,
"founded" real,
"color" text,
"location" text
);
Question: What was the founding of navy blue?
<|assistant|>
SELECT "founded" FROM "table1_11604804_5" WHERE "color"='Navy Blue';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11604804_5" (
"institution" text,
"nickname" text,
"status" text,
"founded" real,
"color" text,
"location" text
);
Question: What was the number of nickname founded 1918?
<|assistant|>
SELECT COUNT("nickname") FROM "table1_11604804_5" WHERE "founded"=1918;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11604804_5" (
"institution" text,
"nickname" text,
"status" text,
"founded" real,
"color" text,
"location" text
);
Question: What was the number of location of nickname cbsua formerly known cssac?
<|assistant|>
SELECT COUNT("location") FROM "table1_11604804_5" WHERE "nickname"='CBSUA formerly known CSSAC';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11603267_1" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: Name the tournament for arizona
<|assistant|>
SELECT "tournament" FROM "table1_11603267_1" WHERE "location"='Arizona';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: Name the state and federal when property taxes is 17,199,210
<|assistant|>
SELECT "state_federal" FROM "district_122_gross_revenue_by_sources" WHERE "property_taxes"='17,199,210';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: What is the local sources for property taxes of 11,631,227?
<|assistant|>
SELECT "other_local_sources" FROM "district_122_gross_revenue_by_sources" WHERE "property_taxes"='11,631,227';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "district_122_gross_revenue_by_sources" (
"year" real,
"property_taxes" text,
"investment_earnings" text,
"other_local_sources" text,
"state_federal" text,
"total_revenue" text
);
Question: What is the number of local sources for state and federal 12,929,489
<|assistant|>
SELECT "other_local_sources" FROM "district_122_gross_revenue_by_sources" WHERE "state_federal"='12,929,489';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1893" (
"governorate" text,
"name_in_russian" text,
"name_in_polish" text,
"seat" text,
"area_in_thousands_of_km_2" real,
"population_in_thousands_1905" real
);
Question: What seat does плоцкая губерния hold?
<|assistant|>
SELECT "seat" FROM "1893" WHERE "name_in_russian"='Плоцкая губерния';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1893" (
"governorate" text,
"name_in_russian" text,
"name_in_polish" text,
"seat" text,
"area_in_thousands_of_km_2" real,
"population_in_thousands_1905" real
);
Question: Whose name in Polish holds the Lublin seat?
<|assistant|>
SELECT "name_in_polish" FROM "1893" WHERE "seat"='Lublin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1893" (
"governorate" text,
"name_in_russian" text,
"name_in_polish" text,
"seat" text,
"area_in_thousands_of_km_2" real,
"population_in_thousands_1905" real
);
Question: Who, in Polish, governs a location with a population of 1640 (in thousands)?
<|assistant|>
SELECT "name_in_polish" FROM "1893" WHERE "population_in_thousands_1905"=1640;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1893" (
"governorate" text,
"name_in_russian" text,
"name_in_polish" text,
"seat" text,
"area_in_thousands_of_km_2" real,
"population_in_thousands_1905" real
);
Question: What seat does Gubernia Warszawska hold?
<|assistant|>
SELECT "seat" FROM "1893" WHERE "name_in_polish"='Gubernia warszawska';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1893" (
"governorate" text,
"name_in_russian" text,
"name_in_polish" text,
"seat" text,
"area_in_thousands_of_km_2" real,
"population_in_thousands_1905" real
);
Question: What population (in thousands) is Lublin's seat?
<|assistant|>
SELECT "population_in_thousands_1905" FROM "1893" WHERE "seat"='Lublin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1893" (
"governorate" text,
"name_in_russian" text,
"name_in_polish" text,
"seat" text,
"area_in_thousands_of_km_2" real,
"population_in_thousands_1905" real
);
Question: плоцкая губерния governs an area with what area (in thousand km 2)?
<|assistant|>
SELECT "area_in_thousands_of_km_2" FROM "1893" WHERE "name_in_russian"='Плоцкая губерния';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_attendance" (
"venue" text,
"hosted" real,
"average" real,
"highest" real,
"lowest" real,
"total" real,
"last_year" text,
"up_down" text
);
Question: What is the up/down at the venue that hosted 7 games?
<|assistant|>
SELECT "up_down" FROM "match_attendance" WHERE "hosted"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_attendance" (
"venue" text,
"hosted" real,
"average" real,
"highest" real,
"lowest" real,
"total" real,
"last_year" text,
"up_down" text
);
Question: What was the attendance last year at Manuka Oval?
<|assistant|>
SELECT "last_year" FROM "match_attendance" WHERE "venue"='Manuka Oval';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_attendance" (
"venue" text,
"hosted" real,
"average" real,
"highest" real,
"lowest" real,
"total" real,
"last_year" text,
"up_down" text
);
Question: What was the lowest attendance figure at Football Park?
<|assistant|>
SELECT "lowest" FROM "match_attendance" WHERE "venue"='Football Park';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "match_attendance" (
"team" text,
"hosted" real,
"average" real,
"highest" real,
"lowest" real,
"total" real,
"last_year" real,
"up_down" text
);
Question: What is the total of port adelaide
<|assistant|>
SELECT MAX("total") FROM "match_attendance" WHERE "team"='Port Adelaide';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: what's the maximum purse( $ ) with score value of 204 (-9)
<|assistant|>
SELECT MAX("purse") FROM "tournament_results" WHERE "score"='204 (-9)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: what's the winner with purse( $ ) value of bigger than 964017.2297960471 and date value of may 28
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "purse">964017.2297960471 AND "date"='May 28';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: what's the winner with tournament value of kroger senior classic
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "tournament"='Kroger Senior Classic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: what's the date with tournament value of ford senior players championship
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "tournament"='Ford Senior Players Championship';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: what's the location with tournament value of quicksilver classic
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='Quicksilver Classic';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: what's the score with date oct 1
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "date"='Oct 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
Question: What was the score for the Toshiba Senior Classic?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "tournament"='Toshiba Senior Classic';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.