context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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,
... | give me the number of patients whose marital status is widowed and item id is 51003? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.itemid = "51003" | mimicsql_data |
CREATE TABLE table_28599 (
"Year" real,
"Under-11" text,
"Under-13" text,
"Under-15" text,
"Under-17" text,
"Under-19" text
) | When the under-17 was Antonio Glez, who was the under-13? | SELECT "Under-13" FROM table_28599 WHERE "Under-17" = 'Antonio Glez' | wikisql |
CREATE TABLE table_name_84 (
laps INTEGER,
finish VARCHAR,
qual VARCHAR
) | What was the most laps with a finish of 10 and qualification of 106.185? | SELECT MAX(laps) FROM table_name_84 WHERE finish = "10" AND qual = "106.185" | sql_create_context |
CREATE TABLE table_name_94 (
l2_cache VARCHAR,
part_number_s_ VARCHAR
) | What is the L2 Cache when the Part Number(s) is rk80530pz014256? | SELECT l2_cache FROM table_name_94 WHERE part_number_s_ = "rk80530pz014256" | sql_create_context |
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
) | List the names of entrepreneurs and their companies in descending order of money requested? | SELECT T2.name, T1.company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id ORDER BY T1.money_requested | spider |
CREATE TABLE table_name_91 (
loss VARCHAR,
date VARCHAR
) | What was the loss for August 19? | SELECT loss FROM table_name_91 WHERE date = "august 19" | sql_create_context |
CREATE TABLE table_22670 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | Name the game for june 16 | SELECT "Game" FROM table_22670 WHERE "Date" = 'June 16' | wikisql |
CREATE TABLE table_37451 (
"Team" text,
"Driver" text,
"Laps" real,
"Time" text,
"Grid" real
) | What is the average grid of driver Christian Vietoris who has less than 12 laps? | SELECT AVG("Grid") FROM table_37451 WHERE "Driver" = 'christian vietoris' AND "Laps" < '12' | wikisql |
CREATE TABLE table_67679 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | How many goal differences have Played larger than 44? | SELECT SUM("Goal Difference") FROM table_67679 WHERE "Played" > '44' | wikisql |
CREATE TABLE table_64368 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) | What is the notes entry for the row with a Time of 1:42.309? | SELECT "Notes" FROM table_64368 WHERE "Time" = '1:42.309' | wikisql |
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Subject... | What is the relationship between author_id and author_tutor_ATB ? | SELECT author_id, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | nvbench |
CREATE TABLE table_51154 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text,
"Attendance" real
) | What is the Opponent of the Game on October 20? | SELECT "Opponent" FROM table_51154 WHERE "Date" = 'october 20' | wikisql |
CREATE TABLE table_5026 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
) | Which 2nd (m) has a Rank larger than 1, and an Overall WC points (Rank) of 99 (8), and Points larger than 246.9? | SELECT SUM("2nd (m)") FROM table_5026 WHERE "Rank" > '1' AND "Overall WC points (Rank)" = '99 (8)' AND "Points" > '246.9' | 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 ... | 编号为28349097的病患的检验报告单的报告日期在15年4月17日之后的是哪些住院就诊的?列出流水号 | SELECT zyjzjlb.JZLSH 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 = '28349097' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2015-04-17') | css |
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,
... | give me the number of patients whose year of birth is less than 2101 and diagnoses short title is ac posthemorrhag anemia? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2101" AND diagnoses.short_title = "Ac posthemorrhag anemia" | 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 cost (
costid num... | what are the five most commonly prescribed drugs for patients who had previously received mri - head within the same hospital visit, in 2105? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'mri - head' AND... | eicu |
CREATE TABLE table_name_87 (
language VARCHAR,
network VARCHAR,
genre VARCHAR,
service VARCHAR
) | What language is the moviein that is on UMP movies network through Sky service? | SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies" | sql_create_context |
CREATE TABLE table_name_48 (
tournament VARCHAR
) | What is Tournament, when 2001 is '1R'? | SELECT tournament FROM table_name_48 WHERE 2001 = "1r" | sql_create_context |
CREATE TABLE table_name_56 (
winner VARCHAR,
tournament VARCHAR
) | Who was the winner in the Tournament of Graz-Seiersberg? | SELECT winner FROM table_name_56 WHERE tournament = "graz-seiersberg" | sql_create_context |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 在零二年五月三日到一六年七月二十日内科室484因疾病K33.439住院的平均费用是多少钱呢? | SELECT AVG(MED_AMOUT) FROM t_kc21 WHERE MED_ORG_DEPT_CD = '484' AND IN_HOSP_DATE BETWEEN '2002-05-03' AND '2016-07-20' AND IN_DIAG_DIS_CD = 'K33.439' AND CLINIC_TYPE = '住院' | css |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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 cost (
row_id nu... | is the arterial bp mean of patient 25300's body last measured on the last intensive care unit visit greater than the value first measured on the last intensive care unit visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25300) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | mimic_iii |
CREATE TABLE table_name_53 (
date VARCHAR,
to_par VARCHAR
) | Which date has a To par of 12? | SELECT date FROM table_name_53 WHERE to_par = "–12" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetake... | what was the last type of hospital admission type of patient 005-86645 until 2 years ago? | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '005-86645' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | eicu |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid n... | what was the daily maximum intake of feeding tube flush/water bolus amt (ml) that patient 022-127262 had received? | SELECT MAX(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 = '022-127262')) AND intakeoutput.celllabel = 'feed... | eicu |
CREATE TABLE table_40195 (
"Round" text,
"Date" text,
"Matches" real,
"Clubs" text,
"Prize money" text
) | What is the highest Matches, when Prize Money is 5,000? | SELECT MAX("Matches") FROM table_40195 WHERE "Prize money" = '£5,000' | wikisql |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | 在15年6月14日到17年1月10日期间,医疗机构8513028处理的新生儿门诊的就诊次数共是多少次? | SELECT COUNT(*) FROM mzjzjlb WHERE YLJGDM = '8513028' AND JZKSRQ BETWEEN '2015-06-14' AND '2017-01-10' AND ZSEBZ > 0 | css |
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE keyword (
keyword varchar,
... | return me the authors who have papers containing keyword ' Relational Database ' . | SELECT author.name FROM author, keyword, publication, publication_keyword, writes WHERE keyword.keyword = 'Relational Database' AND publication_keyword.kid = keyword.kid AND publication.pid = publication_keyword.pid AND writes.aid = author.aid AND writes.pid = publication.pid | academic |
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... | count the number of patients whose primary disease is ventricular tachycardia and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "VENTRICULAR TACHYCARDIA" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
... | How many documents in different ending date? Return a line chart grouping by ending date, and rank from low to high by the Date_in_Locaton_To. | SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Date_in_Locaton_To ORDER BY Date_in_Locaton_To | nvbench |
CREATE TABLE table_2409041_5 (
written_by VARCHAR,
original_air_date VARCHAR
) | Who wrote the episode that originally aired on January 15, 1993? | SELECT written_by FROM table_2409041_5 WHERE original_air_date = "January 15, 1993" | sql_create_context |
CREATE TABLE table_43662 (
"Bank" text,
"Score (Iran)" real,
"Score (Global)" real,
"Banking Power/Capital Base ($ Million)" real,
"Banking Power/Capital Base (% Change)" text,
"Total Assets ($ Million)" real,
"Total Assets (Score)" real,
"Total Assets (% Change)" text,
"Credibility/... | What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266? | SELECT COUNT("Performance/Return on Capital (Score)") FROM table_43662 WHERE "Score (Iran)" < '3' AND "Score (Global)" = '266' | wikisql |
CREATE TABLE table_name_92 (
grid INTEGER,
driver VARCHAR
) | What is the smallest grid for driver of juan pablo montoya? | SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya" | 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 lab (
subject_id text,
hadm_id text,
... | what is average age of patients whose gender is m and insurance is government? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.insurance = "Government" | mimicsql_data |
CREATE TABLE table_26835 (
"Series" real,
"Season" text,
"Original air date" text,
"Production code" text,
"Episode title" text
) | What is the name of the episode with a production code of 107? | SELECT "Episode title" FROM table_26835 WHERE "Production code" = '107' | wikisql |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CRE... | show me the flights on CO from INDIANAPOLIS to SAN DIEGO in the afternoon tomorrow | 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 = 'SAN DIEGO' AND date_day.day_number = 20 AND date_day.month_number = 1 A... | atis |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arriv... | what flights go from PITTSBURGH to DENVER after 1400 | 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.departure_time > 1400 AND flight.to_airport = AIRPORT_SERVICE_1.airpor... | atis |
CREATE TABLE table_name_18 (
best_fit__all_data_ VARCHAR,
parameter VARCHAR
) | What is the best fit (all data) when the parameter shows fluctuation amplitude at 8h 1 mpc? | SELECT best_fit__all_data_ FROM table_name_18 WHERE parameter = "fluctuation amplitude at 8h −1 mpc" | sql_create_context |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | How many UpVotes I've given?. | SELECT Id AS "user_link", UpVotes FROM Users WHERE Id = 6282576 | sede |
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 prescriptions (
subject_id text,
hadm_id... | how many patients whose admission year is less than 2158 and diagnoses long title is unspecified pleural effusion? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2158" AND diagnoses.long_title = "Unspecified pleural effusion" | mimicsql_data |
CREATE TABLE table_70891 (
"Auckland" text,
"Gold Coast" text,
"Sydney" text,
"Melbourne" text,
"Adelaide" text,
"Perth" text
) | Which Gold Coast has Auckland no, Adelaide yes, and Melbourne no? | SELECT "Gold Coast" FROM table_70891 WHERE "Auckland" = 'no' AND "Adelaide" = 'yes' AND "Melbourne" = 'no' | wikisql |
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... | what is the number of patients whose diagnoses short title is tobacco use disorder? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Tobacco use disorder" | mimicsql_data |
CREATE TABLE gwyjzb (
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,
... | 找出在一零年十二月二十七号到二一年十二月六号这些年里患者92724967在医院4295408开的所有药的编码和药名 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '92724967' AND gwyjzb.MED_SER_ORG_NO = '4295408' AND gwyjzb.IN_HOSP_DATE BETWEEN '2010-12-27' AND '2021-12-06' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb... | css |
CREATE TABLE table_19001175_1 (
poles VARCHAR,
name VARCHAR
) | Name the number of poles for stefano livio category:articles with hcards | SELECT COUNT(poles) FROM table_19001175_1 WHERE name = "Stefano Livio Category:Articles with hCards" | sql_create_context |
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int... | Bar chart x axis name y axis age | SELECT Name, Age FROM artist | nvbench |
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... | how many patients are admitted before the year 2162 and diagnosed with icd9 code v1009? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2162" AND diagnoses.icd9_code = "V1009" | mimicsql_data |
CREATE TABLE table_51613 (
"Date" text,
"Opponents" text,
"Score" text,
"Competition" text,
"Match Report" text
) | Which competition was held on September 10, 2005? | SELECT "Competition" FROM table_51613 WHERE "Date" = 'september 10, 2005' | wikisql |
CREATE TABLE table_name_39 (
date_of_birth VARCHAR,
club VARCHAR
) | What is the birth date of a member of the Club of bvsc v zilabda? | SELECT date_of_birth FROM table_name_39 WHERE club = "bvsc vízilabda" | sql_create_context |
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... | how many patients posses private insurance and were diagnosed are with prim pulm hypertension? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.short_title = "Prim pulm hypertension" | mimicsql_data |
CREATE TABLE table_1342393_17 (
incumbent VARCHAR,
first_elected VARCHAR
) | how many incumbent with first elected being 1924 | SELECT COUNT(incumbent) FROM table_1342393_17 WHERE first_elected = 1924 | sql_create_context |
CREATE TABLE table_29050051_3 (
previous_school VARCHAR,
height VARCHAR,
position VARCHAR
) | What was the previous school for the forward with a height of ft5in (m)? | SELECT previous_school FROM table_29050051_3 WHERE height = "ft5in (m)" AND position = "Forward" | sql_create_context |
CREATE TABLE table_25488 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | When we played Houston who had the most points? | SELECT "High points" FROM table_25488 WHERE "Team" = 'Houston' | wikisql |
CREATE TABLE table_56015 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | If the Away team had a score of 14.14 (98), what's the name of the Away team? | SELECT "Away team" FROM table_56015 WHERE "Away team score" = '14.14 (98)' | wikisql |
CREATE TABLE table_69026 (
"Appearances" real,
"Team" text,
"Wins" real,
"Losses" real,
"Winning percentage" real,
"Season(s)" text
) | For the Reno Aces, what are the Losses when they had 1 Appearances and a Winning Percentage of 1? | SELECT SUM("Losses") FROM table_69026 WHERE "Appearances" = '1' AND "Winning percentage" = '1' AND "Team" = 'reno aces' | wikisql |
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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | which patients are suffering from abdominal abscess primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL ABSCESS" | mimicsql_data |
CREATE TABLE table_20726 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Time" text
) | What home team played the West Coast away team? | SELECT "Home team" FROM table_20726 WHERE "Away team" = 'West Coast' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | when was the last time that patient 030-10559 has the minimum total co2 last month? | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-10559')) AND lab.labname = 'total co2' AND DATETIME(lab.labresulttime, 'start o... | eicu |
CREATE TABLE table_41484 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
) | Who was the winner from the Rip Curl Pro Search? | SELECT "Winner" FROM table_41484 WHERE "Event" = 'rip curl pro search' | wikisql |
CREATE TABLE table_299271_2 (
attendance VARCHAR,
competition VARCHAR
) | How many people attended the uefa champions league competition? | SELECT attendance FROM table_299271_2 WHERE competition = "UEFA Champions League" | sql_create_context |
CREATE TABLE table_2938 (
"Season" real,
"Lowest" real,
"Low Team" text,
"Average" real,
"Highest" real,
"High Team" text,
"2nd Highest" real,
"2nd Team" text
) | What is the average when 2nd highest was 27242? | SELECT MAX("Average") FROM table_2938 WHERE "2nd Highest" = '27242' | wikisql |
CREATE TABLE table_204_957 (
id number,
"year" number,
"team" text,
"games" number,
"combined tackles" number,
"tackles" number,
"assisted tackles" number,
"sacks" number,
"forced fumbles" number,
"fumble recoveries" number,
"fumble return yards" number,
"interceptions" n... | what is the total number of passes this player has defended ? | SELECT SUM("passes defended") FROM table_204_957 | squall |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | what are the four most frequent laboratory tests that patients have had within 2 months after receiving a pulsation balloon implan procedure during the last year? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | mimic_iii |
CREATE TABLE table_15629 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | What is the result of the week 1 game? | SELECT "Result" FROM table_15629 WHERE "Week" = '1' | wikisql |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
... | query for machine learning - NLP. | SELECT Title, Body, Tags FROM Posts | sede |
CREATE TABLE table_68820 (
"Year" real,
"Region total" real,
"Goondiwindi" real,
"Waggamba" real,
"Inglewood" real
) | What is the region total before 1986 with a Waggamba of 2,732, and a Goondiwindi less than 3,576? | SELECT SUM("Region total") FROM table_68820 WHERE "Year" < '1986' AND "Waggamba" = '2,732' AND "Goondiwindi" < '3,576' | wikisql |
CREATE TABLE table_13403120_1 (
prodcode VARCHAR,
originalairdate VARCHAR
) | what is the prod.code of the episode with original air date 01/12/1968? | SELECT COUNT(prodcode) FROM table_13403120_1 WHERE originalairdate = "01/12/1968" | sql_create_context |
CREATE TABLE table_41602 (
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | What is the Original air date for the episode with a Production code of 07-00-107? | SELECT "Original air date" FROM table_41602 WHERE "Production code" = '07-00-107' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
E... | Question score as a function of length, normalized by views. Plots average value of (question score / number of views), +/- 1 standard deviation, as a function of binned question length. | SELECT AVG(LENGTH(Body)) AS AverageLength, AVG(CAST(Score AS FLOAT) / ViewCount) AS QuestionScorePerViews, AVG(CAST(Score AS FLOAT) / ViewCount) + STDEV(CAST(Score AS FLOAT) / ViewCount) AS PlusOneSigma, AVG(CAST(Score AS FLOAT) / ViewCount) - STDEV(CAST(Score AS FLOAT) / ViewCount) AS MinusOneSigma FROM Posts WHERE Po... | sede |
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... | 查查编码为20724976的病人被开出过金额不低于7866.88元的医疗记录,看看这些医疗就诊的编号 | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '20724976' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 7866.88) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '20724976' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID ... | css |
CREATE TABLE table_name_31 (
longitude INTEGER,
latitude VARCHAR,
water__sqmi_ VARCHAR
) | What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005? | SELECT MIN(longitude) FROM table_name_31 WHERE latitude = 46.843963 AND water__sqmi_ < 0.052000000000000005 | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | count the number of patients whose age is less than 62 and lab test category is blood gas? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "62" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_22810095_8 (
transfer_fee VARCHAR,
n VARCHAR
) | How much was the transfer fee when n is 2? | SELECT transfer_fee FROM table_22810095_8 WHERE n = 2 | sql_create_context |
CREATE TABLE table_23286112_7 (
location_attendance VARCHAR,
high_assists VARCHAR,
high_rebounds VARCHAR
) | What location attendance has russell westbrook (5) as high assists and nenad krstic (8) as high rebounds? | SELECT location_attendance FROM table_23286112_7 WHERE high_assists = "Russell Westbrook (5)" AND high_rebounds = "Nenad Krstic (8)" | sql_create_context |
CREATE TABLE table_name_59 (
competition VARCHAR,
score VARCHAR,
goal VARCHAR
) | What is the Competition where the Score was 3 0, and the was Goal larger than 4? | SELECT competition FROM table_name_59 WHERE score = "3–0" AND goal > 4 | sql_create_context |
CREATE TABLE table_78302 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | What was time/retired with less than 67 laps and 6 points? | SELECT "Time/Retired" FROM table_78302 WHERE "Laps" < '67' AND "Points" = '6' | 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 ... | 列出在医院0319489中患者43810325名称不包含关节的出院科室住院就诊记录有什么? | SELECT * FROM hz_info JOIN zyjzjlb JOIN hz_info_zyjzjlb ON hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.zyjzjlb... | css |
CREATE TABLE table_name_42 (
isbn VARCHAR,
first_edition VARCHAR
) | What is the ISBN of the book with a first edition in May 2011? | SELECT isbn FROM table_name_42 WHERE first_edition = "may 2011" | sql_create_context |
CREATE TABLE table_23186738_6 (
record VARCHAR,
team VARCHAR
) | Name the record for golden state | SELECT record FROM table_23186738_6 WHERE team = "Golden State" | sql_create_context |
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE customer (
cust_ID varchar(3),... | What is the average account balance of customers with credit score below 50 for the different account types Visualize by bar chart, display the average of acc bal from high to low order. | SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type ORDER BY AVG(acc_bal) DESC | nvbench |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text te... | Counts of recent moderator actions. | SELECT ph.UserId AS "user_link", COUNT(ph.Id) FROM PostHistory AS ph INNER JOIN Posts AS p ON ph.PostId = p.Id AND ph.PostHistoryTypeId IN (14, 15, 16, 37, 38) AND p.PostTypeId = 1 WHERE (ph.CreationDate >= '##Date1?2019-01-01##') AND (ph.CreationDate <= '##Date2?2020-01-01##') GROUP BY ph.UserId ORDER BY COUNT(ph.Id) ... | sede |
CREATE TABLE table_26675 (
"Date (YYYY-MM-DD)" text,
"Time (UTC)" text,
"Latitude" text,
"Longitude" text,
"Depth" text,
"Magnitude" text
) | When 9:47:38 is the time (utc) how many measurements of latitude are there? | SELECT COUNT("Latitude") FROM table_26675 WHERE "Time (UTC)" = '9:47:38' | wikisql |
CREATE TABLE table_68621 (
"Date" text,
"Location" text,
"Nature of incident" text,
"Circumstances" text,
"Casualties" text
) | Where was the incident of 2009-09-05? | SELECT "Location" FROM table_68621 WHERE "Date" = '2009-09-05' | wikisql |
CREATE TABLE table_name_52 (
airport VARCHAR,
carriers VARCHAR
) | Which Airport has a Carrier of malaysia airlines? | SELECT airport FROM table_name_52 WHERE carriers = "malaysia airlines" | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Give me the comparison about Team_ID over the All_Neutral by a bar chart, and display by the Y-axis in ascending. | SELECT All_Neutral, Team_ID FROM basketball_match ORDER BY Team_ID | nvbench |
CREATE TABLE table_51227 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Driver" text,
"Rounds" text
) | What is the name of the Chassis of Diver Maria Teresa de Filippis in round 1? | SELECT "Chassis" FROM table_51227 WHERE "Rounds" = '1' AND "Driver" = 'maria teresa de filippis' | wikisql |
CREATE TABLE table_12943 (
"Class" text,
"Number(s)" text,
"DRG Number(s)" text,
"Quantity" real,
"Year(s) of Manufacture" text,
"Type" text
) | What class has 99 201 as the DRG Number(s)? | SELECT "Class" FROM table_12943 WHERE "DRG Number(s)" = '99 201' | wikisql |
CREATE TABLE table_62992 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
) | What series was called Egghead Rides Again? | SELECT "Series" FROM table_62992 WHERE "Title" = 'egghead rides again' | wikisql |
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | Give me the comparison about the amount of Sex over the Sex , and group by attribute Sex by a bar chart, display in desc by the x axis. | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY Sex DESC | nvbench |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | what would be patient 007-10615's daily minimum weight since 34 months ago? | SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-10615') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-34 month') GROUP BY STRFTIME... | eicu |
CREATE TABLE table_66526 (
"New area code" real,
"Where" text,
"Affected area codes" text,
"Format" text,
"Effective date" text
) | Which New area code is in nevada? | SELECT "New area code" FROM table_66526 WHERE "Where" = 'nevada' | wikisql |
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... | 把2004年9月8日到2020年2月21日期间患者王傲冬一共做过多少次检查查看一下 | SELECT COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_NM = '王傲冬' AND t_kc22.STA_DATE BETWEEN '2004-09-08' AND '2020-02-21' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_NM = '王傲冬' A... | css |
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.JZZDBM, mzjzjlb.JZZDSM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_... | css |
CREATE TABLE table_name_40 (
loses INTEGER,
draws INTEGER
) | What average Loses has Draws less than 0? | SELECT AVG(loses) FROM table_name_40 WHERE draws < 0 | sql_create_context |
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 * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND 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_MZJZ... | css |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight_stop (
flight_id int,
stop... | list all flights from ORLANDO to KANSAS CITY then to MINNEAPOLIS | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MINNEAPOLIS' AND CITY_... | atis |
CREATE TABLE table_name_3 (
race VARCHAR,
date VARCHAR
) | What is the race on 10/10/2008? | SELECT race FROM table_name_3 WHERE date = "10/10/2008" | sql_create_context |
CREATE TABLE table_37400 (
"Year" text,
"Winner" text,
"Runner-Up" text,
"Semi-Finalists" text,
"Quarter-Finalists" text,
"Last 16" text,
"Last 32" text,
"Last 64" text,
"Total" text
) | Which Runner-Up has a Last 16 of 300? | SELECT "Runner-Up" FROM table_37400 WHERE "Last 16" = '£300' | wikisql |
CREATE TABLE table_53413 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | What was the score in the tournament in which Michael Stich took third place? | SELECT "Score" FROM table_53413 WHERE "Third Place" = 'michael stich' | wikisql |
CREATE TABLE table_36501 (
"Arabic" text,
"English" text,
"Maltese" text,
"Turkish" text,
"Somali" text,
"Persian" text,
"Urdu" text,
"Hindi" text,
"Punjabi (India)" text,
"Punjabi (Pakistan)" text,
"Malayalam" text,
"Bangla" text,
"Hebrew" text,
"Indonesian" text... | What is the Pashto word for the Somali word talaado? | SELECT "Pashto" FROM table_36501 WHERE "Somali" = 'talaado' | wikisql |
CREATE TABLE table_train_174 (
"id" int,
"fasting_plasma_glucose_fpg" float,
"hemoglobin_a1c_hba1c" float,
"substance_dependence" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"allergy_to_insulin_lispro" bool,
"urine_albumin_to_creatinine_ratio_uacr" int,
"smoking" bool,
"NO... | has hba1c levels at screening between 7 % and 10 % | SELECT * FROM table_train_174 WHERE hemoglobin_a1c_hba1c > 7 AND hemoglobin_a1c_hba1c < 10 | criteria2sql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeri... | what difference in the weight of patient 030-56105 last measured on the first hospital visit compared to the value first measured on the first hospital visit? | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-56105' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL OR... | eicu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.