text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: How many were written by Peter Winther?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_20704243_3" WHERE "directed_by"='Peter Winther';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: How many directors were in Season 2?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_20704243_3" WHERE "season_num"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Who is the director of the episode titled "The Reunion Job"?
<|assistant|>
SELECT "directed_by" FROM "table1_20704243_4" WHERE "title"='\"The Reunion Job\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: When was the episode written by Albert Kim aired for the first time?
<|assistant|>
SELECT "original_air_date" FROM "table1_20704243_4" WHERE "written_by"='Albert Kim';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: When was the episode titled "The Boost Job" originally aired?
<|assistant|>
SELECT "original_air_date" FROM "table1_20704243_4" WHERE "title"='\"The Boost Job\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: How many millions of people in the US saw the episode titled "The Reunion Job"?
<|assistant|>
SELECT "u_s_viewers_in_millions" FROM "table1_20704243_4" WHERE "title"='\"The Reunion Job\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Who wrote the episode titled "The Morning After Job"?
<|assistant|>
SELECT "written_by" FROM "table1_20704243_4" WHERE "title"='\"The Morning After Job\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Name the series number for m. scott veach & rebecca kirsch
<|assistant|>
SELECT "series_num" FROM "table1_20704243_5" WHERE "written_by"='M. Scott Veach & Rebecca Kirsch';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Name the number of viewers for series number 50
<|assistant|>
SELECT "u_s_viewers_in_millions" FROM "table1_20704243_5" WHERE "series_num"=50;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20704243_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
Question: Name who directed season 1
<|assistant|>
SELECT "directed_by" FROM "table1_20704243_5" WHERE "season_num"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
Question: What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=
<|assistant|>
SELECT COUNT("moment_of_inertia_in_torsion_j_cm_4") FROM "indian_standard_beams_ismb" WHERE "beam_height_mm"=120;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
Question: What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?
<|assistant|>
SELECT "cross_section_area_cm_2" FROM "indian_standard_beams_ismb" WHERE "moment_of_inertia_in_torsion_j_cm_4"='2.54';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
Question: What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg
<|assistant|>
SELECT "flange_thickness_mm" FROM "indian_standard_beams_ismb" WHERE "weight_kg_m"='6.0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
Question: What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?
<|assistant|>
SELECT COUNT("moment_of_inertia_in_torsion_j_cm_4") FROM "indian_standard_beams_ismb" WHERE "web_thickness_mm"='4.7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
Question: What is the flange thickness (mm) for the weight (kg/m) 10.4?
<|assistant|>
SELECT "flange_thickness_mm" FROM "indian_standard_beams_ismb" WHERE "weight_kg_m"='10.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
Question: What is the flange width (mm) for cross section area (cm 2) 16.4?
<|assistant|>
SELECT COUNT("flange_width_mm") FROM "indian_standard_beams_ismb" WHERE "cross_section_area_cm_2"='16.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
Question: In what round was lyon (32) a 5 seed?
<|assistant|>
SELECT "lyon_32" FROM "players" WHERE "seed"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
Question: How many items were recorded marseille (32 draw) was a 2 seed?
<|assistant|>
SELECT COUNT("marseille_32_draw") FROM "players" WHERE "seed"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
Question: What is the seed for lyon (32) was DNQ?
<|assistant|>
SELECT MAX("seed") FROM "players" WHERE "lyon_32"='DNQ';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
Question: What was the result for Paris(48-byes) for 3 seed?
<|assistant|>
SELECT "paris_48_byes" FROM "players" WHERE "seed"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What was McCain's percentage when Obama had 64.39% of the vote?
<|assistant|>
SELECT "mc_cainpct" FROM "by" WHERE "obamapct"='64.39%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What was McCain's vote when Obama had 48.35%
<|assistant|>
SELECT MIN("mc_cainnum") FROM "by" WHERE "obamapct"='48.35%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: How many votes did Obama have at 32.12%
<|assistant|>
SELECT MIN("obamanum") FROM "by" WHERE "obamapct"='32.12%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What parish did McCain have 45.37% of the votes?
<|assistant|>
SELECT "parish" FROM "by" WHERE "mc_cainpct"='45.37%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
Question: What is the total number of votes McCain had in Webster?
<|assistant|>
SELECT MAX("mc_cainnum") FROM "by" WHERE "parish"='Webster';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
Question: What was the original air date for the episode with production code 1wab06?
<|assistant|>
SELECT "originalairdate" FROM "table1_20726262_2" WHERE "production_code"='1WAB06';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
Question: What title episode did Paris Barclay direct?
<|assistant|>
SELECT "title" FROM "table1_20726262_2" WHERE "directedby"='Paris Barclay';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
Question: What was the production code for episode #1?
<|assistant|>
SELECT "production_code" FROM "table1_20726262_2" WHERE "no_in_series"=1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
Question: What number episode was written by kurt sutter & jack logiudice?
<|assistant|>
SELECT MAX("no_in_series") FROM "table1_20726262_2" WHERE "writtenby"='Kurt Sutter & Jack LoGiudice';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What was the production code for the episode with 3.38 million viewers?
<|assistant|>
SELECT "production_code" FROM "table1_20726262_3" WHERE "u_s_viewers_million"='3.38';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who were the writers for "Balm"?
<|assistant|>
SELECT "writtenby" FROM "table1_20726262_3" WHERE "title"='\"Balm\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: What season number did production code 2wab12?
<|assistant|>
SELECT "no_in_season" FROM "table1_20726262_3" WHERE "production_code"='2WAB12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: How many numbers in the season were written by Brett Conrad & Liz Sagal?
<|assistant|>
SELECT COUNT("no_in_season") FROM "table1_20726262_3" WHERE "writtenby"='Brett Conrad & Liz Sagal';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: what i the maximum number in the series where the production code is 3wab07?
<|assistant|>
SELECT MAX("no_in_series") FROM "table1_20726262_4" WHERE "production_code"='3WAB07';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: what is the maximum number in the season wher the us viewers is 2.59?
<|assistant|>
SELECT MAX("no_in_season") FROM "table1_20726262_4" WHERE "u_s_viewers_million"='2.59';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20726262_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: what is the written by and production code is 3wab03?
<|assistant|>
SELECT "writtenby" FROM "table1_20726262_4" WHERE "production_code"='3WAB03';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
Question: How many seats were won, when the seats contested was 48?
<|assistant|>
SELECT "seats_won" FROM "table1_20728138_1" WHERE "seats_contested"=48;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
Question: How many seats are contested for independents?
<|assistant|>
SELECT "seats_contested" FROM "table1_20728138_1" WHERE "party"='Independents';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
Question: What is the percentage seats contested for the revolutionary socialist party?
<|assistant|>
SELECT "pct_in_seats_contested" FROM "table1_20728138_1" WHERE "party"='Revolutionary Socialist Party';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
Question: What is the 2003 seat number, when seats contested was at 38.23%
<|assistant|>
SELECT MIN("2003_seats") FROM "table1_20728138_1" WHERE "pct_in_seats_contested"='38.23%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
Question: How many seats were forfeited in the revolutionary socialist party?
<|assistant|>
SELECT COUNT("seats_forfeited") FROM "table1_20728138_1" WHERE "party"='Revolutionary Socialist Party';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: Who was the opponent when the attendance was exactly 16642?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "attendance"=16642;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What is the score for game #7?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "num"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: Who was the opponent on February 28, 1991
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='February 28, 1991';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"tar_heels_points" real,
"opponents" real,
"record" text
);
Question: What was the date when the record was 1-0?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "record"='1-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"tar_heels_points" real,
"opponents" real,
"record" text
);
Question: How many results finished in a loss?
<|assistant|>
SELECT COUNT("tar_heels_points") FROM "schedule" WHERE "result"='Loss';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"tar_heels_points" real,
"opponents" real,
"record" text
);
Question: How many games were against Furman?
<|assistant|>
SELECT MAX("game") FROM "schedule" WHERE "opponent"='Furman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"tar_heels_points" real,
"opponents" real,
"record" text
);
Question: How many times were Duke the opponents?
<|assistant|>
SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='Duke';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"tar_heels_points" real,
"opponents" real,
"record" text
);
Question: How many losses were there when the record was 4-0?
<|assistant|>
SELECT MAX("opponents") FROM "schedule" WHERE "record"='4-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What was the game #7, at or versus (home or at)?
<|assistant|>
SELECT "at_vs" FROM "game_log" WHERE "num"='7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: Who did they play against in game 7?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "num"='7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
Question: What game number had an attendance of 2813?
<|assistant|>
SELECT "num" FROM "game_log" WHERE "attendance"=2813;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20746062_1" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"thundering_herd_points" real,
"opponents" real,
"record" text
);
Question: What day did the play game number 9?
<|assistant|>
SELECT "date" FROM "table1_20746062_1" WHERE "game"=9;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20746062_1" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"thundering_herd_points" real,
"opponents" real,
"record" text
);
Question: What was the result of the game when they were 2-1?
<|assistant|>
SELECT "result" FROM "table1_20746062_1" WHERE "record"='2-1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
Question: What was the record when the Bruins had 41 points?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "bruins_points"=41;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
Question: What was the date for game 9?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "game"=9;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
Question: What game did the Bruins have 56 points?
<|assistant|>
SELECT MAX("game") FROM "schedule" WHERE "bruins_points"=56;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: What is the total of played where lost equals 4 and drawn equals 1?
<|assistant|>
SELECT "played" FROM "table1_20760802_1" WHERE "lost"='4' AND "drawn"='1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: How many drawn are there where the Club is new ross?
<|assistant|>
SELECT "drawn" FROM "table1_20760802_1" WHERE "club"='New Ross';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: How may drawn equal points against at 129?
<|assistant|>
SELECT "drawn" FROM "table1_20760802_1" WHERE "points_against"='129';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: How many points differ from 134?
<|assistant|>
SELECT "points_difference" FROM "table1_20760802_1" WHERE "points_for"='134';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: How many of the points difference lost equal 10?
<|assistant|>
SELECT "points_difference" FROM "table1_20760802_1" WHERE "lost"='10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
Question: How many teams that played won 0 games?
<|assistant|>
SELECT "played" FROM "table1_20760802_1" WHERE "won"='0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
Question: What are the public schools with a master's university?
<|assistant|>
SELECT "location_s" FROM "institutions" WHERE "control"='Public' AND "type"='Master''s university';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
Question: What is the minimum enrollment for Plainfield?
<|assistant|>
SELECT MIN("enrollment_2009") FROM "institutions" WHERE "location_s"='Plainfield';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
Question: What type of school had an enrollment in 2009 of 224?
<|assistant|>
SELECT "type" FROM "institutions" WHERE "enrollment_2009"=224;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
Question: When was Southern Vermont College founded?
<|assistant|>
SELECT MAX("founded") FROM "institutions" WHERE "school"='Southern Vermont College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
Question: Is art school public or private?
<|assistant|>
SELECT "control" FROM "institutions" WHERE "type"='Art school';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
Question: What school was founded in 1791?
<|assistant|>
SELECT "school" FROM "institutions" WHERE "founded"=1791;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_spring_2012" real,
"founded" real,
"accreditation" text
);
Question: Name the number of spring enrollment for sioux falls seminary
<|assistant|>
SELECT COUNT("enrollment_spring_2012") FROM "active_institutions" WHERE "school"='Sioux Falls Seminary';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_spring_2012" real,
"founded" real,
"accreditation" text
);
Question: Name the accrediatation for southeast technical institute
<|assistant|>
SELECT "accreditation" FROM "active_institutions" WHERE "school"='Southeast Technical Institute';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "active_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_spring_2012" real,
"founded" real,
"accreditation" text
);
Question: Name the total number of founded for yankton
<|assistant|>
SELECT COUNT("founded") FROM "active_institutions" WHERE "location_s"='Yankton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
Question: What is the Italian word for the English word "otter"?
<|assistant|>
SELECT "italian" FROM "central_and_southern_calabrian" WHERE "english"='otter';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
Question: How many French words does zinnapòtamu in Central-Southern Calabrian translate to?
<|assistant|>
SELECT COUNT("french") FROM "central_and_southern_calabrian" WHERE "central_southern_calabrian"='zinnapòtamu';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
Question: What is the French translation for the English word "orange"?
<|assistant|>
SELECT "french" FROM "central_and_southern_calabrian" WHERE "english"='orange';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
Question: What is the Italian word for "orange" in English?
<|assistant|>
SELECT "italian" FROM "central_and_southern_calabrian" WHERE "english"='orange';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
Question: How many Phonetic Greek words translate to grenouille in French?
<|assistant|>
SELECT COUNT("phonetic_greek") FROM "central_and_southern_calabrian" WHERE "french"='grenouille';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
Question: What does the word "frog"in English translate to in Italian?
<|assistant|>
SELECT "italian" FROM "central_and_southern_calabrian" WHERE "english"='frog';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
Question: Where are the Alexandria enrollment locations?
<|assistant|>
SELECT "enrollment" FROM "primarily_religious_institutions" WHERE "location_s"='Alexandria';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
Question: What is the control type which was founded in 1991?
<|assistant|>
SELECT "control" FROM "primarily_religious_institutions" WHERE "founded"='1991';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
Question: What is the control type which was founded in 1818?
<|assistant|>
SELECT "control" FROM "primarily_religious_institutions" WHERE "founded"='1818';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
Question: What year was Hartland College founded?
<|assistant|>
SELECT "founded" FROM "primarily_religious_institutions" WHERE "school"='Hartland College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
Question: What type of school is Cordoba University?
<|assistant|>
SELECT "type" FROM "primarily_religious_institutions" WHERE "school"='Cordoba University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
Question: What school is in Richmond?
<|assistant|>
SELECT "school" FROM "primarily_religious_institutions" WHERE "location_s"='Richmond';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
Question: What accreditation does Hollins University have?
<|assistant|>
SELECT "accreditation" FROM "public_and_established_private_instituti" WHERE "school"='Hollins University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
Question: What was the largest founded year for schools having enrollment of exactly 696?
<|assistant|>
SELECT MAX("founded") FROM "public_and_established_private_instituti" WHERE "enrollment"='696';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
Question: What is the control for Christopher Newport University?
<|assistant|>
SELECT "control" FROM "public_and_established_private_instituti" WHERE "school"='Christopher Newport University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
Question: What is the total number of schools founded that have an enrollment of 5634?
<|assistant|>
SELECT COUNT("founded") FROM "public_and_established_private_instituti" WHERE "enrollment"='5634';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
Question: What type of school is Stratford University?
<|assistant|>
SELECT "type" FROM "public_and_established_private_instituti" WHERE "school"='Stratford University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
Question: What type of school is Jefferson College of Health Sciences?
<|assistant|>
SELECT "type" FROM "public_and_established_private_instituti" WHERE "school"='Jefferson College of Health Sciences';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
Question: Name the nec record for 11th standing
<|assistant|>
SELECT "nec_record" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='11th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
Question: Name the year for standing 9th
<|assistant|>
SELECT "year" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='9th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
Question: Name the year for t-10th
<|assistant|>
SELECT "year" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='T-10th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
Question: Name the regular season record for standing 11th
<|assistant|>
SELECT "regular_season_record_w_l" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='11th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "departmental_service" (
"number" text,
"previous_br_no" real,
"taken_into_deptal_stock" real,
"withdrawn" real,
"disposal" text
);
Question: Name the most previous br number
<|assistant|>
SELECT MAX("previous_br_no") FROM "departmental_service";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "departmental_service" (
"number" text,
"previous_br_no" real,
"taken_into_deptal_stock" real,
"withdrawn" real,
"disposal" text
);
Question: Name the total number of previous br number for number 21
<|assistant|>
SELECT COUNT("previous_br_no") FROM "departmental_service" WHERE "number"='21';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20780285_1" (
"country_region" text,
"title" text,
"television_network" text,
"winners" text,
"presenters" text,
"trainers" text
);
Question: What country uses the title Marele Câștigător The Big Winner?
<|assistant|>
SELECT "country_region" FROM "table1_20780285_1" WHERE "title"='Marele câștigător The Big Winner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_20780285_1" (
"country_region" text,
"title" text,
"television_network" text,
"winners" text,
"presenters" text,
"trainers" text
);
Question: Silvio Santos is the presenter in what country?
<|assistant|>
SELECT "country_region" FROM "table1_20780285_1" WHERE "presenters"='Silvio Santos';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
Question: What is the home town of David Noel?
<|assistant|>
SELECT "home_town" FROM "roster" WHERE "name"='David Noel';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
Question: What is the high school for the player who's hometown is Blue Island, Il?
<|assistant|>
SELECT "high_school" FROM "roster" WHERE "home_town"='Blue Island, IL';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.