instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_56768 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was steve bartalo picked?
| SELECT MAX("Pick") FROM table_56768 WHERE "Player" = 'steve bartalo' | wikisql |
CREATE TABLE table_27332038_1 (
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who directed the episode that elaine ko wrote?
| SELECT directed_by FROM table_27332038_1 WHERE written_by = "Elaine Ko" | sql_create_context |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT COUNT(v.Id) AS UserFaves, u.Reputation FROM Users AS u INNER JOIN Votes AS v ON v.UserId = u.Id AND v.VoteTypeId = 5 GROUP BY u.Id, u.Reputation ORDER BY UserFaves DESC | sede |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE gsi (
c... | SELECT DISTINCT name, number FROM course WHERE department = 'HISTART' AND credits = 8 | advising |
CREATE TABLE table_53688 (
"Rank" real,
"Name" text,
"Nation" text,
"Total Points" real,
"Placings" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the placing of the nation of East Germany?
| SELECT COUNT("Placings") FROM table_53688 WHERE "Nation" = 'east germany' | wikisql |
CREATE TABLE table_31788 (
"Division" text,
"League Apps" real,
"League Goals" real,
"FA Cup Apps" real,
"FA Cup Goals" real,
"Total Apps" real,
"Total Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which league goals has FA cup apps ... | SELECT "League Goals" FROM table_31788 WHERE "FA Cup Apps" = '2' | wikisql |
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 wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '5513920' AND wdmzjzjlb.JZKSDM = '61946' AND wdmzjzjlb.RYDJSJ BETWEEN '2003-06-15' AND '2011-02-23' UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '5513920' AND bdmzjzjlb.JZKSDM = '61946' AND bdmzjzjlb.RYDJSJ BETWEEN '2003-06-15' AND '2011-02-23' | css |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
... | SELECT u.DisplayName, u.Id, p.PostTypeId, p.OwnerUserId, p.AcceptedAnswerId, p.Score, p.ParentId, p.Body, p.Title, aa.PostTypeId, aa.AcceptedAnswerId, aa.OwnerUserId, aa.Title, aa.Body, aa.Score, CASE WHEN p.Score > 0 THEN 2 ELSE 0 END + CASE WHEN NOT aa.AcceptedAnswerId IS NULL THEN 1 ELSE 0 END AS "uu", CASE WHEN aa.... | sede |
CREATE TABLE table_21700 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the part 4 for the verb whose part 3 is borgen?
| SELECT "Part 4" FROM table_21700 WHERE "Part 3" = 'borgen' | wikisql |
CREATE TABLE table_30140 (
"Institution" text,
"City" text,
"State" text,
"Team Name" text,
"Affiliation" text,
"Enrollment" real,
"Home Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many states were there when there was an ... | SELECT COUNT("State") FROM table_30140 WHERE "Enrollment" = '2789' | wikisql |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 81461 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'vecuronium bromide' ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_name_23 (
muklom VARCHAR,
halang VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Muklom has a Halang of w c i ?
| SELECT muklom FROM table_name_23 WHERE halang = "wɯ¹cʰi¹" | sql_create_context |
CREATE TABLE table_name_24 (
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what place is the golfer with a score of 68-69-73-70=280?
| SELECT place FROM table_name_24 WHERE score = 68 - 69 - 73 - 70 = 280 | sql_create_context |
CREATE TABLE table_name_33 (
status VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status has 15/04/1967 as the date?
| SELECT status FROM table_name_33 WHERE date = "15/04/1967" | sql_create_context |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Home | nvbench |
CREATE TABLE table_40925 (
"From" real,
"Goal" text,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Round 1 from 1977 where Round 3 is Dou... | SELECT "Round 1" FROM table_40925 WHERE "Round 4" = 'double' AND "From" = '1977' AND "Round 3" = 'double' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) = '2105' | eicu |
CREATE TABLE table_14097 (
"Club" text,
"League/Division" text,
"Home Ground" text,
"Location" text,
"Position in 2012-13" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What club has a league/division of fourth division?
| SELECT "Club" FROM table_14097 WHERE "League/Division" = 'fourth division' | wikisql |
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15),
Workshop_Group_ID INTEGER,
Product_Description VARCHAR(255),
Product_Name VARCHAR(255),
Product_Price DECIMAL(20,4),
Other_Product_Service_Details VARCHAR(255)
)
CREATE TABLE Ref_Service_Types (
Service_Type_Code CH... | SELECT Actual_Delivery_Date, COUNT(Actual_Delivery_Date) FROM Bookings ORDER BY COUNT(Actual_Delivery_Date) | nvbench |
CREATE TABLE table_name_88 (
avg_g VARCHAR,
att_cmp_int VARCHAR,
effic VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players had an Att-Cmp-Int of 143 269 16, and an efficiency of less than 116.9?
| SELECT COUNT(avg_g) FROM table_name_88 WHERE att_cmp_int = "143–269–16" AND effic < 116.9 | sql_create_context |
CREATE TABLE table_11734041_7 (
position VARCHAR,
years_for_rockets VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the positions for the rockets in 2008?
| SELECT position FROM table_11734041_7 WHERE years_for_rockets = "2008" | sql_create_context |
CREATE TABLE table_70542 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team opponent had a loss with their pitcher Dotson (8-6)?
| SELECT "Opponent" FROM table_70542 WHERE "Loss" = 'dotson (8-6)' | wikisql |
CREATE TABLE table_44705 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team for the New Zealand breakers?
| SELECT "Report" FROM table_44705 WHERE "Away team" = 'new zealand breakers' | wikisql |
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transactio... | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count > 100 OR amount_of_transaction > 1000 | nvbench |
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 (SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '0323169' AND IN_HOSP_DATE BETWEEN '2000-01-05' AND '2007-11-28') - (SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '0323169' AND IN_HOSP_DATE BETWEEN '2000-01-05' AND '2007-11-28' AND IN_DIAG_DIS_CD = OUT_DIAG_DIS_CD) | css |
CREATE TABLE table_768 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many results have Jere Cooper as incumbent?
| SELECT "Result" FROM table_768 WHERE "Incumbent" = 'Jere Cooper' | wikisql |
CREATE TABLE table_name_8 (
nationalist VARCHAR,
undecided__no_answer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?
| SELECT nationalist FROM table_name_8 WHERE undecided__no_answer = "29.2%" | sql_create_context |
CREATE TABLE table_58252 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score for the Date of April 23?
| SELECT "Score" FROM table_58252 WHERE "Date" = 'april 23' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-34744'... | eicu |
CREATE TABLE table_32390 (
"Player" text,
"Home Town" text,
"College/Prior" text,
"Drafting Team" text,
"Graduated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Omar Gonzalez graduate?
| SELECT SUM("Graduated") FROM table_32390 WHERE "Player" = 'omar gonzalez' | wikisql |
CREATE TABLE batting_postseason (
year number,
round text,
player_id text,
team_id text,
league_id text,
g number,
ab number,
r number,
h number,
double number,
triple number,
hr number,
rbi number,
sb number,
cs number,
bb number,
so number,
ibb n... | SELECT state FROM park GROUP BY state HAVING COUNT(*) > 2 | spider |
CREATE TABLE table_31496 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Lisladeen poor law union?
| SELECT "Poor law union" FROM table_31496 WHERE "Townland" = 'Lisladeen' | wikisql |
CREATE TABLE table_24929 (
"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 "U.S. viewers (million)" FROM table_24929 WHERE "No. in season" = '2' | wikisql |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
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... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Emily Harrington%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_i... | advising |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (
pre_cour... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON student_record.course_id = program_course.course_id WHERE program_course.category LIKE '%ULCS%' AND student_record.student_id = 1 | 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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "CATHOLIC" | mimicsql_data |
CREATE TABLE table_name_90 (
rank INTEGER,
code__iata_icao_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of airport with a (IATA/ICAO) of bcm/lrbc code and an amount of 240,735 in 2010?
| SELECT MIN(rank) FROM table_name_90 WHERE code__iata_icao_ = "bcm/lrbc" AND 2010 > 240 OFFSET 735 | sql_create_context |
CREATE TABLE table_46087 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the Montreal Canadiens Home game on March 23?
| SELECT "Record" FROM table_46087 WHERE "Home" = 'montreal canadiens' AND "Date" = 'march 23' | wikisql |
CREATE TABLE table_22309 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"U.S. air date" text,
"Production code" real,
"Canadian viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "U.S. air date" FROM table_22309 WHERE "Canadian viewers (million)" = '1.452' | wikisql |
CREATE TABLE table_35493 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponen" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has a Date of january 2, 2006?
| SELECT "Surface" FROM table_35493 WHERE "Date" = 'january 2, 2006' | wikisql |
CREATE TABLE table_name_3 (
time VARCHAR,
rider VARCHAR,
team VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Team of honda 250cc, and a Rank larger than 2, and a Rider of chris palmer is what time?
| SELECT time FROM table_name_3 WHERE team = "honda 250cc" AND rank > 2 AND rider = "chris palmer" | sql_create_context |
CREATE TABLE table_14778 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date on Catalog 540,934-2?
| SELECT "Date" FROM table_14778 WHERE "Catalog" = '540,934-2' | wikisql |
CREATE TABLE artwork (
artwork_id number,
type text,
name text
)
CREATE TABLE nomination (
artwork_id number,
festival_id number,
result text
)
CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
num_of_aud... | SELECT T3.festival_name FROM nomination AS T1 JOIN artwork AS T2 ON T1.artwork_id = T2.artwork_id JOIN festival_detail AS T3 ON T1.festival_id = T3.festival_id WHERE T2.type = "Program Talent Show" | spider |
CREATE TABLE table_202_179 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many laps did juan p... | SELECT "laps" FROM table_202_179 WHERE "driver" = 'juan pablo montoya' | squall |
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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE diagnoses.short_title = "Parox ventric tachycard" AND procedures.long_title = "Insertion of endotracheal tube" | mimicsql_data |
CREATE TABLE table_26794530_1 (
points VARCHAR,
final_placing VARCHAR,
races VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there were 30 races and the final placing was 13th, how many points were scored?
| SELECT points FROM table_26794530_1 WHERE final_placing = "13th" AND races = 30 | sql_create_context |
CREATE TABLE table_11303072_5 (
batting_partners VARCHAR,
runs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the batting partners with runs of 226?
| SELECT batting_partners FROM table_11303072_5 WHERE runs = "226" | sql_create_context |
CREATE TABLE table_24192031_2 (
age VARCHAR,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old is the person with the height of m (ft 3 4 in)?
| SELECT age FROM table_24192031_2 WHERE height = "m (ft 3⁄4 in)" | sql_create_context |
CREATE TABLE table_name_6 (
year INTEGER,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did he play in santiago de compostela?
| SELECT SUM(year) FROM table_name_6 WHERE city = "santiago de compostela" | sql_create_context |
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER... | SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY COUNT(*) DESC | nvbench |
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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Contusion face/scalp/nck" AND lab."CATEGORY" = "Chemistry" | mimicsql_data |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT COUNT(t_kc21.PERSON_ID) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '7149475' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = '异地2' | css |
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details tex... | SELECT T1.project_id, T1.project_details FROM projects AS T1 JOIN documents AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id HAVING COUNT(*) > 2 | spider |
CREATE TABLE table_65169 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the simplified Chinese name for the 9t... | SELECT "Chinese (Simplified)" FROM table_65169 WHERE "Album#" = '9th' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM ... | css |
CREATE TABLE table_1341663_19 (
candidates VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What other cadidate ran against Dave Treen?
| SELECT candidates FROM table_1341663_19 WHERE incumbent = "Dave Treen" | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.name = "Stephanie Suchan" | mimicsql_data |
CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
... | SELECT DISTINCT keyphrase.keyphraseid FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'angli liu' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | scholar |
CREATE TABLE table_50971 (
"University" text,
"Location" text,
"Established" real,
"Endowment as of 2008" text,
"Campus Area (acres)" real,
"Kiplinger's Top 100 Values" text,
"Enrollment as of 2008" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Kiplinger's Top 100 Values" FROM table_50971 WHERE "Established" = '1851' | wikisql |
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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.days_stay > "15" | mimicsql_data |
CREATE TABLE table_203_253 (
id number,
"model" text,
"frame" text,
"years mfg'd" text,
"caliber(s)" text,
"production" text,
"barrel" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last year of manufacture for... | SELECT MAX("years mfg'd") FROM table_203_253 | squall |
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016 ORDER BY course.department | advising |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '柏凌波' AND t_kc22.STA_DATE BETWEEN '2006-12-19' AND '2012-05-09' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjz... | css |
CREATE TABLE table_2973 (
"April 2013 Cum. Rank" real,
"Name" text,
"Rank (all) 2012" real,
"Rank (all) 2013" real,
"2013 Rank (oil companies)" text,
"2013 rev (bil. USD )" text,
"2013 Profit (mil. USD )" real,
"Assets (bil. USD )" text,
"Market cap March 15 (mil. USD )" real
)
-- ... | SELECT COUNT("Rank (all) 2013") FROM table_2973 WHERE "Name" = 'Cenovus Energy' | wikisql |
CREATE TABLE table_174491_1 (
fis_nordic_world_ski_championships VARCHAR,
country VARCHAR,
holmenkollen VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Champio... | SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958" | sql_create_context |
CREATE TABLE table_8965 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How did Tim Herron place?
| SELECT "Place" FROM table_8965 WHERE "Player" = 'tim herron' | wikisql |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY bedType | nvbench |
CREATE TABLE table_14520977_1 (
date VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date when result is l 13 10 ot
| SELECT date FROM table_14520977_1 WHERE result = "L 13–10 OT" | sql_create_context |
CREATE TABLE Room (
RoomNumber INTEGER,
RoomType VARCHAR(30),
BlockFloor INTEGER,
BlockCode INTEGER,
Unavailable BOOLEAN
)
CREATE TABLE Physician (
EmployeeID INTEGER,
Name VARCHAR(30),
Position VARCHAR(30),
SSN INTEGER
)
CREATE TABLE On_Call (
Nurse INTEGER,
BlockFloor INT... | SELECT T1.Name, COUNT(T1.Name) FROM Physician AS T1 JOIN Trained_In AS T2 ON T1.EmployeeID = T2.Physician JOIN Procedures AS T3 ON T3.Code = T2.Treatment WHERE T3.Cost > 5000 GROUP BY T1.Name ORDER BY COUNT(T1.Name) | nvbench |
CREATE TABLE table_name_42 (
position VARCHAR,
channel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position when the channel shows channel 4?
| SELECT position FROM table_name_42 WHERE channel = "channel 4" | sql_create_context |
CREATE TABLE table_56490 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lap total for the grid under 15 that retired due to transmission?
| SELECT SUM("Laps") FROM table_56490 WHERE "Grid" < '15' AND "Time/Retired" = 'transmission' | wikisql |
CREATE TABLE table_name_32 (
born_in_a_non_eu_state__millions_ VARCHAR,
total_population__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were born in a non EU state (in millions), when the Total population (in millions) was 62.008?
| SELECT born_in_a_non_eu_state__millions_ FROM table_name_32 WHERE total_population__millions_ = 62.008 | sql_create_context |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT 1 AS No, 'Questions' AS "column", COUNT(Id) AS Total, AVG(CAST(Score AS FLOAT)) AS "average_score", STDEV(Score) AS "score_std_deviation" FROM Posts AS Q WHERE Q.ParentId IS NULL AND Q.CreationDate > DATEADD(m, -1, GETDATE()) UNION SELECT 2 AS No, 'Answers' AS "column", COUNT(Id) AS Total, AVG(CAST(Score AS FLOA... | sede |
CREATE TABLE table_44525 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the pick was below 42 and the player was Chris Horton, what's the highest Overall p... | SELECT MAX("Overall") FROM table_44525 WHERE "Name" = 'chris horton' AND "Pick" < '42' | wikisql |
CREATE TABLE table_34836 (
"Locomotive" text,
"Pre-conversion" text,
"Entered service (T)" text,
"Re-entered service (P)" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owns the item that was a T326 before conversion and re-entered... | SELECT "Owner" FROM table_34836 WHERE "Re-entered service (P)" = '11 september 1985' AND "Pre-conversion" = 't326' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc22.MED_INV_ITEM_TYPE FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '97469537322' AND t_kc22.SOC_SRT_DIRE_NM = '吸入用布地奈德混悬液' | css |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | SELECT MAX(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 = '009-5351')) AND lab.labname = 'anion gap' GROUP BY STRFTIME('%y-%m-%d', lab.labres... | eicu |
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
... | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY COUNT(T2.Party) | nvbench |
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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT demographic.admission_location, demographic.diagnosis FROM demographic WHERE demographic.name = "Steven Sepulveda" | 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 diagnosis (
diagn... | SELECT (SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-41152')) AND intakeoutput.cellpath L... | eicu |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 locations (
LOCATION_ID decimal(4,0... | SELECT SALARY, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE table_55366 (
"Title" text,
"Original story author" text,
"Director" text,
"Original U.S. air-date" text,
"Original Canadian air-date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Original Canadian air-date that was direct... | SELECT "Original Canadian air-date" FROM table_55366 WHERE "Director" = 'michael tolkin' | wikisql |
CREATE TABLE table_name_31 (
score VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Score of the Semifinal 1?
| SELECT score FROM table_name_31 WHERE round = "semifinal 1" | sql_create_context |
CREATE TABLE table_56949 (
"Place" real,
"Player Name" text,
"Yards" text,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the long of the player with 16 yards and less than 1 TD?
| SELECT SUM("Long") FROM table_56949 WHERE "Yards" = '16' AND "TD's" < '1' | wikisql |
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 AVG(MED_AMOUT) FROM t_kc21 WHERE MED_ORG_DEPT_CD = '662' AND IN_HOSP_DATE BETWEEN '2000-12-01' AND '2002-09-23' AND IN_DIAG_DIS_NM = '煤尘肺(炭末肺)' AND CLINIC_TYPE = '住院' | css |
CREATE TABLE table_26051 (
"Episode #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code (order they were made) #" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT MAX("Episode #") FROM table_26051 WHERE "Written by" = 'Paul West' | wikisql |
CREATE TABLE table_name_12 (
style VARCHAR,
results VARCHAR,
choreographer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Style of the dance Choreographed by Nacho Pop with result of safe?
| SELECT style FROM table_name_12 WHERE results = "safe" AND choreographer = "nacho pop" | sql_create_context |
CREATE TABLE table_48876 (
"Model" text,
"Length Over All" text,
"Beam" text,
"Sail Area" text,
"Crew" text,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Model has a Sail Area of 24.5 m ?
| SELECT "Model" FROM table_48876 WHERE "Sail Area" = '24.5 m²' | wikisql |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzj... | css |
CREATE TABLE table_203_300 (
id number,
"year" number,
"tournament" text,
"venue" text,
"result" text,
"extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year did yelena slesarenko accumulate the most ` top 5 ' finishes ?
| SELECT "year" FROM table_203_300 GROUP BY "year" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
CREATE TABLE table_38654 (
"Discipline" text,
"Peter" real,
"Adam" real,
"Jade" real,
"Plat'num" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Peter's score in kendo that has a plat'num less than 3?
| SELECT MIN("Peter") FROM table_38654 WHERE "Discipline" = 'kendo' AND "Plat'num" < '3' | wikisql |
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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "ACUTE SUBDURAL HEMATOMA" | mimicsql_data |
CREATE TABLE table_train_122 (
"id" int,
"metabolic_disease" bool,
"stroke" bool,
"renal_disease" bool,
"huntington_disease" bool,
"hepatic_disease" bool,
"psychiatric_disease" bool,
"multiple_sclerosis" bool,
"hyperlipidemia" bool,
"cardiovascular_disease" bool,
"estimated_g... | SELECT * FROM table_train_122 WHERE neurological_disease = 1 OR (parkinson_disease = 1 OR stroke = 1 OR huntington_disease = 1 OR normal_pressure_hydrocephalus = 1 OR brain_tumor = 1 OR supranuclear_palsy = 1 OR subdural_hematoma = 1 OR multiple_sclerosis = 1 OR seizure_disorder = 1 AND alzheimer_dementia = 0) | criteria2sql |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
s... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ye... | mimic_iii |
CREATE TABLE table_54478 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Event is at the Time 1:16?
| SELECT "Event" FROM table_54478 WHERE "Time" = '1:16' | wikisql |
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 * FROM hz_info JOIN zyjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND person_info_hz_i... | css |
CREATE TABLE table_name_98 (
date VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game when the Mavericks were the home team?
| SELECT date FROM table_name_98 WHERE home = "mavericks" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,... | SELECT JZKSRQ FROM mzjzjlb WHERE JZLSH = '21018594065' | css |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'excise lg intestine les') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83466) AND DATETIME(pro... | mimic_iii |
CREATE TABLE table_train_194 (
"id" int,
"organ_transplantation" bool,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"substance_dependence" bool,
"diastolic_blood_pressure_dbp" int,
"alcohol_abuse" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer ... | SELECT * FROM table_train_194 WHERE age >= 21 AND age <= 60 | criteria2sql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.