instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT demographic.age FROM demographic WHERE demographic.subject_id = "43220" | mimicsql_data |
CREATE TABLE payment (
payment_id SMALLINT UNSIGNED,
customer_id SMALLINT UNSIGNED,
staff_id TINYINT UNSIGNED,
rental_id INT,
amount DECIMAL(5,2),
payment_date DATETIME,
last_update TIMESTAMP
)
CREATE TABLE address (
address_id SMALLINT UNSIGNED,
address VARCHAR(50),
address2 VA... | SELECT T2.name, T1.category_id FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id ORDER BY T1.category_id | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "ID" | mimicsql_data |
CREATE TABLE table_51502 (
"Pick" real,
"Player" text,
"Nationality" text,
"NBA Team" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is Pick 33 and has a Nationality of USA?
| SELECT "Player" FROM table_51502 WHERE "Nationality" = 'usa' AND "Pick" = '33' | wikisql |
CREATE TABLE table_name_7 (
volume VARCHAR,
weeks_on_top VARCHAR,
artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the volume:issue of Sheryl Crow with 3 weeks on top?
| SELECT volume AS :issue FROM table_name_7 WHERE weeks_on_top = "3" AND artist = "sheryl crow" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2047" AND procedures.icd9_code = "3593" | mimicsql_data |
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE management (
department_ID int,
head_ID int,
tempor... | SELECT Creation, COUNT(Creation) FROM department GROUP BY Creation ORDER BY Creation DESC | nvbench |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.dob_year > "2197" | mimicsql_data |
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price... | SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier ORDER BY COUNT(Carrier) DESC | nvbench |
CREATE TABLE table_74438 (
"Flag Name" text,
"Transliteration" text,
"Meaning" text,
"Description" text,
"International Use" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different descriptions are there for the flag that means decimal dig... | SELECT COUNT("Description") FROM table_74438 WHERE "Meaning" = 'Decimal Digit 2' | wikisql |
CREATE TABLE table_name_78 (
year VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years has there been a competition in Helsinki?
| SELECT COUNT(year) FROM table_name_78 WHERE location = "helsinki" | sql_create_context |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE microbiologyevents (
ro... | SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_di... | mimic_iii |
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHA... | SELECT Date_Stored, COUNT(Date_Stored) FROM All_Documents AS T1 JOIN Ref_Calendar AS T2 ON T1.Date_Stored = T2.Calendar_Date ORDER BY Date_Stored | nvbench |
CREATE TABLE table_75598 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Wins have a Class of 500cc, and a Year smaller than 1975?
| SELECT "Wins" FROM table_75598 WHERE "Class" = '500cc' AND "Year" < '1975' | wikisql |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT TIME_TO_STR(CreationDate, '%h') AS "hour", SUM(CASE WHEN p.AnswerCount > 0 THEN 1 ELSE 0 END) / COUNT(p.Id) / 1.0 AS "answered:unanswered" FROM Posts AS p WHERE p.PostTypeId = 1 GROUP BY TIME_TO_STR(CreationDate, '%h') ORDER BY 'hour' | sede |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
... | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 19059 AND STRFTIME('%y', admissions.admittime) >= '2105' | mimic_iii |
CREATE TABLE table_name_32 (
memory VARCHAR,
turbo VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Memory has a Turbo of 2/2/4/5 and the Release date of May 2010?
| SELECT memory FROM table_name_32 WHERE turbo = "2/2/4/5" AND release_date = "may 2010" | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT COUNT(*) FROM zzmzjzjlb WHERE zzmzjzjlb.YLJGDM = '5509091' AND zzmzjzjlb.JZKSRQ BETWEEN '2005-04-24' AND '2011-01-23' AND zzmzjzjlb.ZSEBZ > 0 UNION SELECT COUNT(*) FROM fzzmzjzjlb WHERE fzzmzjzjlb.YLJGDM = '5509091' AND fzzmzjzjlb.JZKSRQ BETWEEN '2005-04-24' AND '2011-01-23' AND fzzmzjzjlb.ZSEBZ > 0 | css |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | SELECT JYLX FROM jybgb WHERE BGDH = '33518078713' | css |
CREATE TABLE table_15314901_1 (
proper_velocity_w_dx_dτ_in_units_of_c VARCHAR,
condition_parameter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/d in units of c?... | SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 1 hyperbolic radian" | sql_create_context |
CREATE TABLE table_73285 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Maximum episode premiered March 8, 2008?
| SELECT MAX("Episode") FROM table_73285 WHERE "Premier date" = 'March 8, 2008' | wikisql |
CREATE TABLE table_9677 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is in heat 5 from Guyana?
| SELECT "Name" FROM table_9677 WHERE "Heat" = '5' AND "Country" = 'guyana' | wikisql |
CREATE TABLE Employee (
EmployeeId integer,
LastName varchar(20),
FirstName varchar(20),
Title varchar(30),
ReportsTo integer,
BirthDate datetime,
HireDate datetime,
Address varchar(70),
City varchar(40),
State varchar(40),
Country varchar(40),
PostalCode varchar(10),
... | SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone | nvbench |
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperdataset (
paperid ... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'augmented reality' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND venue.venueid = paper.venueid AND venue.venuename = 'chi' | scholar |
CREATE TABLE table_40240 (
"Player" text,
"Position" text,
"GP (GS)" text,
"Minutes" real,
"Goals" real,
"Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of assists when Edmundo Rodriguez is playing the position ... | SELECT COUNT("Assists") FROM table_40240 WHERE "Position" = 'striker' AND "Goals" < '4' AND "Player" = 'edmundo rodriguez' AND "Minutes" < '473' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND lab.itemid = "51132" | mimicsql_data |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT diagnoses.icd9_code, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "John Gartman" | mimicsql_data |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | (SELECT * FROM t_kc21 WHERE MED_SER_ORG_NO = '1054385' AND IN_HOSP_DATE BETWEEN '2003-03-19' AND '2008-05-29') EXCEPT (SELECT * FROM t_kc21 WHERE MED_SER_ORG_NO = '1054385' AND IN_HOSP_DATE BETWEEN '2003-03-19' AND '2008-05-29' AND (REMOTE_SETTLE_FLG = '异地1' OR REMOTE_SETTLE_FLG = '异地2')) | css |
CREATE TABLE inst (
name VARCHAR,
instid VARCHAR
)
CREATE TABLE authorship (
authid VARCHAR,
instid VARCHAR
)
CREATE TABLE authors (
authid VARCHAR,
fname VARCHAR,
lname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of... | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Matthias" AND t1.lname = "Blume" | sql_create_context |
CREATE TABLE airport_aircraft (
id number,
airport_id number,
aircraft_id number
)
CREATE TABLE airport (
airport_id number,
airport_name text,
total_passengers number,
%_change_2007 text,
international_passengers number,
domestic_passengers number,
transit_passengers number,
... | SELECT name FROM pilot WHERE age <= 30 ORDER BY name DESC | spider |
CREATE TABLE table_11630008_7 (
series__number VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of series with production code 503?
| SELECT COUNT(series__number) FROM table_11630008_7 WHERE production_code = 503 | sql_create_context |
CREATE TABLE table_48247 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of appointment for the... | SELECT "Date of appointment" FROM table_48247 WHERE "Outgoing manager" = 'edoardo reja' | wikisql |
CREATE TABLE mzb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT qtb.OUT_HOSP_DATE FROM qtb WHERE qtb.MED_CLINIC_ID = '39443182794' UNION SELECT gyb.OUT_HOSP_DATE FROM gyb WHERE gyb.MED_CLINIC_ID = '39443182794' UNION SELECT zyb.OUT_HOSP_DATE FROM zyb WHERE zyb.MED_CLINIC_ID = '39443182794' UNION SELECT mzb.OUT_HOSP_DATE FROM mzb WHERE mzb.MED_CLINIC_ID = '39443182794' | css |
CREATE TABLE table_41755 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player for the School/Club team in Georgia?
| SELECT "Player" FROM table_41755 WHERE "School/Club Team" = 'georgia' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text... | SELECT COUNT(DISTINCT hz_info.RYBH) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE mzjzjlb.ZZYSGH = '22158304' AND mzjzjlb.JZKSRQ BETWEEN '2003-05-25' AND '2013-08-20' | css |
CREATE TABLE table_67290 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the game of the game against the White Sox with a record of 81-48?
| SELECT "Date" FROM table_67290 WHERE "Opponent" = 'white sox' AND "Record" = '81-48' | wikisql |
CREATE TABLE table_name_5 (
result VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the result for 1979-01-17
| SELECT result FROM table_name_5 WHERE date = "1979-01-17" | sql_create_context |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | atis |
CREATE TABLE table_9182 (
"% people under 18 (2005)" text,
"Seine-Saint-Denis" text,
"Paris" text,
"Val-de-Marne" text,
"Val-d'Oise" text,
"France" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE FRANCE WITH PEOPLE UNDER 18 OF SUB-SAH... | SELECT "France" FROM table_9182 WHERE "% people under 18 (2005)" = 'sub-saharan africa' | wikisql |
CREATE TABLE table_name_28 (
date VARCHAR,
week VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game played after week 4 with 60,658 people in attendance?
| SELECT date FROM table_name_28 WHERE week > 4 AND attendance = "60,658" | sql_create_context |
CREATE TABLE table_33204 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home side scored 9.4 (58)?
| SELECT "Home team" FROM table_33204 WHERE "Home team score" = '9.4 (58)' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.days_stay > "1" | mimicsql_data |
CREATE TABLE table_name_3 (
balls VARCHAR,
venue VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Balls, when Venue is 'Bristol', and when Score is '104*'?
| SELECT balls FROM table_name_3 WHERE venue = "bristol" AND score = "104*" | sql_create_context |
CREATE TABLE table_2203760_4 (
domestic_box_office VARCHAR,
foreign_box_office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the domestic box office for the film that had a foreign box office of $26,600,000?
| SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,000" | sql_create_context |
CREATE TABLE table_36843 (
"Rank" text,
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Writer(s)" text,
"Production Company" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which film, directed by Dana Dorian, was nominated?
| SELECT "Film" FROM table_36843 WHERE "Rank" = 'nominated' AND "Director(s)" = 'dana dorian' | wikisql |
CREATE TABLE table_name_14 (
date VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the record 8 6 3?
| SELECT date FROM table_name_14 WHERE record = "8–6–3" | sql_create_context |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT jybgb.BGRQ FROM jybgb WHERE jybgb.BGDH = '04251278145' | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.diagnosis = "BLADDER CANCER/SDA" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT (SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '魏冠宇' AND mzjzjlb.JZKSRQ BETWEEN '2009-09-02' AND '2018-12-28') + (SELECT COUNT(*) FROM person_info J... | css |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Posts (
... | SELECT AVG(CAST((JULIANDAY(ClosedDate) - JULIANDAY(Q.CreationDate)) * 24.0 AS INT)) AS AllTags FROM Posts AS Q WHERE Q.PostTypeId = 1 AND Q.CreationDate BETWEEN '2013-01-01' AND '2017-12-31' | sede |
CREATE TABLE table_44051 (
"Class" text,
"Wheel arrangement" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Wheel Arrangement, when Quantity Made is ... | SELECT "Wheel arrangement" FROM table_44051 WHERE "Quantity made" = '44' | wikisql |
CREATE TABLE table_204_981 (
id number,
"ep#" number,
"title" text,
"broadcast date" text,
"written by" text,
"directed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the name of the only episode directed by bob balaban ?
| SELECT "title" FROM table_204_981 WHERE "directed by" = 'bob balaban' | squall |
CREATE TABLE table_17461 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the position where player is al simmons
| SELECT "Position" FROM table_17461 WHERE "Player" = 'Al Simmons' | wikisql |
CREATE TABLE table_name_55 (
location VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the Deep - 30 Impact event held?
| SELECT location FROM table_name_55 WHERE event = "deep - 30 impact" | sql_create_context |
CREATE TABLE table_36318 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Rank smaller than 4, and a Name of dalma iv nyi involved which lowest game?
| SELECT MIN("Games") FROM table_36318 WHERE "Rank" < '4' AND "Name" = 'dalma iványi' | wikisql |
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEG... | SELECT T1.Investor_details, T1.investor_id FROM Investors AS T1 JOIN Transactions AS T2 ON T1.investor_id = T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3 | nvbench |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
la... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '027-100528' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | eicu |
CREATE TABLE table_31040 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT MIN("No. in season") FROM table_31040 | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC te... | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '陈淑兰' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2010-02-19') | css |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE instructor (
... | SELECT COUNT(*) FROM course, course_offering, semester WHERE course_offering.start_time > '10:00:00' AND course.course_id = course_offering.course_id AND course.department = 'ALA' AND course.number = 225 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "14" AND lab.label = "Methemoglobin" | mimicsql_data |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquep... | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-122814')) AND lab.labname = 'chloride' AND lab.labresulttime = '2103-01-19 ... | eicu |
CREATE TABLE table_55612 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How big was the crowd of away team Richmond?
| SELECT "Crowd" FROM table_55612 WHERE "Away team" = 'richmond' | wikisql |
CREATE TABLE table_name_89 (
category VARCHAR,
award VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010?
| SELECT category FROM table_name_89 WHERE award = "monte carlo tv festival awards" AND year > 2010 | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.ethnicity = "BLACK/CAPE VERDEAN" | mimicsql_data |
CREATE TABLE table_name_31 (
rank INTEGER,
headquarters VARCHAR,
market_value__billion_$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank for USA when the market value is 407.2 billion?
| SELECT AVG(rank) FROM table_name_31 WHERE headquarters = "usa" AND market_value__billion_$_ > 407.2 | sql_create_context |
CREATE TABLE table_45263 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the method of the match where there was a loss to Carlos Newton in round 1?
| SELECT "Method" FROM table_45263 WHERE "Round" = '1' AND "Res." = 'loss' AND "Opponent" = 'carlos newton' | wikisql |
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
-- Using valid SQLite, answer th... | SELECT character FROM actor ORDER BY age DESC | spider |
CREATE TABLE table_12360 (
"Rank" real,
"Athlete" text,
"Qiangshu" real,
"Jianshu" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Jianshu number for Liu Yang ( hkg )?
| SELECT MIN("Jianshu") FROM table_12360 WHERE "Athlete" = 'liu yang ( hkg )' | wikisql |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden ... | SELECT Posts.OwnerUserId AS "user_link", COUNT(Posts.OwnerUserId) AS mentions FROM Posts WHERE Posts.CreationDate > '20160601 00:00:00' AND Posts.Body LIKE '%c4.8xlarge%' GROUP BY Posts.OwnerUserId ORDER BY mentions DESC | sede |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLO... | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay = "23" | mimicsql_data |
CREATE TABLE table_54972 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the constructor for grid of 8
| SELECT "Constructor" FROM table_54972 WHERE "Grid" = '8' | wikisql |
CREATE TABLE table_name_50 (
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent with a 32-25 record?
| SELECT opponent FROM table_name_50 WHERE record = "32-25" | sql_create_context |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT * FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '76007171' AND hz_info.YLJGDM = '3592922' AND NOT zyjzjlb.JZKSMC LIKE '%脑外科%' | css |
CREATE TABLE table_name_19 (
attendance INTEGER,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were in attendance at week 16?
| SELECT AVG(attendance) FROM table_name_19 WHERE week = 16 | sql_create_context |
CREATE TABLE table_203_372 (
id number,
"from" number,
"to" number,
"name" text,
"party" text,
"position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than daubin who else was as mayor for same time period of 7 years
| SELECT "name" FROM table_203_372 WHERE "to" - "from" = 7 | squall |
CREATE TABLE table_204_427 (
id number,
"creature (other planes)" text,
"page" text,
"other appearances" text,
"variants" text,
"description" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many creatures are included at least as high as page... | SELECT COUNT("creature (other planes)") FROM table_204_427 WHERE "page" >= 42 | squall |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '78775126' AND t_kc22.STA_DATE BETWEEN '2001-03-07' AND '2003-11-09' AND t_kc22.SOC_SRT_DIRE_CD = '109251736' | css |
CREATE TABLE table_27539272_4 (
record VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for prudential center - 12,880
| SELECT record FROM table_27539272_4 WHERE location_attendance = "Prudential Center - 12,880" | sql_create_context |
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
)
CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Dr... | SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dis... | SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_di... | mimic_iii |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | nvbench |
CREATE TABLE table_13741576_4 (
try_bonus VARCHAR,
tries_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the try bonus for when tries against is 43?
| SELECT try_bonus FROM table_13741576_4 WHERE tries_against = "43" | sql_create_context |
CREATE TABLE table_26454128_9 (
country VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country(s) where the points equal 723.075?
| SELECT country FROM table_26454128_9 WHERE points = "723.075" | sql_create_context |
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Rankin... | SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier ORDER BY Carrier DESC | nvbench |
CREATE TABLE table_13762472_5 (
game INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest numbered game on the list?
| SELECT MIN(game) FROM table_13762472_5 | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number... | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23002) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'phosphate') AND STRFTIME('%y-%m', labevents.charttime) >= '2105-05' ORDER BY lab... | mimic_iii |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReas... | SELECT YEAR(CreationDate) AS Year, MONTH(CreationDate) AS Month, COUNT(Title) FROM Posts WHERE PostTypeId = 1 AND ((Tags LIKE '%python%') OR (Tags LIKE '%javascript%')) AND YEAR(CreationDate) = '2019' AND (MONTH(CreationDate) = '1' OR MONTH(CreationDate) = '2') GROUP BY YEAR(CreationDate), MONTH(CreationDate) | sede |
CREATE TABLE table_11950 (
"Date" text,
"Opponent" text,
"Winner" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the score for opponent of holy cross and result of push
| SELECT "Score" FROM table_11950 WHERE "Opponent" = 'holy cross' AND "Result" = 'push' | wikisql |
CREATE TABLE table_name_10 (
playoff_apps VARCHAR,
position VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the playoff apps for Thomas Heary, that had the position df?
| SELECT playoff_apps FROM table_name_10 WHERE position = "df" AND name = "thomas heary" | sql_create_context |
CREATE TABLE table_64438 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What match number has a ground of H and the opponent Chelsea under 18s?
| SELECT AVG("Match") FROM table_64438 WHERE "Ground" = 'h' AND "Opponent" = 'chelsea under 18s' | wikisql |
CREATE TABLE table_39446 (
"Rank" real,
"Country" text,
"Wins (Outdoor)" real,
"Wins (Indoor)" real,
"Wins (Total)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most wins total with wins indoor of 0 and wins outdoor of 1 with rank less th... | SELECT MAX("Wins (Total)") FROM table_39446 WHERE "Wins (Indoor)" = '0' AND "Wins (Outdoor)" = '1' AND "Rank" < '7' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
... | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '45714321' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2014-09-08') | css |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND demographic.dob_year < "2110" | mimicsql_data |
CREATE TABLE table_20799587_1 (
mccain_number INTEGER,
county VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes did McCain get in Scott?
| SELECT MIN(mccain_number) FROM table_20799587_1 WHERE county = "Scott" | sql_create_context |
CREATE TABLE table_name_40 (
home_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team score at windy hill?
| SELECT home_team AS score FROM table_name_40 WHERE venue = "windy hill" | sql_create_context |
CREATE TABLE table_16048129_5 (
region_of_ussr VARCHAR,
_percentage_of_total_deportees VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What regions of the USSR have a percentage of deportees of 10.6?
| SELECT region_of_ussr FROM table_16048129_5 WHERE _percentage_of_total_deportees = "10.6" | sql_create_context |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' AND date_day.day_number = 24 AND date_day.month_number = 5 ... | atis |
CREATE TABLE table_12303563_1 (
winners INTEGER,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did bec tero sasana win?
| SELECT MAX(winners) FROM table_12303563_1 WHERE nation = "BEC Tero Sasana" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.