context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE department (
departmentid number,
name text,
head number
)
CREATE TABLE prescribes (
physician number,
patient number,
medication number,
date time,
appointment number,
dose text
)
CREATE TABLE affiliated_with (
physician number,
department number,
primarya... | What are the names of the physicians who have 'senior' in their titles. | SELECT name FROM physician WHERE position LIKE '%senior%' | spider |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | For those employees who was hired before 2002-06-21, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | Tags with excerpts but no wikis. | SELECT t.TagName, t.Count, ep.Body AS ExcerptBody, wp.Body AS WikiBody FROM Tags AS t LEFT JOIN Posts AS ep ON t.ExcerptPostId = ep.Id LEFT JOIN Posts AS wp ON t.WikiPostId = wp.Id ORDER BY t.Count DESC | sede |
CREATE TABLE table_name_27 (
record VARCHAR,
date VARCHAR
) | What is the Record with a Date with 29 march 2008? | SELECT record FROM table_name_27 WHERE date = "29 march 2008" | sql_create_context |
CREATE TABLE table_65898 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent in the final" text,
"Score" text
) | What tournament has petra mandula patricia wartusch as the opponent in the final? | SELECT "Tournament" FROM table_65898 WHERE "Opponent in the final" = 'petra mandula patricia wartusch' | wikisql |
CREATE TABLE table_79834 (
"Year" real,
"Stage" real,
"Category" text,
"Start" text,
"Finish" text,
"Leader at the summit" text
) | Give the Finish for years after 2007. | SELECT "Finish" FROM table_79834 WHERE "Year" > '2007' | wikisql |
CREATE TABLE table_57215 (
"Year" text,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
) | Who was the Semi-Finalist #2 in 2007? | SELECT "Semi-Finalist #2" FROM table_57215 WHERE "Year" = '2007' | wikisql |
CREATE TABLE table_38877 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
) | What's the sum of Code with a Population that's larger than 1,752, a Most Spoken Language of Xhosa, a Place of Bontrug, and an Area (KM 2) that's larger than 2.33? | SELECT COUNT("Code") FROM table_38877 WHERE "Population" > '1,752' AND "Most spoken language" = 'xhosa' AND "Place" = 'bontrug' AND "Area (km 2 )" > '2.33' | wikisql |
CREATE TABLE table_61812 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | What is the largest Against with an Opposing Teams of wales? | SELECT MAX("Against") FROM table_61812 WHERE "Opposing Teams" = 'wales' | wikisql |
CREATE TABLE table_203_794 (
id number,
"year" number,
"location" text,
"attendance" number,
"theme phrase" text,
"top messages" text,
"host" text,
"opening general session guest(s)" text,
"closing general session guest(s)" text,
"sunday night reception" text,
"wednesday nigh... | which location had the leargest attendeance ? | SELECT "location" FROM table_203_794 ORDER BY "attendance" DESC LIMIT 1 | squall |
CREATE TABLE table_name_92 (
lost VARCHAR,
club VARCHAR
) | What did the loss come from a Club of mumbles rfc? | SELECT lost FROM table_name_92 WHERE club = "mumbles rfc" | sql_create_context |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id... | Users with two Stack Overflow profiles, each tied to the same SE Account. https://meta.stackexchange.com/questions/310019/why-does-joe-friend-and-a-few-others-have-two-stack-overflow-accounts-each-ti | SELECT u.Id AS "user_link", u.AccountId, * FROM Users AS u INNER JOIN (SELECT AccountId FROM Users WHERE NOT AccountId IS NULL GROUP BY AccountId HAVING COUNT(*) > 1) AS da ON da.AccountId = u.AccountId ORDER BY u.AccountId | sede |
CREATE TABLE table_56370 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
) | waht is the last year with a mclaren mp4/10b chassis | SELECT MAX("Year") FROM table_56370 WHERE "Chassis" = 'mclaren mp4/10b' | wikisql |
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS... | Show the number of courses for each instructor in a stacked bar chart The x-axis is instructor's first name and group by course description, sort in descending by the EMP_FNAME please. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION, EMP_FNAME ORDER BY EMP_FNAME DESC | nvbench |
CREATE TABLE table_60895 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | What is the sum of Total, when Year(s) Won is '1966 , 1970 , 1978', and when To par is less than 4? | SELECT SUM("Total") FROM table_60895 WHERE "Year(s) won" = '1966 , 1970 , 1978' AND "To par" < '4' | wikisql |
CREATE TABLE table_42369 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | What is the name of the airport with an IATA of KUF? | SELECT "Airport" FROM table_42369 WHERE "IATA" = 'kuf' | wikisql |
CREATE TABLE table_name_16 (
laps INTEGER,
year INTEGER
) | What is the total number of Laps that's got a Year less than 1987? | SELECT SUM(laps) FROM table_name_16 WHERE year < 1987 | sql_create_context |
CREATE TABLE table_name_9 (
nation VARCHAR,
time__sec_ VARCHAR
) | Which nation had a time of 48.38? | SELECT nation FROM table_name_9 WHERE time__sec_ = 48.38 | sql_create_context |
CREATE TABLE table_test_28 (
"id" int,
"positive_shock_index" bool,
"anemia" bool,
"serum_potassium" float,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"malignant_hypertension" bool,
"severe_hypertension" bool,
"hemoglobin_a1c_hba1c" float,
"... | the presence of cardiogenic shock defined as sustained systolic blood pressure less than 90 mm hg, with no response to fluids or systolic blood pressure less than 100 mm hg with vasopressors ( in absence of bradycardia ) | SELECT * FROM table_test_28 WHERE cardiogenic_shock = 1 OR systolic_blood_pressure_sbp < 90 OR systolic_blood_pressure_sbp < 100 | criteria2sql |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_fl... | i'd like to see the flights from BALTIMORE to PHILADELPHIA | 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHIL... | atis |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | Ten users with most gold badges. | SELECT * FROM Posts WHERE PostTypeId = 2 LIMIT 10 | sede |
CREATE TABLE table_19744915_17 (
result VARCHAR,
couple VARCHAR
) | What was the total result for couple Ellery and Frankie? | SELECT COUNT(result) FROM table_19744915_17 WHERE couple = "Ellery and Frankie" | sql_create_context |
CREATE TABLE table_name_9 (
date VARCHAR,
catalog VARCHAR
) | What is the date on Catalog 540,934-2? | SELECT date FROM table_name_9 WHERE catalog = "540,934-2" | sql_create_context |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the average of employee_id bin hire_date by weekday in a bar chart, and order in desc by the mean employee id. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE table_name_4 (
location VARCHAR,
round VARCHAR,
time VARCHAR
) | I want the location for round of 3 and time of 4:40 | SELECT location FROM table_name_4 WHERE round = 3 AND time = "4:40" | sql_create_context |
CREATE TABLE table_41286 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | What is the Lead when the Second was marc kennedy, in the 2012 13 season? | SELECT "Lead" FROM table_41286 WHERE "Second" = 'marc kennedy' AND "Season" = '2012–13' | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | how many patients whose death status is 0 and drug name is venlafaxine xr? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.drug = "Venlafaxine XR" | mimicsql_data |
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,
... | 医院7488811的门诊就诊中有多少科室在零三年五月七日到零九年四月十二日的这几年开出高25张检验报告单 | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM txmzjzjlb JOIN jybgb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE txmzjzjlb.YLJGDM = '7488811' AND jybgb.BGRQ BETWEEN '2003-05-07' AND '2009-04-12' GROUP BY jybgb.KSBM HAVING COUNT(*) > 25 UNION SELECT jybgb.KSBM FROM ftxmzjzjlb ... | css |
CREATE TABLE qtb (
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... | 把医院医院4876950全部医疗就诊的记录里患者的平均岁数按科室名字和入院诊断编码的差异列出来 | SELECT qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_CD, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '4876950' GROUP BY qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_CD UNION SELECT gyb.MED_ORG_DEPT_NM, gyb.IN_DIAG_DIS_CD, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '4876950' GROUP BY gyb.MED_ORG_DEPT_NM, gyb.IN_... | css |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | 从2004年3月27到日2006年6月22日,患者柏德华一共买了多少次西药? | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '柏德华' AND t_kc22.STA_DATE BETWEEN '2004-03-27' AND '2006-06-22' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE financial_transactions (
transaction_id number,
previous_transaction_id number,
account_id number,
card_id number,
transaction_type text,
transaction_date time,
transaction_amount number,
transaction_comment text,
other_transaction_details text
)
CREATE TABLE customers ... | Return the full name and phone of the customer who has card number 4560596484842. | SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM customers_cards AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842" | spider |
CREATE TABLE table_203_420 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"home team" text
) | how many stadiums are located in belfast ? | SELECT COUNT("stadium") FROM table_203_420 WHERE "city" = 'belfast' | squall |
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... | A bar chart shows the distribution of Team_Name and Team_ID , order by the names in ascending please. | SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_Name | nvbench |
CREATE TABLE table_name_6 (
player VARCHAR,
pick VARCHAR,
college VARCHAR
) | Which player went to Wake Forest and was selected with a pick after 145? | SELECT player FROM table_name_6 WHERE pick > 145 AND college = "wake forest" | sql_create_context |
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
) | Find me top 5 most popular releases after 2000? | SELECT groupname FROM torrents WHERE groupyear > 2000 ORDER BY totalsnatched DESC LIMIT 5 | whatcdhiphop |
CREATE TABLE table_name_26 (
song_choice VARCHAR,
theme VARCHAR,
result VARCHAR
) | What was the song choice when the theme was free choice and Adeleye made it through to bootcamp? | SELECT song_choice FROM table_name_26 WHERE theme = "free choice" AND result = "through to bootcamp" | sql_create_context |
CREATE TABLE table_1709 (
"Episode #" real,
"US air date" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text
) | How many episodes were originally aired Saturday, May 30, 2009? | SELECT COUNT("Episode #") FROM table_1709 WHERE "US air date" = 'Saturday, May 30, 2009' | wikisql |
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 mzjzjlb.SG, mzjzjlb.TZ 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_info.KLX... | css |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE time_zone (
time_zone_cod... | what is the latest flight departing from BOSTON to SAN FRANCISCO | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FR... | atis |
CREATE TABLE txmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 患者43179204有哪些检验报告的结果指标全部正常?看看这些检验报告的单号 | SELECT jybgb.BGDH FROM hz_info JOIN txmzjzjlb JOIN jybgb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '43179204' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FRO... | css |
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,
... | 把针灸这个科室从零三年四月六日到零三年十二月二十一日因疾病E76.026需要住院治疗的平均费用给查看一下 | SELECT AVG(gwyjzb.MED_AMOUT) FROM gwyjzb WHERE gwyjzb.MED_ORG_DEPT_NM = '中医针灸科' AND gwyjzb.IN_HOSP_DATE BETWEEN '2003-04-06' AND '2003-12-21' AND gwyjzb.IN_DIAG_DIS_CD = 'E76.026' AND gwyjzb.CLINIC_TYPE = '住院' UNION SELECT AVG(fgwyjzb.MED_AMOUT) FROM fgwyjzb WHERE fgwyjzb.MED_ORG_DEPT_NM = '中医针灸科' AND fgwyjzb.IN_HOSP_D... | css |
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 mzjzjlb (
HXPLC number,
HZXM ... | 患者53311855自二零零四年八月二日开始,截止到二零一七年一月二十九日,由哪几位医务人员为其检测二氧化碳的,查查这些医务人员的工号及姓名 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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 ... | css |
CREATE TABLE table_name_93 (
life VARCHAR,
name VARCHAR
) | What is the lifespan of Stefanie Rabatsch? | SELECT life FROM table_name_93 WHERE name = "stefanie rabatsch" | sql_create_context |
CREATE TABLE table_4094 (
"Country" text,
"Area (km 2 )" real,
"Population(2012)" real,
"Density (/km 2 )" real,
"GDP (nominal), USD (2012)" text,
"GDP (nominal) per capita, USD (2012)" text,
"HDI (2012)" text,
"Capital" text
) | How many HDI (2012) does the area with nominal GDP and 14,246,000,000 USD (2012) have? | SELECT COUNT("HDI (2012)") FROM table_4094 WHERE "GDP (nominal), USD (2012)" = '14,246,000,000' | 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 diagnoses (
... | let me know the time of admission and discharge for patient with patient id 2560. | SELECT demographic.admittime, demographic.dischtime FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
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,
... | Collect the list of patients with a chart time of 2151-12-28 15:30:00 on lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2151-12-28 15:30:00" | mimicsql_data |
CREATE TABLE table_53245 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | Who is the rider who has a rank lower than 10, and a time of 1:26.31.20? | SELECT "Rider" FROM table_53245 WHERE "Rank" < '10' AND "Time" = '1:26.31.20' | wikisql |
CREATE TABLE ftxmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZD... | 在01-12-24到12-01-09期间内,把患者奚欣嘉所有检验结果指标记录中的检测方法给列出来 | SELECT jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.... | css |
CREATE TABLE table_name_72 (
grid VARCHAR,
points VARCHAR,
time_retired VARCHAR
) | Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs? | SELECT grid FROM table_name_72 WHERE points > 10 AND time_retired = "+13.7 secs" | sql_create_context |
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 lab (
subject_id text,
hadm_id text,
... | find the number of patients with diagnoses icd9 code e8786 who were hospitalized for more than 27 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "27" AND diagnoses.icd9_code = "E8786" | mimicsql_data |
CREATE TABLE table_69755 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | Who was the opponent with a result of l 14 6? | SELECT "Opponent" FROM table_69755 WHERE "Result" = 'l 14–6' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREAT... | calculate the number of medicines that were prescribed to patient 022-3289 last year. | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-3289')) AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME... | eicu |
CREATE TABLE table_14053 (
"Ship name" text,
"Year built" real,
"Last refurbished" real,
"Length" text,
"Crew" real,
"Guests" real,
"Staterooms" real,
"Comments" text
) | What is the number of staterooms when guests was larger than 210? | SELECT AVG("Staterooms") FROM table_14053 WHERE "Guests" > '210' | wikisql |
CREATE TABLE table_name_78 (
rank INTEGER,
name VARCHAR
) | What is Melaine Walker's Rank? | SELECT SUM(rank) FROM table_name_78 WHERE name = "melaine walker" | sql_create_context |
CREATE TABLE table_204_574 (
id number,
"year" number,
"title" text,
"peak chart positions\nswe" number,
"peak chart positions\nswi" number,
"peak chart positions\nuk" number,
"album" text
) | how many positions above did moltiva place in swe vs swi ? | SELECT ABS("peak chart positions\nswe" - "peak chart positions\nswi") FROM table_204_574 WHERE "title" = '"molitva"' | squall |
CREATE TABLE table_60437 (
"Symbol" text,
"Prefix" text,
"SI Meaning" text,
"Binary meaning" text,
"Size difference" text
) | What is the size difference for exa? | SELECT "Size difference" FROM table_60437 WHERE "Prefix" = 'exa' | 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 jybgb.KSBM, jybgb.KSMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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.JZ... | css |
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... | 在4535136医院的出院诊断的疾病名称中显示出的不同疾病的平均患者年龄为多少岁呢? | SELECT qtb.OUT_DIAG_DIS_NM, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '4535136' GROUP BY qtb.OUT_DIAG_DIS_NM UNION SELECT gyb.OUT_DIAG_DIS_NM, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '4535136' GROUP BY gyb.OUT_DIAG_DIS_NM UNION SELECT zyb.OUT_DIAG_DIS_NM, AVG(zyb.PERSON_AGE) FROM zyb WHERE... | css |
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREA... | Visualize a pie chart with what are the ids and details of events that have more than one participants? | SELECT T1.Event_Details, T1.Event_ID FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_Details | nvbench |
CREATE TABLE table_27988540_1 (
title VARCHAR,
no_in_series VARCHAR
) | What is the title of episode 155 in the series? | SELECT title FROM table_27988540_1 WHERE no_in_series = 155 | sql_create_context |
CREATE TABLE table_3133 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | What was the date for no. 7? | SELECT "Date" FROM table_3133 WHERE "No." = '7' | wikisql |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE... | Are there any upper elective courses offered for CS ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id | advising |
CREATE TABLE table_name_79 (
goals_for INTEGER,
played INTEGER
) | How many goals when more than 10 games played? | SELECT AVG(goals_for) FROM table_name_79 WHERE played > 10 | sql_create_context |
CREATE TABLE table_48992 (
"Track" real,
"Title" text,
"Songwriter(s)" text,
"Producer(s)" text,
"Length" text
) | Who produced track 7? | SELECT "Producer(s)" FROM table_48992 WHERE "Track" = '7' | wikisql |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
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 ... | 23816634375的就诊状态代码以及名称在门诊就诊里都是什么? | SELECT mzjzjlb.JZZTDM, mzjzjlb.JZZTMC FROM mzjzjlb WHERE mzjzjlb.JZLSH = '23816634375' | css |
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 demographic ... | what is average age of patients whose gender is f and days of hospital stay is 16? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.days_stay = "16" | mimicsql_data |
CREATE TABLE table_name_47 (
polish_cup INTEGER,
ekstraklasa VARCHAR,
position VARCHAR,
player VARCHAR
) | What is the lowest Polish Cup, when Position is 'Midfielder', when Player is 'Miroslav Radovi ', and when Ekstraklasa is less than 1? | SELECT MIN(polish_cup) FROM table_name_47 WHERE position = "midfielder" AND player = "miroslav radović" AND ekstraklasa < 1 | sql_create_context |
CREATE TABLE table_48130 (
"Country" text,
"UN budget" text,
"International Trade (Millions of USD) 2011" real,
"GDP (nominal) (Millions of USD) 2011" real,
"GDP (PPP) (Millions of USD) 2011" real,
"Population" real
) | What is International Trade (Millions of USD) 2011 when 2011 GDP is less than 471,890 and UN budget of 0.238% and GDP nominal less than 845,680? | SELECT SUM("International Trade (Millions of USD) 2011") FROM table_48130 WHERE "GDP (PPP) (Millions of USD) 2011" < '471,890' AND "UN budget" = '0.238%' AND "GDP (nominal) (Millions of USD) 2011" < '845,680' | wikisql |
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | How many students are affected by each allergy type? | SELECT T2.allergytype, COUNT(*) FROM has_allergy AS T1 JOIN allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype | spider |
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... | 查询13423195病患的检验报告单中结果指标均正常的检验报告单号,需要检验报告的单号 | 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_train_64 (
"id" int,
"hiv_infection" bool,
"receiving_parenteral_nutrition" bool,
"hypertriglyceridemia" bool,
"enteral_feeding" bool,
"body_mass_index_bmi" float,
"diarrhea" bool,
"NOUSE" float
) | presence of uncontrolled diarrhea | SELECT * FROM table_train_64 WHERE diarrhea = 1 | criteria2sql |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about manager_id over the job_id , sort Y from low to high order please. | SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | nvbench |
CREATE TABLE table_69774 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | What was the score of the game that had a record of 52 103? | SELECT "Score" FROM table_69774 WHERE "Record" = '52–103' | wikisql |
CREATE TABLE table_name_64 (
track INTEGER,
song_title VARCHAR
) | Which track has a title : Just a little bit | SELECT MIN(track) FROM table_name_64 WHERE song_title = "just a little bit" | sql_create_context |
CREATE TABLE table_name_51 (
decision VARCHAR,
home VARCHAR
) | Who was the Decision at Anaheim's home game? | SELECT decision FROM table_name_51 WHERE home = "anaheim" | sql_create_context |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
chartt... | have albuterol inhaler, calcium gluconate or lorazepam been ordered in 12/2105 for patient 23237? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23237) AND prescriptions.drug IN ('albuterol inhaler', 'calcium gluconate', 'lorazepam') AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-12' | mimic_iii |
CREATE TABLE table_29928 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What is the highest game number? | SELECT MAX("Game") FROM table_29928 | wikisql |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
... | Draw a bar chart of name versus meter_100, and sort by the total number in descending. | SELECT name, meter_100 FROM swimmer ORDER BY meter_100 DESC | nvbench |
CREATE TABLE table_204_430 (
id number,
"model" text,
"origin" text,
"type" text,
"version" text,
"in service" text,
"notes" text
) | how many models were made in the replublic of korea ? | SELECT COUNT("model") FROM table_204_430 WHERE "origin" = 'republic of korea' | squall |
CREATE TABLE table_76399 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | what is the highest events when the cuts made is less than 34, the top-25 is less than 5 and the top-10 is more than 1? | SELECT MAX("Events") FROM table_76399 WHERE "Cuts made" < '34' AND "Top-25" < '5' AND "Top-10" > '1' | wikisql |
CREATE TABLE table_204_809 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"national final" text,
"place" number,
"points" number
) | which country went first in this competition ? | SELECT "country" FROM table_204_809 WHERE "draw" = 1 | squall |
CREATE TABLE table_test_11 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"tachycardia" int,
"bradycardia" int,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"temperature" float,
"creatinine_clearance_cl" float,
"diastolic_blood_p... | serum creatinine > 140 umol / l | SELECT * FROM table_test_11 WHERE serum_creatinine > 140 | criteria2sql |
CREATE TABLE table_72206 (
"Acquisition" text,
"knowledge" text,
"penance" text,
"permanence of the body" text,
"constancy" text,
"purity" text
) | what's the constancy where permanence of the body is meditation | SELECT "constancy" FROM table_72206 WHERE "permanence of the body" = 'meditation' | wikisql |
CREATE TABLE table_51106 (
"Owner" text,
"Class" text,
"Number in class" real,
"Road numbers" text,
"Built" text
) | Who is the owner that built in 2009-2011? | SELECT "Owner" FROM table_51106 WHERE "Built" = '2009-2011' | wikisql |
CREATE TABLE table_20694 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | What is the maximum number of wins in the season with 22 starts? | SELECT MAX("Wins") FROM table_20694 WHERE "Starts" = '22' | wikisql |
CREATE TABLE table_63846 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | What is the Region of the Warner Music Canada Label release? | SELECT "Region" FROM table_63846 WHERE "Label" = 'warner music canada' | wikisql |
CREATE TABLE table_61226 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | Which Week has a Result of w 23 22? | SELECT "Week" FROM table_61226 WHERE "Result" = 'w 23–22' | wikisql |
CREATE TABLE table_name_81 (
position VARCHAR,
college_junior_club_team VARCHAR
) | Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)? | SELECT position FROM table_name_81 WHERE college_junior_club_team = "hull olympiques (qmjhl)" | sql_create_context |
CREATE TABLE table_name_73 (
first_team_goals VARCHAR,
player VARCHAR
) | How many first-team goals does the team have whose player is Samir Carruthers? | SELECT first_team_goals FROM table_name_73 WHERE player = "samir carruthers" | sql_create_context |
CREATE TABLE table_name_6 (
citation VARCHAR,
employed VARCHAR
) | What citation is shown for the employed years of 1970 1996? | SELECT citation FROM table_name_6 WHERE employed = "1970–1996" | sql_create_context |
CREATE TABLE table_36347 (
"Throne Name" text,
"Title" text,
"Born-Died" text,
"Entered office" text,
"Left office" text,
"Family Relations" text
) | What are the family relations of the king with the throne name 303? | SELECT "Family Relations" FROM table_36347 WHERE "Throne Name" = '303' | wikisql |
CREATE TABLE table_name_69 (
location_attendance VARCHAR,
date VARCHAR
) | Where was the game, and how many attended the game on january 2? | SELECT location_attendance FROM table_name_69 WHERE date = "january 2" | sql_create_context |
CREATE TABLE table_train_213 (
"id" int,
"serum_potassium" float,
"laboratory_abnormality" bool,
"hemoglobin_a1c_hba1c" float,
"positive_hiv" bool,
"serum_calcium" float,
"estimated_glomerular_filtration_rate_egfr" int,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
) | body mass index ( bmi ) less than 95 % and more than 10 % | SELECT * FROM table_train_213 WHERE body_mass_index_bmi <= 95 AND body_mass_index_bmi >= 10 | criteria2sql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the founder , and group by attribute founder, and rank by the bar in asc please. | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder | nvbench |
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,
... | how many patients whose religion is greek orthodox and year of birth is less than 2085? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "GREEK ORTHODOX" AND demographic.dob_year < "2085" | mimicsql_data |
CREATE TABLE table_name_17 (
pct VARCHAR,
lost VARCHAR,
seasons VARCHAR
) | How many percentages have 20 losses and more than 1 season? | SELECT COUNT(pct) FROM table_name_17 WHERE lost = 20 AND seasons > 1 | sql_create_context |
CREATE TABLE table_27521 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
) | What is the November 3 result when the June 10-11 is 147? | SELECT "November 3" FROM table_27521 WHERE "June 10-11" = '147' | wikisql |
CREATE TABLE table_57686 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | How big was the crowd at the game the away team geelong played at? | SELECT SUM("Crowd") FROM table_57686 WHERE "Away team" = 'geelong' | wikisql |
CREATE TABLE table_52163 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in Final" text,
"Score in Final" text
) | Who were the opponents in the final on 9 January 1994? | SELECT "Opponents in Final" FROM table_52163 WHERE "Date" = '9 january 1994' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... | when was the first time of admission to the hospital that patient 017-16041 was accepted through the floor during this year? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '017-16041' AND patient.hospitaladmitsource = 'floor' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1 | eicu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.