text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "capetian_associate_kings" (
"co_king" text,
"relationship_to_monarch" text,
"crowned" text,
"co_kingship_ceased" text,
"reason" text,
"monarch" text
);
Question: Name the monarch for 13 october 1131
<|assistant|>
SELECT "monarch" FROM "capetian_associate_kings" WHERE "co_kingship_ceased"='13 October 1131';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the playoff result where the league did not qualify in the Open Cup in 1998?
<|assistant|>
SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='Did not qualify' AND "year"=1998;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the earliest year where USL PDL played in 3rd, Southeast season?
<|assistant|>
SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='3rd, Southeast' AND "league"='USL PDL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"regular_season" text,
"playoffs" text,
"open_cup" text
);
Question: What was the Open Cup results for the year 2003?
<|assistant|>
SELECT "open_cup" FROM "year_by_year" WHERE "year"=2003;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_2009_indian_general_elect" (
"sl_no" real,
"name" text,
"party_name" text,
"postal_ballot" real,
"10_thiruvottiyur" real,
"11_dr_radhakrishnan_nagar" real,
"12_perambur_sc" real,
"13_kolathur_sc" real,
"16_thiru_vi_ka_nagar" real,
"17_royapuram" real,
"total_evm_votes" real,
"total_votes" real
);
Question: What is the highest total for evm votes
<|assistant|>
SELECT MAX("total_evm_votes") FROM "results_of_the_2009_indian_general_elect";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_of_the_2009_indian_general_elect" (
"sl_no" real,
"name" text,
"party_name" text,
"postal_ballot" real,
"10_thiruvottiyur" real,
"11_dr_radhakrishnan_nagar" real,
"12_perambur_sc" real,
"13_kolathur_sc" real,
"16_thiru_vi_ka_nagar" real,
"17_royapuram" real,
"total_evm_votes" real,
"total_votes" real
);
Question: What is DMK's total number of votes?
<|assistant|>
SELECT "total_votes" FROM "results_of_the_2009_indian_general_elect" WHERE "party_name"='DMK';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24051050_1" (
"episode" real,
"contest" text,
"original_airdate" text,
"challengers_female" text,
"challengers_male" text,
"events" text
);
Question: In what episode did heat 1 take place?
<|assistant|>
SELECT "episode" FROM "table1_24051050_1" WHERE "contest"='Heat 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24051050_1" (
"episode" real,
"contest" text,
"original_airdate" text,
"challengers_female" text,
"challengers_male" text,
"events" text
);
Question: What events took place in episode 12?
<|assistant|>
SELECT "events" FROM "table1_24051050_1" WHERE "episode"=12;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24051050_1" (
"episode" real,
"contest" text,
"original_airdate" text,
"challengers_female" text,
"challengers_male" text,
"events" text
);
Question: Which female challengers featured in episode 28?
<|assistant|>
SELECT "challengers_female" FROM "table1_24051050_1" WHERE "episode"=28;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
Question: How many players came from Los Angeles?
<|assistant|>
SELECT COUNT("name") FROM "2009_10_roster" WHERE "hometown"='Los Angeles';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
Question: What is the height when the player is from Los Angeles?
<|assistant|>
SELECT "height" FROM "2009_10_roster" WHERE "hometown"='Los Angeles';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
Question: What is Kammeon Holsey's height?
<|assistant|>
SELECT "height" FROM "2009_10_roster" WHERE "name"='Kammeon Holsey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_10_roster" (
"name" text,
"number" real,
"pos" text,
"height" text,
"weight" real,
"year" text,
"hometown" text,
"high_school" text
);
Question: What is the high school of the player number 5?
<|assistant|>
SELECT "high_school" FROM "2009_10_roster" WHERE "number"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
Question: What is the 12::37.35 when hengelo , netherlands is hengelo, netherlands?
<|assistant|>
SELECT "12_37_35" FROM "records" WHERE "hengelo_netherlands"='Hengelo, Netherlands';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
Question: what is hengelo , netherlands when 31 may 2004 is 8 june 2006?
<|assistant|>
SELECT "hengelo_netherlands" FROM "records" WHERE "31_may_2004"='8 June 2006';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
Question: what is 31 may 2004 when 12:37.35 is 13:19.43?
<|assistant|>
SELECT "31_may_2004" FROM "records" WHERE "12_37_35"='13:19.43';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "records" (
"world_record" text,
"kenenisa_bekele_eth" text,
"12_37_35" text,
"hengelo_netherlands" text,
"31_may_2004" text
);
Question: How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?
<|assistant|>
SELECT COUNT("world_record") FROM "records" WHERE "kenenisa_bekele_eth"='Marílson Gomes dos Santos ( BRA )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
Question: What is every entry for against with opponent Andreas Vinciguerra?
<|assistant|>
SELECT "against" FROM "singles_performances_4_2" WHERE "opponent"='Andreas Vinciguerra';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
Question: What is every entry for against with opponent Andreas Vinciguerra?
<|assistant|>
SELECT "against" FROM "singles_performances_4_2" WHERE "opponent"='Andreas Vinciguerra';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
Question: What is every surface against Sweden?
<|assistant|>
SELECT "surface" FROM "singles_performances_4_2" WHERE "against"='Sweden';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performances_4_2" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"win_lose" text,
"result" text
);
Question: What is every entry in the win/lose against Sweden?
<|assistant|>
SELECT "win_lose" FROM "singles_performances_4_2" WHERE "against"='Sweden';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: How many production codes have an original airdate of November 16, 1990?
<|assistant|>
SELECT COUNT("production_code") FROM "table1_2409041_3" WHERE "original_air_date"='November 16, 1990';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What series number had an original airdate of March 1, 1991?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_2409041_3" WHERE "original_air_date"='March 1, 1991';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who directed "Torn Between Two Lovers"?
<|assistant|>
SELECT "directed_by" FROM "table1_2409041_3" WHERE "title"='\"Torn Between Two Lovers\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: How many production codes were in series 39?
<|assistant|>
SELECT COUNT("production_code") FROM "table1_2409041_3" WHERE "no_in_series"=39;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who wrote season 23?
<|assistant|>
SELECT "written_by" FROM "table1_2409041_3" WHERE "no_in_season"=23;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the production code for episode number 86 in the series?
<|assistant|>
SELECT MIN("production_code") FROM "table1_2409041_5" WHERE "no_in_series"=86;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What episode number in the series is "dance to the music"?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_2409041_5" WHERE "title"='\"Dance to the Music\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the production code for the episode that originally aired on January 8, 1993?
<|assistant|>
SELECT MAX("production_code") FROM "table1_2409041_5" WHERE "original_air_date"='January 8, 1993';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who wrote the episode that originally aired on January 15, 1993?
<|assistant|>
SELECT "written_by" FROM "table1_2409041_5" WHERE "original_air_date"='January 15, 1993';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the name of episode number 77 in the series?
<|assistant|>
SELECT "title" FROM "table1_2409041_5" WHERE "no_in_series"=77;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: When 17 is the number in series who is the director?
<|assistant|>
SELECT "directed_by" FROM "table1_2409041_2" WHERE "no_in_series"=17;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: When 21 is the number in series what is the air date?
<|assistant|>
SELECT "original_air_date" FROM "table1_2409041_2" WHERE "no_in_series"=21;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: When 446004 is the production code who are the writers?
<|assistant|>
SELECT "written_by" FROM "table1_2409041_2" WHERE "production_code"=446004;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: When "body damage" is the title how many air dates are there?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_2409041_2" WHERE "title"='\"Body Damage\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who directed "what do you know?"?
<|assistant|>
SELECT "directed_by" FROM "table1_2409041_9" WHERE "title"='\"What Do You Know?\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What was the name of the epiode written by Gary M. Goodrich?
<|assistant|>
SELECT "title" FROM "table1_2409041_9" WHERE "written_by"='Gary M. Goodrich';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who directed episode number 179 in the series?
<|assistant|>
SELECT "directed_by" FROM "table1_2409041_9" WHERE "no_in_series"=179;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: How many people directed "odd man in"?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_2409041_9" WHERE "title"='\"Odd Man In\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
Question: What's the voltage of the model with part number TT80503300?
<|assistant|>
SELECT "voltage" FROM "tillamook_0_25_m" WHERE "part_number_s"='TT80503300';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
Question: What's the frequency of the model with part number TT80503300?
<|assistant|>
SELECT "frequency" FROM "tillamook_0_25_m" WHERE "part_number_s"='TT80503300';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
Question: What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?
<|assistant|>
SELECT "part_number_s" FROM "tillamook_0_25_m" WHERE "tdp"='2.9 (Max.4.1~5.4) W';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tillamook_0_25_m" (
"model_number" text,
"frequency" text,
"l1_cache" text,
"fsb" text,
"mult" text,
"voltage" text,
"tdp" text,
"socket" text,
"release_date" text,
"part_number_s" text,
"s_spec_number" text
);
Question: What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?
<|assistant|>
SELECT "l1_cache" FROM "tillamook_0_25_m" WHERE "s_spec_number"='SL2Z3, SL28Q (myA0)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
Question: How many region 4 dates are associated with a region 2 date of July 9, 2007?
<|assistant|>
SELECT COUNT("region_4_australia") FROM "table1_240936_2" WHERE "region_2_uk"='July 9, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
Question: What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?
<|assistant|>
SELECT "region_1_can" FROM "table1_240936_2" WHERE "region_1_us"='January 16, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
Question: What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?
<|assistant|>
SELECT "region_4_australia" FROM "table1_240936_2" WHERE "region_1_us"='January 16, 2007';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
Question: What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?
<|assistant|>
SELECT "region_2_uk" FROM "table1_240936_2" WHERE "region_4_australia"='July 31, 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_240936_2" (
"dvd_name" text,
"ep_num" text,
"region_1_us" text,
"region_1_can" text,
"region_2_uk" text,
"region_2_germany" text,
"region_4_australia" text
);
Question: What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?
<|assistant|>
SELECT "region_1_can" FROM "table1_240936_2" WHERE "region_2_uk"='May 18, 2009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: How many seasons included an episode titled "all the wrong moves"?
<|assistant|>
SELECT COUNT("no_in_season") FROM "table1_2409041_6" WHERE "title"='\"All the Wrong Moves\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who was the director for the episode airing on September 24, 1993?
<|assistant|>
SELECT "directed_by" FROM "table1_2409041_6" WHERE "original_air_date"='September 24, 1993';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: In which series was season 18?
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_2409041_6" WHERE "no_in_season"=18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: Who wrote the episode "car wars"?
<|assistant|>
SELECT "written_by" FROM "table1_2409041_6" WHERE "title"='\"Car Wars\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2409041_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
Question: What is the title of season 2?
<|assistant|>
SELECT "title" FROM "table1_2409041_6" WHERE "no_in_season"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What is the brand name associated with a model name e4xxx?
<|assistant|>
SELECT "brand_name" FROM "variants" WHERE "model_list"='E4xxx';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What is the brand name associated with the model named e4xxx?
<|assistant|>
SELECT "brand_name" FROM "variants" WHERE "model_list"='E4xxx';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What is the brand name associated with the model 4x0?
<|assistant|>
SELECT "brand_name" FROM "variants" WHERE "model_list"='4x0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What is the number of cores associated with model name e2xxx?
<|assistant|>
SELECT "cores" FROM "variants" WHERE "model_list"='E2xxx';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What is the wattage/TDP associated with model name 4x0?
<|assistant|>
SELECT "tdp" FROM "variants" WHERE "model_list"='4x0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: When the socket is bga956 and processor is penryn-3m, what is the tdp?
<|assistant|>
SELECT "tdp" FROM "variants" WHERE "socket"='BGA956' AND "processor"='Penryn-3M';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: Whats the processor for p9xxx?
<|assistant|>
SELECT "processor" FROM "variants" WHERE "model_list"='P9xxx';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What's the l2 cache of the model with TDP of 5.5-10 w?
<|assistant|>
SELECT "l2_cache" FROM "variants" WHERE "tdp"='5.5-10 W';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What's the model of the processor with BGA479 socket and a 5.5 w TDP?
<|assistant|>
SELECT "model_list" FROM "variants" WHERE "socket"='BGA479' AND "tdp"='5.5 W';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What's the model of the processor with a 5.5 w TDP?
<|assistant|>
SELECT "model_list" FROM "variants" WHERE "tdp"='5.5 W';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: What's the smallest number for cores of any of the processor models?
<|assistant|>
SELECT MIN("cores") FROM "variants";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: what is the model where the processor is yorkfield and the brand name is xeon?
<|assistant|>
SELECT "model_list" FROM "variants" WHERE "processor"='Yorkfield' AND "brand_name"='Xeon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: what is the socket that has a brand name of core 2 extreme?
<|assistant|>
SELECT "socket" FROM "variants" WHERE "brand_name"='Core 2 Extreme';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "variants" (
"processor" text,
"brand_name" text,
"model_list" text,
"cores" real,
"l2_cache" text,
"socket" text,
"tdp" text
);
Question: what is the name of the processor for model x33x0?
<|assistant|>
SELECT "processor" FROM "variants" WHERE "model_list"='X33x0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24108789_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real,
"after" real,
"before" real
);
Question: What is the earliest number in before?
<|assistant|>
SELECT MIN("before") FROM "table1_24108789_4";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24108789_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real,
"after" real,
"before" real
);
Question: What is the latest after when the player is Steve Stricker?
<|assistant|>
SELECT MAX("after") FROM "table1_24108789_4" WHERE "player"='Steve Stricker';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24108789_4" (
"num" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"winnings" real,
"after" real,
"before" real
);
Question: List all before numbers when Geoff Ogilvy was playing.
<|assistant|>
SELECT "before" FROM "table1_24108789_4" WHERE "player"='Geoff Ogilvy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
Question: Name the least events for number 7
<|assistant|>
SELECT MIN("events") FROM "reset_points" WHERE "num"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
Question: Name the number of events for 3031
<|assistant|>
SELECT COUNT("events") FROM "reset_points" WHERE "points"=3031;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
Question: Name the player for 22 events
<|assistant|>
SELECT "player" FROM "reset_points" WHERE "events"=22;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
Question: Name the least points for number 6
<|assistant|>
SELECT MIN("points") FROM "reset_points" WHERE "num"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
Question: Name the most number for steve stricker
<|assistant|>
SELECT MAX("num") FROM "reset_points" WHERE "player"='Steve Stricker';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reset_points" (
"num" real,
"player" text,
"country" text,
"points" real,
"reset_points" real,
"events" real
);
Question: Name the total number of points for 800 reset
<|assistant|>
SELECT COUNT("points") FROM "reset_points" WHERE "reset_points"=800;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
Question: What percentage did kennedy win while coakly won 37.9%
<|assistant|>
SELECT "kennedy_pct" FROM "by_county" WHERE "coakley_pct"='37.9%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
Question: How many votes did kennedy win when coakley won 66.2%
<|assistant|>
SELECT MIN("kennedy_votes") FROM "by_county" WHERE "coakley_pct"='66.2%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
Question: What was the percentage of votes for coakley when kennedy won 1.6%
<|assistant|>
SELECT "coakley_pct" FROM "by_county" WHERE "kennedy_pct"='1.6%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"coakley_pct" text,
"coakley_votes" real,
"brown_pct" text,
"brown_votes" real,
"kennedy_pct" text,
"kennedy_votes" real
);
Question: How many votes did kennedy win when coaklely won 2139 votes?
<|assistant|>
SELECT COUNT("kennedy_votes") FROM "by_county" WHERE "coakley_votes"=2139;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: How many locations did the team play at on week 7?
<|assistant|>
SELECT COUNT("location") FROM "schedule" WHERE "week"=7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: What was the result of the games VS the Lions?
<|assistant|>
SELECT "final_score" FROM "schedule" WHERE "opponent"='Lions';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the number of dates for alouettes
<|assistant|>
SELECT COUNT("date") FROM "schedule" WHERE "opponent"='Alouettes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the least attendance for l 36–1
<|assistant|>
SELECT MIN("attendance") FROM "schedule" WHERE "final_score"='L 36–1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the final score for exhibition stadium for september 10
<|assistant|>
SELECT "final_score" FROM "schedule" WHERE "location"='Exhibition Stadium' AND "date"='September 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the number of record for week 11
<|assistant|>
SELECT COUNT("record") FROM "schedule" WHERE "week"=11;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the opponent for week 12
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"=12;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the total number of opponent for october 3
<|assistant|>
SELECT COUNT("opponent") FROM "schedule" WHERE "date"='October 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the final score for week 5
<|assistant|>
SELECT "final_score" FROM "schedule" WHERE "week"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132054_1" (
"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: Who directed episode 28 in the series?
<|assistant|>
SELECT "directed_by" FROM "table1_24132054_1" WHERE "no_in_series"=28;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132054_1" (
"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: Who directed "go your own way"?
<|assistant|>
SELECT "directed_by" FROM "table1_24132054_1" WHERE "title"='\"Go Your Own Way\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132054_1" (
"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 episode in the season was "easy as pie"?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_24132054_1" WHERE "title"='\"Easy as Pie\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132083_1" (
"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 in the series number of the episode written by Lauren Gussis?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_24132083_1" WHERE "written_by"='Lauren Gussis';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132083_1" (
"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: On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_24132083_1" WHERE "directed_by"='Marcos Siega' AND "written_by"='Scott Buck';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132083_1" (
"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: Who was the director of the episode called "If I had a hammer"?
<|assistant|>
SELECT "directed_by" FROM "table1_24132083_1" WHERE "title"='\"If I Had a Hammer\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_24132083_1" (
"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's the series number of the episode written by Tim Schlattmann?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_24132083_1" WHERE "written_by"='Tim Schlattmann';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wct_1985" (
"date_final" text,
"tournament" text,
"commercial_name" text,
"category" text,
"prize_money_surface" text,
"final_match" text,
"semifinal_matches" text
);
Question: Who played in the semi finals matches at the Buick WCT finals?
<|assistant|>
SELECT "semifinal_matches" FROM "wct_1985" WHERE "commercial_name"='Buick WCT Finals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: Name the date for l 28–15
<|assistant|>
SELECT "date" FROM "schedule" WHERE "final_score"='L 28–15';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: When tiger-cats is the opponent what is the location?
<|assistant|>
SELECT "location" FROM "schedule" WHERE "opponent"='Tiger-Cats';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"location" text,
"final_score" text,
"attendance" real,
"record" text
);
Question: When 4 is the week what is the location?
<|assistant|>
SELECT "location" FROM "schedule" WHERE "week"=4;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.