text
stringlengths 310
1.28k
|
|---|
<|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: Who was the winner when the score was 281 (-6)?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "score"='281 (-6)';<|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 scores were at the Northville Long Island Classic?
<|assistant|>
SELECT COUNT("score") FROM "tournament_results" WHERE "tournament"='Northville Long Island 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 tournament where winner is raymond floyd (1)
<|assistant|>
SELECT "tournament" FROM "tournament_results" WHERE "winner"='Raymond Floyd (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 is the total number of purse( $ ) where winner is jimmy powell (2)
<|assistant|>
SELECT COUNT("purse") FROM "tournament_results" WHERE "winner"='Jimmy Powell (2)';<|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 where location is illinois
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "location"='Illinois';<|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 is the minimum purse( $ ) where tournament is ko olina senior invitational
<|assistant|>
SELECT MIN("purse") FROM "tournament_results" WHERE "tournament"='Ko Olina Senior Invitational';<|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 where tournament is raley's senior gold rush
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='Raley''s Senior Gold Rush';<|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 is the maximum 1st prize( $ ) where score is 193 (-17)
<|assistant|>
SELECT MAX("1st_prize") FROM "tournament_results" WHERE "score"='193 (-17)';<|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" text
);
Question: How much was the prize money for the 275000 purse?
<|assistant|>
SELECT "1st_prize" FROM "tournament_results" WHERE "purse"=275000;<|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" text
);
Question: What is the prize money for Virginia?
<|assistant|>
SELECT "1st_prize" FROM "tournament_results" WHERE "location"='Virginia';<|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 ended with a score of 204 (-12)?
<|assistant|>
SELECT COUNT("tournament") FROM "tournament_results" WHERE "score"='204 (-12)';<|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 of the Painewebber Invitational tournament?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "tournament"='PaineWebber Invitational';<|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: Where was the GTE Suncoast Classic tournament held?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='GTE Suncoast 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 minimal amount ($) of the 1st prize in the tournaments in New Mexico?
<|assistant|>
SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='New Mexico';<|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 are all the dates with a score of 203 (-13)?
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "score"='203 (-13)';<|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: For which tournaments was the score 135 (-7)?
<|assistant|>
SELECT "tournament" FROM "tournament_results" WHERE "score"='135 (-7)';<|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: Which tournaments have a first prize of $40000
<|assistant|>
SELECT "tournament" FROM "tournament_results" WHERE "1st_prize"=40000;<|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 locations logged a score of 206 (-7)?
<|assistant|>
SELECT COUNT("location") FROM "tournament_results" WHERE "score"='206 (-7)';<|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 recorded a score of 206 (-7)?
<|assistant|>
SELECT COUNT("tournament") FROM "tournament_results" WHERE "score"='206 (-7)';<|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: Name all the tournaments that took place in Rhode Island.
<|assistant|>
SELECT "tournament" FROM "tournament_results" WHERE "location"='Rhode Island';<|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 is the state that hosted a tournament with the score of 208 (-8)?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "score"='208 (-8)';<|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: Where was the Fairfield Barnett classic tournament held?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "tournament"='Fairfield Barnett 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: How many purses were there for the mar 16?
<|assistant|>
SELECT COUNT("purse") FROM "tournament_results" WHERE "date"='Mar 16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2007" (
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: When did the series number 23 air?
<|assistant|>
SELECT "original_air_date" FROM "season_1_2007" WHERE "series_no"=23;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2007" (
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the production code of "surprise, surprise"?
<|assistant|>
SELECT MAX("production_code") FROM "season_1_2007" WHERE "title"='\"Surprise, Surprise\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_1_2007" (
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What was the airdate of 21 series number?
<|assistant|>
SELECT "original_air_date" FROM "season_1_2007" WHERE "series_no"=21;<|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: Which located featured the first prize of 33500?
<|assistant|>
SELECT "location" FROM "tournament_results" WHERE "1st_prize"=33500;<|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: Who won the Suntree Seniors Classic?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "tournament"='Suntree Seniors 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: How much was the prize in the tournament where the winning score was 289 (9)?
<|assistant|>
SELECT "purse" FROM "tournament_results" WHERE "score"='289 (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: When was the tournament that was won with a score of 204 (-6) played?
<|assistant|>
SELECT "date" FROM "tournament_results" WHERE "score"='204 (-6)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11630008_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who wrote "Stop Being all Funky"?
<|assistant|>
SELECT "written_by" FROM "table1_11630008_5" WHERE "title"='\"Stop Being All Funky\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11630008_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What was the season number for the episode with the series number 61?
<|assistant|>
SELECT MAX("season_num") FROM "table1_11630008_5" WHERE "series_num"=61;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11630008_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What was the title of the episode with the production code 311?
<|assistant|>
SELECT "title" FROM "table1_11630008_5" WHERE "production_code"=311;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11630008_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who directed the episode written by Lamont Ferrell?
<|assistant|>
SELECT "directed_by" FROM "table1_11630008_5" WHERE "written_by"='Lamont Ferrell';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7" (
"edition" text,
"round" text,
"date" text,
"partnering" text,
"against" text,
"surface" text,
"opponents" text,
"w_l" text,
"result" text
);
Question: What date was the result 6–2, 4–6, 6–4?
<|assistant|>
SELECT "date" FROM "doubles_7" WHERE "result"='6–2, 4–6, 6–4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_7" (
"edition" text,
"round" text,
"date" text,
"partnering" text,
"against" text,
"surface" text,
"opponents" text,
"w_l" text,
"result" text
);
Question: How many matches had the result of 6–3, 6–2?
<|assistant|>
SELECT COUNT("partnering") FROM "doubles_7" WHERE "result"='6–3, 6–2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11642945_1" (
"total_no" real,
"celebrity" text,
"director" text,
"original_air_date" text,
"viewers" text
);
Question: If the Original Air Date is 10January2008, what directors released on that date?
<|assistant|>
SELECT "director" FROM "table1_11642945_1" WHERE "original_air_date"='10January2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11642945_1" (
"total_no" real,
"celebrity" text,
"director" text,
"original_air_date" text,
"viewers" text
);
Question: The original air date of 29November2007 has what total no.?
<|assistant|>
SELECT "total_no" FROM "table1_11642945_1" WHERE "original_air_date"='29November2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11642945_1" (
"total_no" real,
"celebrity" text,
"director" text,
"original_air_date" text,
"viewers" text
);
Question: Margot Kidder had what director?
<|assistant|>
SELECT "director" FROM "table1_11642945_1" WHERE "celebrity"='Margot Kidder';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11642945_1" (
"total_no" real,
"celebrity" text,
"director" text,
"original_air_date" text,
"viewers" text
);
Question: How many celebrities had an 18October2007 Original air Date?
<|assistant|>
SELECT COUNT("celebrity") FROM "table1_11642945_1" WHERE "original_air_date"='18October2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11642945_1" (
"total_no" real,
"celebrity" text,
"director" text,
"original_air_date" text,
"viewers" text
);
Question: Which viewers had Matt Gallagher as the director?
<|assistant|>
SELECT "viewers" FROM "table1_11642945_1" WHERE "director"='Matt Gallagher';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2008_09" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the number of series of the title of "your wife's a payne"?
<|assistant|>
SELECT MAX("series_num") FROM "season_5_2008_09" WHERE "title"='\"Your Wife''s a Payne\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2008_09" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who write "a grand payne"?
<|assistant|>
SELECT "written_by" FROM "season_5_2008_09" WHERE "title"='\"A Grand Payne\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2008_09" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the number of series with a title of "with friends like these"?
<|assistant|>
SELECT COUNT("series_num") FROM "season_5_2008_09" WHERE "title"='\"With Friends Like These\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2008_09" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the number of series with production code 503?
<|assistant|>
SELECT COUNT("series_num") FROM "season_5_2008_09" WHERE "production_code"=503;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2008_09" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the title of production code 514?
<|assistant|>
SELECT "title" FROM "season_5_2008_09" WHERE "production_code"=514;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text
);
Question: What is the location of the institution barton college
<|assistant|>
SELECT "location" FROM "current_members" WHERE "institution"='Barton College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text
);
Question: Which institutions joined in 1993
<|assistant|>
SELECT "institution" FROM "current_members" WHERE "joined"='1993';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text
);
Question: what are the locations that joined in 2008
<|assistant|>
SELECT "location" FROM "current_members" WHERE "joined"='2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text
);
Question: What is the minimum enrollment at barton college
<|assistant|>
SELECT MIN("enrollment") FROM "current_members" WHERE "institution"='Barton College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"nickname" text
);
Question: When was erskine college founded
<|assistant|>
SELECT "founded" FROM "current_members" WHERE "institution"='Erskine College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_of_household" text
);
Question: What is ithe range for married filing separately where head of household is $117,451–$190,200?
<|assistant|>
SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_of_household" text
);
Question: What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950?
<|assistant|>
SELECT COUNT("marginal_ordinary_income_tax_rate") FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$8,351– $33,950';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_of_household" text
);
Question: What is the range for married filing separately in which the head of household is $117,451–$190,200?
<|assistant|>
SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_of_household" text
);
Question: What is the range of married filing jointly or qualified widower in which married filing separately is $33,951–$68,525?
<|assistant|>
SELECT "married_filing_jointly_or_qualified_widow_er" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_separately"='$33,951–$68,525';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_of_household" text
);
Question: What is the range of the head of household whereas single is $171,551–$372,950?
<|assistant|>
SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$171,551–$372,950';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
"marginal_ordinary_income_tax_rate" text,
"single" text,
"married_filing_jointly_or_qualified_widow_er" text,
"married_filing_separately" text,
"head_of_household" text
);
Question: What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?
<|assistant|>
SELECT COUNT("marginal_ordinary_income_tax_rate") FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_jointly_or_qualified_widow_er"='$208,851–$372,950';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
);
Question: who is the coach where dudley tuckey medal is ben howlett
<|assistant|>
SELECT "coach" FROM "honour_board" WHERE "dudley_tuckey_medal"='Ben Howlett';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
);
Question: what is the total number of coach where captain is grant welsh and win/loss is 5-15
<|assistant|>
SELECT COUNT("coach") FROM "honour_board" WHERE "captain"='Grant Welsh' AND "win_loss"='5-15';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
);
Question: who is the dudley tuckey medal where leading goalkicker is scott simister (46)
<|assistant|>
SELECT "dudley_tuckey_medal" FROM "honour_board" WHERE "leading_goalkicker"='Scott Simister (46)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
);
Question: what is the maximum season where leading goalkicker is scott simister (54)
<|assistant|>
SELECT MAX("season") FROM "honour_board" WHERE "leading_goalkicker"='Scott Simister (54)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
);
Question: what are all the win/loss where season is 2009
<|assistant|>
SELECT "win_loss" FROM "honour_board" WHERE "season"=2009;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "honour_board" (
"season" real,
"position" real,
"win_loss" text,
"coach" text,
"captain" text,
"dudley_tuckey_medal" text,
"leading_goalkicker" text
);
Question: who is the captain where coach is geoff miles
<|assistant|>
SELECT "captain" FROM "honour_board" WHERE "coach"='Geoff Miles';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disaster_relief" (
"disaster" text,
"year" text,
"countries_affected" text,
"scale_of_disaster" text,
"people_assisted" text,
"nature_of_help" text
);
Question: In 2005-06 what was the disaster?
<|assistant|>
SELECT "disaster" FROM "disaster_relief" WHERE "year"='2005-06';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "disaster_relief" (
"disaster" text,
"year" text,
"countries_affected" text,
"scale_of_disaster" text,
"people_assisted" text,
"nature_of_help" text
);
Question: What was the scale of disaster in Peru?
<|assistant|>
SELECT "scale_of_disaster" FROM "disaster_relief" WHERE "countries_affected"='Peru';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polish_voivodeships_and_separate_cities_" (
"abbreviation" text,
"voivodeship" text,
"capital" text,
"area_km_1998" text,
"population_1980" text,
"no_of_cities" real,
"no_of_communes" real
);
Question: What's the area of the voivodenship with 51 communes?
<|assistant|>
SELECT "area_km_1998" FROM "polish_voivodeships_and_separate_cities_" WHERE "no_of_communes"=51;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polish_voivodeships_and_separate_cities_" (
"abbreviation" text,
"voivodeship" text,
"capital" text,
"area_km_1998" text,
"population_1980" text,
"no_of_cities" real,
"no_of_communes" real
);
Question: How big (in km2) is the voivodenship also known by the abbreviation KN?
<|assistant|>
SELECT "area_km_1998" FROM "polish_voivodeships_and_separate_cities_" WHERE "abbreviation"='kn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polish_voivodeships_and_separate_cities_" (
"abbreviation" text,
"voivodeship" text,
"capital" text,
"area_km_1998" text,
"population_1980" text,
"no_of_cities" real,
"no_of_communes" real
);
Question: How many people lived in the voivodenship whose capital is Siedlce in the year of 1980?
<|assistant|>
SELECT "population_1980" FROM "polish_voivodeships_and_separate_cities_" WHERE "capital"='Siedlce';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polish_voivodeships_and_separate_cities_" (
"abbreviation" text,
"voivodeship" text,
"capital" text,
"area_km_1998" text,
"population_1980" text,
"no_of_cities" real,
"no_of_communes" real
);
Question: How many different voivodenship have 747 900 citizes?
<|assistant|>
SELECT COUNT("voivodeship") FROM "polish_voivodeships_and_separate_cities_" WHERE "population_1980"='747 900';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question: What year did longwood university leave the conference?
<|assistant|>
SELECT MIN("left") FROM "former_members" WHERE "institution"='Longwood University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question: What year did a school leave that was founded in 1880?
<|assistant|>
SELECT "left" FROM "former_members" WHERE "founded"=1880;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question: What is the nickname of the school with an enrollment of 2386?
<|assistant|>
SELECT "nickname" FROM "former_members" WHERE "enrollment"=2386;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question: What year did the school from mars hill, north carolina join?
<|assistant|>
SELECT "joined" FROM "former_members" WHERE "location"='Mars Hill, North Carolina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question: How many times did anderson university leave?
<|assistant|>
SELECT COUNT("left") FROM "former_members" WHERE "institution"='Anderson University';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"joined" real,
"left" real,
"current_conference" text
);
Question: What is the nickname of the newberry college?
<|assistant|>
SELECT "nickname" FROM "former_members" WHERE "institution"='Newberry College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_of_the_great_eastern_railway" (
"ships_name" text,
"entered_service" text,
"ended_service" text,
"gross_tonnage" real,
"type_of_vessel" text
);
Question: What was the gross tonnage of the ship that ended service in 1866?
<|assistant|>
SELECT "gross_tonnage" FROM "ships_of_the_great_eastern_railway" WHERE "ended_service"='1866';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_of_the_great_eastern_railway" (
"ships_name" text,
"entered_service" text,
"ended_service" text,
"gross_tonnage" real,
"type_of_vessel" text
);
Question: What is the minimum gross tonnage of the Munich?
<|assistant|>
SELECT MIN("gross_tonnage") FROM "ships_of_the_great_eastern_railway" WHERE "ships_name"='Munich';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11665016_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: What is the air date for the episode written by Wendy Battles and directed by Oz Scott
<|assistant|>
SELECT "original_air_date" FROM "table1_11665016_2" WHERE "written_by"='Wendy Battles' AND "directed_by"='Oz Scott';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11665016_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many US viewers (millions) were there for "cold reveal"
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_11665016_2" WHERE "title"='\"Cold Reveal\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11665016_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Which episode was written by anthony e. zuiker & ken solarz
<|assistant|>
SELECT "title" FROM "table1_11665016_2" WHERE "written_by"='Anthony E. Zuiker & Ken Solarz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11665016_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Which episode was directed by steven depaul
<|assistant|>
SELECT "title" FROM "table1_11665016_2" WHERE "directed_by"='Steven DePaul';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives_and_rolling_stock" (
"number" text,
"tms_number" text,
"builder" text,
"year_built" real,
"carriage_type" text
);
Question: What where the tms numbers built in 1923
<|assistant|>
SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "year_built"=1923;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives_and_rolling_stock" (
"number" text,
"tms_number" text,
"builder" text,
"year_built" real,
"carriage_type" text
);
Question: What year was the carriage type is 47' 6" 'birdcage' gallery coach built
<|assistant|>
SELECT "year_built" FROM "locomotives_and_rolling_stock" WHERE "carriage_type"='47'' 6\" ''Birdcage'' gallery coach';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotives_and_rolling_stock" (
"number" text,
"tms_number" text,
"builder" text,
"year_built" real,
"carriage_type" text
);
Question: What tms were built nzr addington in the year 1913
<|assistant|>
SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "builder"='NZR Addington' AND "year_built"=1913;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ships_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
);
Question: what's the date entered service with ships name koningin wilhelmina
<|assistant|>
SELECT "date_entered_service" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Koningin Wilhelmina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ships_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
);
Question: what's the date where ships name is zeeland entered service
<|assistant|>
SELECT "date_entered_service" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Zeeland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ships_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
);
Question: what is the maximum tonnage where date entered service is 25 march 1986
<|assistant|>
SELECT MAX("tonnage") FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='25 March 1986';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ships_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
);
Question: what are all the date withdrawn for service entered on 21 november 1945
<|assistant|>
SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='21 November 1945';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ships_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
);
Question: what are all the date withdrawn for twin screw ro-ro motorship
<|assistant|>
SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "type_of_ship"='Twin Screw Ro-Ro Motorship';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
"ships_name" text,
"date_entered_service" text,
"date_withdrawn" text,
"tonnage" real,
"type_of_ship" text
);
Question: what are all the date withdrawn for koningin beatrix
<|assistant|>
SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Koningin Beatrix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11664625_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Where is the first season that Anthony Hemingway appears?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_11664625_2" WHERE "directed_by"='Anthony Hemingway';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11664625_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: What is the original air date of season 18?
<|assistant|>
SELECT "original_air_date" FROM "table1_11664625_2" WHERE "no_in_season"=18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11664625_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: When is the first season there were 14.57 million U.S viewers?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_11664625_2" WHERE "u_s_viewers_millions"='14.57';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1167698_1" (
"season" text,
"champion" text,
"runner_up" text,
"third_place" text,
"top_scorer" text
);
Question: How many champions were there in 2009?
<|assistant|>
SELECT COUNT("champion") FROM "table1_1167698_1" WHERE "season"='2009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1167698_1" (
"season" text,
"champion" text,
"runner_up" text,
"third_place" text,
"top_scorer" text
);
Question: Who won third place with the runner up being dynamo moscow?
<|assistant|>
SELECT "third_place" FROM "table1_1167698_1" WHERE "runner_up"='Dynamo Moscow';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_15" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What position does Matt Hobgood play?
<|assistant|>
SELECT "position" FROM "table1_11677100_15" WHERE "player"='Matt Hobgood';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_15" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: How many players were from high point, nc?
<|assistant|>
SELECT COUNT("mlb_draft") FROM "table1_11677100_15" WHERE "hometown"='High Point, NC';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_15" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What high school did Jeff Malm attend?
<|assistant|>
SELECT "school" FROM "table1_11677100_15" WHERE "player"='Jeff Malm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_15" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: How many hometowns does the catcher have?
<|assistant|>
SELECT COUNT("hometown") FROM "table1_11677100_15" WHERE "position"='Catcher';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_16" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: Who was drafted from the school Mountain Pointe High School?
<|assistant|>
SELECT "mlb_draft" FROM "table1_11677100_16" WHERE "school"='Mountain Pointe High School';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.