instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_4 (
record VARCHAR,
method VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Record, when Method is 'Technical Submission (Rear Naked Choke)'?
| SELECT record FROM table_name_4 WHERE method = "technical submission (rear naked choke)" | sql_create_context |
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.diagnosis, demographic.dischtime FROM demographic WHERE demographic.subject_id = "26285" | mimicsql_data |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_gradu... | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%topic0%' OR name LIKE '%topic0%') AND department = 'EECS' | advising |
CREATE TABLE table_203_8 (
id number,
"player" text,
"rec." number,
"yards" number,
"avg." number,
"td's" number,
"long" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in yards averaged between cecil moore and raymon... | SELECT (SELECT "yards" FROM table_203_8 WHERE "player" = 'cecil moore') - (SELECT "yards" FROM table_203_8 WHERE "player" = 'raymond philyaw') | squall |
CREATE TABLE table_204_463 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only year that the seattle sounders qualif... | SELECT "year" FROM table_204_463 WHERE "open cup" <> 'did not qualify' | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM... | css |
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_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '21485426' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 7162.91) | css |
CREATE TABLE table_26509 (
"Team" text,
"Location" text,
"Stadium" text,
"Capacity" real,
"Manager" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capacity for Sangre Grande Ground, home of the North East Stars?
| SELECT COUNT("Capacity") FROM table_26509 WHERE "Team" = 'North East Stars' | wikisql |
CREATE TABLE table_11630008_3 (
original_air_date VARCHAR,
series_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the airdate of 21 series number?
| SELECT original_air_date FROM table_11630008_3 WHERE series_no = 21 | sql_create_context |
CREATE TABLE table_25655781_17 (
stage INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stages are there?
| SELECT MAX(stage) FROM table_25655781_17 | sql_create_context |
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.MED_ORG_DEPT_CD, qtb.MED_ORG_DEPT_NM FROM qtb WHERE qtb.MED_CLINIC_ID = '41121954222' UNION SELECT gyb.MED_ORG_DEPT_CD, gyb.MED_ORG_DEPT_NM FROM gyb WHERE gyb.MED_CLINIC_ID = '41121954222' UNION SELECT zyb.MED_ORG_DEPT_CD, zyb.MED_ORG_DEPT_NM FROM zyb WHERE zyb.MED_CLINIC_ID = '41121954222' UNION SELECT mzb.... | css |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY roomName DESC | nvbench |
CREATE TABLE table_13998897_1 (
fcc_info VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the fcc info with call sign being w265av
| SELECT fcc_info FROM table_13998897_1 WHERE call_sign = "W265AV" | sql_create_context |
CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building_description text,
building_address text,
building_manager text,
building_phone text
)
CREATE TABLE apartment_bookings (
apt_booking_id number,
apt_id number,
guest_... | SELECT building_full_name FROM apartment_buildings WHERE building_full_name LIKE "%court%" | spider |
CREATE TABLE table_name_66 (
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game when the record was 28 45?
| SELECT opponent FROM table_name_66 WHERE record = "28–45" | sql_create_context |
CREATE TABLE table_name_58 (
game INTEGER,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average game with a record of 4-4-0?
| SELECT AVG(game) FROM table_name_58 WHERE record = "4-4-0" | sql_create_context |
CREATE TABLE table_22580855_1 (
written_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who are the writers when the production code is 8011?
| SELECT written_by FROM table_22580855_1 WHERE production_code = 8011 | sql_create_context |
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 SUM(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.MED_SER_ORG_NO = '1849548' AND qtb.MED_ORG_DEPT_CD = '1081' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.MED_SER_ORG_NO = '1849548' AND gyb.MED_ORG_DEPT_CD = '1081' UNION SELECT zyb.MED_CLINIC_ID FRO... | css |
CREATE TABLE table_name_71 (
elevation_msl VARCHAR,
housing__2007_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the elevation of the city with a number of 91,385 Housing dwellings in 2007?
| SELECT elevation_msl FROM table_name_71 WHERE housing__2007_ = "91,385" | sql_create_context |
CREATE TABLE table_name_1 (
cf_wins INTEGER,
cup_wins VARCHAR,
team VARCHAR,
cf_appearances VARCHAR,
last_cf VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of cf wins of the chicago blackhawks, which has more than 4 cf a... | SELECT MIN(cf_wins) FROM table_name_1 WHERE cf_appearances > 4 AND last_cf = 2013 AND team = "chicago blackhawks" AND cup_wins > 2 | sql_create_context |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE time_inte... | 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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = '... | atis |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM tex... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM... | css |
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 name, number FROM course WHERE credits = 13 AND department = 'EECS' | advising |
CREATE TABLE table_name_18 (
starts VARCHAR,
wins VARCHAR,
money_list_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which total number of starts has more than 2 wins and a money list rank greater than 1?
| SELECT COUNT(starts) FROM table_name_18 WHERE wins > 2 AND money_list_rank > 1 | 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 jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE table_75313 (
"Season" text,
"Season Premiere" text,
"Season Finale" text,
"Winner" text,
"Runner-up" text,
"Number of Contestants" real,
"Winner's Country" text,
"Runner Up's Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Season" FROM table_75313 WHERE "Runner Up's Country" = 'mexico' AND "Winner" = 'melissa marty' | wikisql |
CREATE TABLE table_name_55 (
year INTEGER,
event VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest Year for 400m h Event with 54.86 in Notes?
| SELECT MIN(year) FROM table_name_55 WHERE event = "400m h" AND notes = "54.86" | sql_create_context |
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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "3804" | mimicsql_data |
CREATE TABLE table_22948559_1 (
production_code VARCHAR,
no_in_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the production code for number in season being 21
| SELECT production_code FROM table_22948559_1 WHERE no_in_season = "21" | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "6" AND diagnoses.icd9_code = "59654" | mimicsql_data |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "DEAD/EXPIRED" AND diagnoses.short_title = "Chr tot occlus cor artry" | mimicsql_data |
CREATE TABLE table_name_16 (
opponent VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Opponent when the Score is 2-8?
| SELECT opponent FROM table_name_16 WHERE score = "2-8" | sql_create_context |
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 int,
from_airport varchar,
meal_code text,
stops int,... | 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, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND fare_basis.class_type = 'FIRST' AND fare.fare_... | atis |
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 jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AN... | css |
CREATE TABLE table_7574 (
"Date (CE)" text,
"Text" text,
"Simplified characters" text,
"Traditional characters" text,
"Pinyin" text,
"Wade-Giles" text,
"Literal meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which text has Wade-Gile... | SELECT "Text" FROM table_7574 WHERE "Wade-Giles" = 'ai-ma … hsin-yüan' | wikisql |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
C... | SELECT uu.Id AS "user_link", aCt.aCt AS NumAnswers FROM Users AS uu INNER JOIN (SELECT uuu.Id, COUNT(*) AS aCt FROM Posts AS pp INNER JOIN Users AS uuu ON pp.OwnerUserId = uuu.Id WHERE pp.PostTypeId = 2 GROUP BY uuu.Id) AS aCt ON uu.Id = aCt.Id WHERE uu.Id NOT IN (SELECT u.Id FROM Posts AS p INNER JOIN Users AS u ON p.... | sede |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
... | SELECT UserId AS "user_link", SUM(BountyAmount) AS TotalBounties FROM Votes WHERE VoteTypeId = 8 GROUP BY UserId ORDER BY TotalBounties DESC | sede |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS YEAR, Percentage_Solved_Questions = SUM(CASE WHEN NOT AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) / CAST(COUNT(Id) AS FLOAT) FROM Posts GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) ORDER BY year | sede |
CREATE TABLE table_name_92 (
sport VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sport was in the 1992 Barcelona games?
| SELECT sport FROM table_name_92 WHERE games = "1992 barcelona" | sql_create_context |
CREATE TABLE table_65484 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the against when there were more than 2 losses, more than 3 wins, and draws more than 0?
| SELECT AVG("Against") FROM table_65484 WHERE "Losses" > '2' AND "Wins" > '3' AND "Draws" > '0' | wikisql |
CREATE TABLE table_25594888_1 (
yacht VARCHAR,
skipper VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What yacht type is involved where Bob Oatley is the skipper?
| SELECT yacht AS type FROM table_25594888_1 WHERE skipper = "Bob Oatley" | sql_create_context |
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14054) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | mimic_iii |
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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2120" AND lab.fluid = "Blood" | mimicsql_data |
CREATE TABLE table_203_729 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
)
-- U... | SELECT "population\ncenter" FROM table_203_729 WHERE "township" = 'green garden' | squall |
CREATE TABLE table_22019 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the follo... | SELECT "Drawn" FROM table_22019 WHERE "Played" = 'Played' | wikisql |
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 intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-75161') AND NOT patient.unitdischargetime IS NULL... | eicu |
CREATE TABLE table_15211468_1 (
uk_broadcast_date VARCHAR,
countries_visited VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the UK broadcast date for the episode which visited USA?
| SELECT uk_broadcast_date FROM table_15211468_1 WHERE countries_visited = "USA" | sql_create_context |
CREATE TABLE table_name_39 (
name VARCHAR,
transfer_window VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE NAME WITH A SUMMER TRANSFER WINDOW, AND COUNTRY SEN?
| SELECT name FROM table_name_39 WHERE transfer_window = "summer" AND country = "sen" | sql_create_context |
CREATE TABLE table_11254821_2 (
points_awarded__platinum_ VARCHAR,
points_awarded__silver_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many platinum points were awarded when 70 silver points were awarded?
| SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__silver_ = 70 | 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 COUNT(DISTINCT mzjzjlb.ZZYSGH) 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 '2005-11-03' AND '2007-09-11' | css |
CREATE TABLE table_1871 (
"Team" text,
"Location" text,
"County" text,
"Division" text,
"Home ground" text,
"Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the team in Sussex county located?
| SELECT "Location" FROM table_1871 WHERE "County" = 'Sussex' | wikisql |
CREATE TABLE table_204_864 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me an engine that was used by at least 3 different... | SELECT "engine" FROM table_204_864 GROUP BY "engine" HAVING COUNT("team") >= 3 | squall |
CREATE TABLE table_name_21 (
total INTEGER,
snatch VARCHAR,
event VARCHAR,
clean_ VARCHAR,
_jerk VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest total that had less than 170 snatches, 56 kg events and less than 145 clean & jerk?... | SELECT MIN(total) FROM table_name_21 WHERE snatch < 170 AND event = "56 kg" AND clean_ & _jerk < 145 | sql_create_context |
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.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb 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 AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH =... | css |
CREATE TABLE table_name_84 (
loss VARCHAR,
coach VARCHAR,
pts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
| SELECT COUNT(loss) FROM table_name_84 WHERE coach = "john kowalski" AND pts < 9 | sql_create_context |
CREATE TABLE table_17103729_8 (
record VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for attendance location of palace of auburn hills 15,210
| SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210" | sql_create_context |
CREATE TABLE diagnoses (
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 prescriptions... | SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "MORBID OBESITY/SDA" | mimicsql_data |
CREATE TABLE table_19908313_2 (
primary_sponsor_s_ VARCHAR,
listed_owner_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who sponsors owner Bobby Dotter's team?
| SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE listed_owner_s_ = "Bobby Dotter" | sql_create_context |
CREATE TABLE table_63377 (
"Model" text,
"Years" text,
"Engine code" text,
"Power" text,
"Torque" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the torque on the model with power of hp (kw; ps)@5800?
| SELECT "Torque" FROM table_63377 WHERE "Power" = 'hp (kw; ps)@5800' | wikisql |
CREATE TABLE table_22845 (
"Rank" real,
"London Borough" text,
"Indian Population" real,
"Pakistani Population" real,
"Bangladeshi Population" real,
"Chinese Population" real,
"Other Asian Population" real,
"Total Asian Population" real
)
-- Using valid SQLite, answer the following que... | SELECT MIN("Bangladeshi Population") FROM table_22845 WHERE "Rank" = '7' | wikisql |
CREATE TABLE table_203_141 (
id number,
"sr. no." number,
"name" text,
"from" text,
"till" text,
"occupation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- before rudhra gangadharan , how many directors were before him ?
| SELECT COUNT("name") FROM table_203_141 WHERE "sr. no." > (SELECT "sr. no." FROM table_203_141 WHERE "name" = 'rudhra gangadharan') | squall |
CREATE TABLE table_62487 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for gold when the rank is less than 3, and silver less than 1?
| SELECT SUM("Gold") FROM table_62487 WHERE "Rank" < '3' AND "Silver" < '1' | wikisql |
CREATE TABLE table_name_96 (
total INTEGER,
nation VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total that has a number of Nation and a Gold smaller than 16?
| SELECT MIN(total) FROM table_name_96 WHERE nation = total AND gold < 16 | sql_create_context |
CREATE TABLE table_74234 (
"Song title" text,
"Artist" text,
"Show" text,
"Difficulty" real,
"Effort" real,
"Year" real,
"Dancers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What show featured the song 'little shop of horrors'?
| SELECT "Show" FROM table_74234 WHERE "Song title" = 'Little Shop of Horrors' | wikisql |
CREATE TABLE table_203_655 (
id number,
"goal" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different venues were played at ?
| SELECT COUNT(DISTINCT "venue") FROM table_203_655 | squall |
CREATE TABLE table_name_80 (
mascot VARCHAR,
ihsaa_class___football_class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which mascot has an IHSAA Class and Football class of 2A/2A?
| SELECT mascot FROM table_name_80 WHERE ihsaa_class___football_class = "2a/2a" | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM tex... | SELECT zyjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '花正阳' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2018-09-29') | css |
CREATE TABLE table_31520 (
"Rnd" real,
"Circuit" text,
"Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Supporting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Fastest lap" FROM table_31520 WHERE "Location" = 'Bowmanville, Ontario' | wikisql |
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABL... | SELECT date_of_latest_revision, COUNT(date_of_latest_revision) FROM Catalogs ORDER BY COUNT(date_of_latest_revision) | nvbench |
CREATE TABLE table_17154 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of years for rockets whe... | SELECT COUNT("Years for Rockets") FROM table_17154 WHERE "School/Club Team/Country" = 'Baylor' | wikisql |
CREATE TABLE table_58665 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Play... | SELECT "Played" FROM table_58665 WHERE "Goal Difference" = '+51' | wikisql |
CREATE TABLE table_4239 (
"Train number" real,
"Train name" text,
"Origin" text,
"Destination" text,
"Service" text,
"Route/Via." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many trains are there for the route via trivandrum, ernakulam, n... | SELECT COUNT("Train number") FROM table_4239 WHERE "Route/Via." = 'Trivandrum, Ernakulam, NewDelhi' | wikisql |
CREATE TABLE Apartments (
apt_number VARCHAR,
bedroom_count VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return the apartment number with the largest number of bedrooms.
| SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_name_63 (
team VARCHAR,
sponsor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team is sponsored by chameleon sunglasses?
| SELECT team FROM table_name_63 WHERE sponsor = "chameleon sunglasses" | sql_create_context |
CREATE TABLE table_name_30 (
loss VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which loss has a Date of april 26?
| SELECT loss FROM table_name_30 WHERE date = "april 26" | sql_create_context |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Na... | SELECT Posts.Id AS "post_link", * FROM Posts WHERE Posts.PostTypeId = 1 AND Posts.Tags LIKE '<java-8>' AND NOT Posts.Tags LIKE '<java>' ORDER BY Posts.Score DESC | sede |
CREATE TABLE table_34186 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text,
"Year joined" real,
"Previous conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Enrollment... | SELECT SUM("Enrollment") FROM table_34186 WHERE "Mascot" = 'norsemen' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
... | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vitamin b12' AND DATETIME(treatment.treatmen... | eicu |
CREATE TABLE table_name_21 (
year INTEGER,
edition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had an edition of 115th?
| SELECT AVG(year) FROM table_name_21 WHERE edition = "115th" | sql_create_context |
CREATE TABLE table_2624 (
"Name" text,
"#" real,
"Position" text,
"Height" text,
"Weight" real,
"Year" text,
"Home Town" text,
"High School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the # when conroe, tx is the hometown?
| SELECT MIN("#") FROM table_2624 WHERE "Home Town" = 'Conroe, TX' | wikisql |
CREATE TABLE table_name_8 (
laps INTEGER,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Sylvain Guintoli's laps?
| SELECT SUM(laps) FROM table_name_8 WHERE rider = "sylvain guintoli" | sql_create_context |
CREATE TABLE table_70251 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which venue was the result a draw?
| SELECT "Venue" FROM table_70251 WHERE "Result" = 'draw' | wikisql |
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE music_festival (
id number,
music_festival text,
date_of_ceremony text,
category text,
volume number,
result text
)
CREATE TABLE a... | SELECT famous_title FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM volume) | spider |
CREATE TABLE table_43915 (
"Pastoral Region" text,
"Episcopal vicar" text,
"Parishes" real,
"High schools" real,
"Elementary schools" text,
"Cemeteries" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Parishes in Merrimack which has 4 Ce... | SELECT MIN("Parishes") FROM table_43915 WHERE "Pastoral Region" = 'merrimack' AND "Cemeteries" < '4' | 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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "GASTROINTESTINAL BLEED" AND prescriptions.route = "TP" | mimicsql_data |
CREATE TABLE table_name_25 (
vietnamese VARCHAR,
chinese VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which VIETNAMESE has a CHINESE of / b r m du ?
| SELECT vietnamese FROM table_name_25 WHERE chinese = "不如密多 / bùrúmìduō" | sql_create_context |
CREATE TABLE table_name_97 (
transfer_fee VARCHAR,
ends VARCHAR,
moving_from VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the transfer fee for the player ending in 2011 and moving from Thrasyvoulos?
| SELECT transfer_fee FROM table_name_97 WHERE ends = 2011 AND moving_from = "thrasyvoulos" | sql_create_context |
CREATE TABLE table_4515 (
"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 was the home team's score when the away team... | SELECT "Home team score" FROM table_4515 WHERE "Away team score" = '10.11 (71)' | wikisql |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jo... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester... | advising |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "Drug detoxification" | mimicsql_data |
CREATE TABLE table_26977 (
"Season" text,
"Premier Division" text,
"Division One" text,
"Division Two" text,
"Division Three" text,
"Division Four" text,
"Division Five" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When westcott is in divi... | SELECT COUNT("Division Five") FROM table_26977 WHERE "Division One" = 'Westcott' | wikisql |
CREATE TABLE zyb (
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 * FROM qtb WHERE qtb.PERSON_ID = '98735350' AND qtb.MED_SER_ORG_NO = '5087372' AND qtb.MED_ORG_DEPT_NM LIKE '%脑外%' UNION SELECT * FROM gyb WHERE gyb.PERSON_ID = '98735350' AND gyb.MED_SER_ORG_NO = '5087372' AND gyb.MED_ORG_DEPT_NM LIKE '%脑外%' UNION SELECT * FROM zyb WHERE zyb.PERSON_ID = '98735350' AND zyb.MED_S... | css |
CREATE TABLE table_23092 (
"Country" text,
"Area km\u00b2" real,
"Population" real,
"Population density per km\u00b2" real,
"HDI (2011)" text,
"Capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many populations have a capital of Hong K... | SELECT COUNT("Population") FROM table_23092 WHERE "Capital" = 'Hong Kong' | wikisql |
CREATE TABLE table_7087 (
"Rank" real,
"Name" text,
"Population 1991" real,
"Population 2001" real,
"Population 2007" real,
"State" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the sum of the population in 2007, from State Tyrol, in 1... | SELECT SUM("Population 2007") FROM table_7087 WHERE "State" = 'tyrol' AND "Population 1991" < '10,179' AND "Rank" > '52' | wikisql |
CREATE TABLE table_3572 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Title" FROM table_3572 WHERE "Production code" = '2010' | wikisql |
CREATE TABLE table_name_48 (
last_10_meetings VARCHAR,
at_norman VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Last 10 Meetings when Norman is ou, 18-6?
| SELECT last_10_meetings FROM table_name_48 WHERE at_norman = "ou, 18-6" | sql_create_context |
CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points number,
horizontal_bar_points number,
total_points number
)
CREATE TABLE people (
people_id number,
name text,
a... | SELECT DISTINCT T2.hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id WHERE T1.total_points > 57.5 | spider |
CREATE TABLE student (
stu_num VARCHAR,
stu_lname VARCHAR
)
CREATE TABLE enroll (
class_code VARCHAR,
stu_num VARCHAR
)
CREATE TABLE CLASS (
class_code VARCHAR,
crs_code VARCHAR
)
CREATE TABLE course (
crs_description VARCHAR,
crs_credit VARCHAR,
crs_code VARCHAR
)
-- Using vali... | SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson' | sql_create_context |
CREATE TABLE table_40989 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the To Par of winning score 71-66-70-67=274?
| SELECT "To par" FROM table_40989 WHERE "Winning score" = '71-66-70-67=274' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pneumothorax - spontaneous' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') | eicu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.