context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_1644876_2 (
shot__percentage VARCHAR,
locale VARCHAR,
Switzerland VARCHAR
) | What are the shot percentages for teams that played in switzerland? | SELECT shot__percentage FROM table_1644876_2 WHERE locale = Switzerland | sql_create_context |
CREATE TABLE table_18198579_2 (
no INTEGER,
tournament VARCHAR
) | List the total numbers of Evian Masters tournaments. | SELECT MAX(no) FROM table_18198579_2 WHERE tournament = "Evian Masters" | sql_create_context |
CREATE TABLE table_57270 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What is the home team of lake oval's score? | SELECT "Home team score" FROM table_57270 WHERE "Venue" = 'lake oval' | wikisql |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTy... | Find my answers on closed questions. | SELECT Id AS "post_link", ClosedDate FROM Posts JOIN (SELECT Id AS xxx, ParentId FROM Posts WHERE OwnerUserId = 3923281) AS myPosts ON Posts.Id = myPosts.ParentId WHERE NOT ClosedDate IS NULL | sede |
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | Show the number of fate from each fate, sort x-axis in ascending order please. | SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY Fate | nvbench |
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)... | Show names for all employees with salary more than the average. | SELECT name FROM employee WHERE salary > (SELECT AVG(salary) FROM employee) | spider |
CREATE TABLE table_14941 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | What is the lowest decile that Ohau School has? | SELECT MIN("Decile") FROM table_14941 WHERE "Name" = 'ohau school' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
h... | tell me the procedure that patient 027-95744 first had? | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-95744')) ORDER BY treatment.treatmenttime LIMIT 1 | eicu |
CREATE TABLE table_49523 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | What is the Date of the game with a Record of 2-3? | SELECT "Date" FROM table_49523 WHERE "Record" = '2-3' | 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... | give me short title of diagnoses for diagnoses icd9 code 45981. | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "45981" | mimicsql_data |
CREATE TABLE table_20867 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | What school did the player who was with the grizzles in 2011 attend? | SELECT "School/Club Team" FROM table_20867 WHERE "Years for Grizzlies" = '2011' | wikisql |
CREATE TABLE table_33033 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | When were both the crowd larger than 15,000 and the Away team score of 9.11 (65)? | SELECT "Date" FROM table_33033 WHERE "Crowd" > '15,000' AND "Away team score" = '9.11 (65)' | wikisql |
CREATE TABLE table_name_25 (
position VARCHAR,
crewe_alexandra_career VARCHAR,
goals VARCHAR
) | What is the position when the Crewe Alexandra career is 1988 1990, with 31 goals? | SELECT position FROM table_name_25 WHERE crewe_alexandra_career = "1988–1990" AND goals = 31 | sql_create_context |
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... | 对于医疗费总额高于4274.44元的医疗记录属于患者86201848的,列出出院诊断编码是什么?名称是什么? | SELECT t_kc21.OUT_DIAG_DIS_CD, t_kc21.OUT_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '86201848' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 4274.44) | css |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
... | when did patient 8116 get intakes for the first time today? | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116)) AND DATETIME(inputevents_cv.charttime, 'start of day') = DATETIME(CURRENT_TIME(), 'st... | mimic_iii |
CREATE TABLE hz_info (
KH text,
KLX number,
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,
JSBBSJ time,
... | 患者袁嘉丽的哪些门诊就诊记录对应的检验报告单的报告日期是在2016年7月27日之前的?列出它们的流水号 | SELECT mzjzjlb.JZLSH 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 AND pers... | css |
CREATE TABLE table_50267 (
"Match" real,
"Date" text,
"Round" text,
"Home/Away" text,
"Opponent team" text,
"Score" text
) | What was the game score on april 2, 2008? | SELECT "Score" FROM table_50267 WHERE "Date" = 'april 2, 2008' | wikisql |
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... | 能告诉我病人金秀筠所有医疗记录中医疗费总额不低于8263.6元的入院诊断疾病编码和名称吗 | SELECT IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '金秀筠' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT >= 8263.6) | css |
CREATE TABLE table_name_21 (
district VARCHAR,
first_elected INTEGER
) | Which District has a First elected larger than 1858? | SELECT district FROM table_name_21 WHERE first_elected > 1858 | sql_create_context |
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,
... | how many patients having phys referral/normal deli as the admission location have undergone enteral infusion of concentrated nutritional substances? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND procedures.long_title = "Enteral infusion of concentrated nutritional substances" | mimicsql_data |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | Sandboxed posts that have a score < -1 and no activity for a month. | SELECT Id AS "post_link" FROM Posts WHERE ParentId = 2140 AND Score < -5 ORDER BY Score DESC | sede |
CREATE TABLE table_name_41 (
genre VARCHAR,
year_recorded VARCHAR
) | What's the genre of the song recorded in 1929? | SELECT genre FROM table_name_41 WHERE year_recorded = "1929" | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number... | did patient 007-2065 undergo a laboratory test until 2 years ago? | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-2065')) AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-2 year') | eicu |
CREATE TABLE table_50322 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What game took place on April 28? | SELECT "Game" FROM table_50322 WHERE "Date" = 'april 28' | wikisql |
CREATE TABLE table_35974 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | Record of 16 29 is how many attendance? | SELECT "Attendance" FROM table_35974 WHERE "Record" = '16–29' | wikisql |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text... | Meta Stack Overflow [featured] history. latest first | SELECT Posts.Score, Posts.Id AS "post_link", Posts.CreationDate, Posts.LastEditDate, PostHistory.CreationDate FROM PostHistory JOIN Posts ON PostHistory.PostId = Posts.Id WHERE PostHistory.PostHistoryTypeId = 6 AND PostHistory.Text LIKE '%<featured>%' GROUP BY Posts.Score, Posts.Id, Posts.CreationDate, Posts.LastEditDa... | sede |
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 ... | 二零零二年三月二十五号之后患者18605753的住院就诊记录对应的检验报告单都有哪些都是什么住院就诊流水号? | 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 = '18605753' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2020-03-25') | css |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepi... | what is the last time that patient 002-23819 received a prescription for lidocaine 1% pf in 04/2102? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-23819')) AND medication.drugname = 'lidocaine 1% pf' AND S... | eicu |
CREATE TABLE authors (
authid VARCHAR,
lname VARCHAR
)
CREATE TABLE papers (
title VARCHAR,
paperid VARCHAR
)
CREATE TABLE authorship (
authid VARCHAR,
paperid VARCHAR,
instid VARCHAR,
authorder VARCHAR
)
CREATE TABLE inst (
instid VARCHAR,
country VARCHAR
) | Which paper is published in an institution in 'USA' and have 'Turon' as its second author? | SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "USA" AND t2.authorder = 2 AND t1.lname = "Turon" | sql_create_context |
CREATE TABLE table_18321 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? | SELECT "District" FROM table_18321 WHERE "Candidates" = 'Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 在03年8月11日到14年7月7日内59190525患者在医疗机构2322054开了多少西药? | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_ID = '59190525' AND t_kc22.STA_DATE BETWEEN '2003-08-11' AND '2014-07-07' AND t_kc21.MED_SER_ORG_NO = '2322054' AND t_kc22.MED_INV... | css |
CREATE TABLE table_25444 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in final" text,
"Score in final" text
) | How many championships have there been with Steffi Graf? | SELECT "Championship" FROM table_25444 WHERE "Opponent in final" = 'Steffi Graf' | 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... | 在哪几次医疗记录中病患许飞烟被开出的药物全部都比1281.74元大?当时就诊的编玛是多少号? | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '许飞烟' AND NOT gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 1281.74) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '许飞烟' AND NOT fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FR... | css |
CREATE TABLE table_29778616_1 (
intro_date VARCHAR,
throughput VARCHAR
) | What is the intro date for the throughput of 16 mbit/s? | SELECT intro_date FROM table_29778616_1 WHERE throughput = "16 Mbit/s" | sql_create_context |
CREATE TABLE table_name_41 (
opponent VARCHAR,
week VARCHAR,
date VARCHAR
) | Which Opponent that has a Week smaller than 7 on september 12, 1988? | SELECT opponent FROM table_name_41 WHERE week < 7 AND date = "september 12, 1988" | sql_create_context |
CREATE TABLE table_10479 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) | What is the score of the game with 4 goals? | SELECT "Score" FROM table_10479 WHERE "Goal" = '4' | wikisql |
CREATE TABLE table_name_81 (
website VARCHAR,
webcast VARCHAR,
frequency VARCHAR
) | What's the website for the Listen Live webcast on the 99.3 frequency? | SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3 | 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,
... | give me the number of patients whose admission location is transfer from hosp/extram and primary disease is gangrene? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.diagnosis = "GANGRENE" | mimicsql_data |
CREATE TABLE table_203_323 (
id number,
"city" text,
"country" text,
"airport" text,
"begin" number,
"end" number
) | total destinations that been ended as of 2009 | SELECT COUNT("city") FROM table_203_323 WHERE "end" <= 2009 | squall |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | give the diagnoses long title and procedure long title of subject id 32418. | SELECT diagnoses.long_title, procedures.long_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "32418" | mimicsql_data |
CREATE TABLE table_204_394 (
id number,
"year" number,
"album" text,
"label" text,
"peak chart\npositions\nus" number,
"peak chart\npositions\nus r&b" number
) | which album ranked higher in the us , merry clayton or keep your eye on the sparrow ? | SELECT "album" FROM table_204_394 WHERE "album" IN ('merry clayton', 'keep your eye on the sparrow') ORDER BY "peak chart\npositions\nus" LIMIT 1 | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
... | 参与门诊就诊82258211835的首诊医生以及其他所有接诊医生有哪些?把他们的工号列出来 | SELECT wdmzjzjlb.ZZYSGH, wdmzjzjlb.QTJZYSGH FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '82258211835' UNION SELECT bdmzjzjlb.ZZYSGH, bdmzjzjlb.QTJZYSGH FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '82258211835' | css |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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 te... | 患者00569182肘部的各项指标检验结果的数据怎么样? | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON 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 = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.... | css |
CREATE TABLE table_2501754_4 (
episode__number INTEGER
) | What is the lowest episode number? | SELECT MIN(episode__number) FROM table_2501754_4 | sql_create_context |
CREATE TABLE bdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | 从06年7月29日至14年1月26日之间患者陈怡宁所有检验结果指标记录中的仪器名称都叫什么?编号都是什么? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC 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 jybg... | css |
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 diagnosed with pure glyceridemia and suggested for replace drug route? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Pure hyperglyceridemia" AND prescriptions.route = "REPLACE" | mimicsql_data |
CREATE TABLE table_51126 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | Which Lost has a Position of 4, and a Drawn smaller than 3? | SELECT AVG("Lost") FROM table_51126 WHERE "Position" = '4' AND "Drawn" < '3' | 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 demographic (
subject_id text,
hadm_id t... | get the number of patients diagnosed with contact dermatitis and other eczema, unspecified cause who were hospitalized for more than 30 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "30" AND diagnoses.long_title = "Contact dermatitis and other eczema, unspecified cause" | mimicsql_data |
CREATE TABLE table_27683516_3 (
outgoing_manager VARCHAR,
date_of_vacancy VARCHAR
) | What is the outgoing manager when the date of vacancy is 10 october 2010? | SELECT outgoing_manager FROM table_27683516_3 WHERE date_of_vacancy = "10 October 2010" | sql_create_context |
CREATE TABLE table_train_245 (
"id" int,
"renal_disease" bool,
"diabetic" string,
"creatinine_clearance_cl" float,
"smoking" bool,
"kidney_disease" bool,
"body_mass_index_bmi" float,
"fasting_glucose" int,
"NOUSE" float
) | non _ smoker ( for 1 year prior to entry ) | SELECT * FROM table_train_245 WHERE smoking = 0 | criteria2sql |
CREATE TABLE table_name_35 (
round INTEGER,
player VARCHAR,
position VARCHAR,
nationality VARCHAR
) | What is the highest round of Ian Cole, who played position d from the United States? | SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole" | sql_create_context |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | Linkyness Leaderboard (including external links). | SELECT RANK() OVER (ORDER BY AVG(CAST((LENGTH(A.Body) - LENGTH(REPLACE(A.Body, @LinkPattern, ''))) AS FLOAT) / CAST(LENGTH(@LinkPattern) AS FLOAT)) DESC) AS Ranking, AVG(CAST((LENGTH(A.Body) - LENGTH(REPLACE(A.Body, @LinkPattern, ''))) AS FLOAT) / CAST(LENGTH(@LinkPattern) AS FLOAT)) AS "link_average", U.Id AS "user_li... | sede |
CREATE TABLE table_name_24 (
method VARCHAR,
event VARCHAR
) | Which is the method under the event Jungle Fight 2? | SELECT method FROM table_name_24 WHERE event = "jungle fight 2" | sql_create_context |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId numbe... | Top Reputation by Country and tag - nataliago. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE LOWER(Location) LIKE LOWER('%##countryname##%') AND t.TagNa... | sede |
CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Procedures (
Code INTEGER,
Name VARCHAR(30),
Cost REAL
)
CREATE TABLE Department (
DepartmentID INTEGER,
Name VARCHAR(30),
Head INTEGER
)
CREATE TABLE Stay (
StayID ... | List the names of patients who have made appointments, and count them by a bar chart | SELECT Name, COUNT(Name) FROM Appointment AS T1 JOIN Patient AS T2 ON T1.Patient = T2.SSN GROUP BY Name | nvbench |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
... | Positive / 0 / Negative Scored Questions By Tag. Displays a count of positive, 0, and negatively scored questions by tag. Includes closed questions. | SELECT SUM(CASE WHEN p.Score > 0 THEN 1 ELSE 0 END) AS Positive, SUM(CASE WHEN p.Score = 0 THEN 1 ELSE 0 END) AS Neutral, SUM(CASE WHEN p.Score < 0 THEN 1 ELSE 0 END) AS Negative, t.TagName FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON pt.TagId = t.Id WHERE p.PostTypeId = 1 GROUP... | sede |
CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
CREATE TABLE game (
... | Give me line charts of worldwide gross the number of season over year season by major genres Away_team, show in ascending by the Season. | SELECT Season, COUNT(Season) FROM game GROUP BY Away_team, Season ORDER BY Season | nvbench |
CREATE TABLE table_66219 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | Which school has enrollment of 887? | SELECT "School" FROM table_66219 WHERE "Enrollment" = '887' | wikisql |
CREATE TABLE table_name_51 (
decile VARCHAR,
gender VARCHAR
) | How many Deciles are coed? | SELECT COUNT(decile) FROM table_name_51 WHERE gender = "coed" | sql_create_context |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskStates (
Id number,
... | Users eligible to vote in election. | SELECT COUNT(Id) FROM Users WHERE Reputation >= '##min?150##' | sede |
CREATE TABLE table_name_95 (
byes INTEGER,
against VARCHAR,
wins VARCHAR
) | What is the most byes with 11 wins and fewer than 1867 againsts? | SELECT MAX(byes) FROM table_name_95 WHERE against < 1867 AND wins = 11 | sql_create_context |
CREATE TABLE table_21578303_2 (
time VARCHAR,
time__eet_ VARCHAR
) | What is the time when time is 10:46? | SELECT time FROM table_21578303_2 WHERE time__eet_ = "10:46" | sql_create_context |
CREATE TABLE table_204_635 (
id number,
"round" number,
"selection" number,
"player" text,
"position" text,
"college" text
) | who was the top draft pick ? | SELECT "player" FROM table_204_635 WHERE id = 1 | squall |
CREATE TABLE table_name_38 (
Id VARCHAR
) | What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3? | SELECT MAX(2002) FROM table_name_38 WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.3 | sql_create_context |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departur... | and a flight from ST. LOUIS to BURBANK that leaves tuesday afternoon | SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 22 AND DATE_DAYalias0.month_number = 3 AND DATE_DAYalias0.year = 1991)) AND to... | atis |
CREATE TABLE table_name_49 (
author VARCHAR,
title VARCHAR
) | Who is the author of Bludgeoning Angel Dokuro-Chan? | SELECT author FROM table_name_49 WHERE title = "bludgeoning angel dokuro-chan" | sql_create_context |
CREATE TABLE table_name_86 (
place VARCHAR,
score VARCHAR
) | What is the Place of the Player with a Score of 68-73-76=217? | SELECT place FROM table_name_86 WHERE score = 68 - 73 - 76 = 217 | sql_create_context |
CREATE TABLE table_name_90 (
_number___county VARCHAR,
year_joined VARCHAR,
location VARCHAR
) | which # / county is correct for year less than 1981 and chalmers as location? | SELECT _number___county FROM table_name_90 WHERE year_joined < 1981 AND location = "chalmers" | sql_create_context |
CREATE TABLE table_name_3 (
bronze INTEGER,
rank VARCHAR,
silver VARCHAR
) | what is the least bronze when the rank is 3 and silver is less than 2? | SELECT MIN(bronze) FROM table_name_3 WHERE rank = "3" AND silver < 2 | sql_create_context |
CREATE TABLE table_20806 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | Who wrote the episode with the production code of 942A? | SELECT "Written by" FROM table_20806 WHERE "Production code" = '942A' | wikisql |
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
compatible_since_year int
)
CREATE TABLE browser (
id int,
name text,
market_share real
)
CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connectio... | Display a bar chart for what are the ids and names of the web accelerators that are compatible with two or more browsers?, I want to list total number in desc order. | SELECT name, id FROM Web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id ORDER BY id DESC | nvbench |
CREATE TABLE table_name_80 (
bronze VARCHAR,
rank VARCHAR
) | How many bronze medals does the nation ranked number 1 have? | SELECT bronze FROM table_name_80 WHERE rank = "1" | 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... | 患者的检测指标602455在门诊诊断为疾病G21.554的参考值范围下限和上限分别是? | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE zzmzjzjlb.JZZDBM = 'G21.554' AND jyjgzbb.JCZBDM = '602455' UNION SELECT jyjgzbb.CKZFWX... | css |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE transfers (
row_id number,... | since 10/24/2101, had the arterial bp [systolic] of patient 14987 been normal? | SELECT COUNT(*) > 0 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 = 14987)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [syst... | mimic_iii |
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,
... | 患者22512141在14年10月25日至17年7月8日的补体C4指标记录 | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN 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 = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_info.RYBH = '... | 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... | 哪几家医院售卖过药品697815093给病号89574743? | SELECT MED_SER_ORG_NO FROM t_kc21 WHERE PERSON_ID = '89574743' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE SOC_SRT_DIRE_CD = '697815093') | css |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
C... | 通常患有疾病Y45.853的病人会被开出的哪些药品医治,这些药品的编号和名称查看一下 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.IN_DIAG_DIS_CD = 'Y45.853' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | what is the days of hospital stay and death status of subject id 23733? | SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "23733" | mimicsql_data |
CREATE TABLE table_36054 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
) | What score has a game less than 4, and april 19 as the date? | SELECT "Score" FROM table_36054 WHERE "Game" < '4' AND "Date" = 'april 19' | wikisql |
CREATE TABLE table_17968274_2 (
team VARCHAR
) | How many games were played by the V lez S rsfield team from 1989-90? | SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield" | sql_create_context |
CREATE TABLE table_77482 (
"Actor in London, 2002" text,
"Actor in New York, 2006" text,
"Actor in Moscow, 2007" text,
"Voyage" text,
"Shipwreck" text
) | Who was the actor in Moscow who did the part done by John Carlisle in London in 2002? | SELECT "Actor in Moscow, 2007" FROM table_77482 WHERE "Actor in London, 2002" = 'john carlisle' | wikisql |
CREATE TABLE table_14322 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | Which is the opponent when the record was 43-56? | SELECT "Opponent" FROM table_14322 WHERE "Record" = '43-56' | wikisql |
CREATE TABLE table_name_62 (
lost INTEGER,
team VARCHAR,
drawn VARCHAR,
goals_against VARCHAR,
position VARCHAR
) | What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against? | SELECT AVG(lost) FROM table_name_62 WHERE goals_against > 57 AND position < 17 AND drawn = 8 AND team = "hyde united" | sql_create_context |
CREATE TABLE table_name_51 (
heat INTEGER,
nationality VARCHAR,
rank VARCHAR
) | What is the earliest heat with a finisher from the Czech Republic and a rank over 41? | SELECT MIN(heat) FROM table_name_51 WHERE nationality = "czech republic" AND rank > 41 | sql_create_context |
CREATE TABLE physician (
name VARCHAR,
employeeid VARCHAR
)
CREATE TABLE patient (
PCP VARCHAR
) | How many patients do each physician take care of? List their names and number of patients they take care of. | SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREA... | when had patient 027-156601 last had the maximum heartrate until 07/22/2104? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-156601')) AND NOT vitalperiodic.heartrate IS NU... | eicu |
CREATE TABLE table_25860 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Name the total number of high points for pepsi center 19,756 | SELECT COUNT("High points") FROM table_25860 WHERE "Location Attendance" = 'Pepsi Center 19,756' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... | have there been any organism found during the last blood, venipuncture microbiology test of patient 031-3355 on the current hospital visit? | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microlab.culturesite... | eicu |
CREATE TABLE table_1569516_1 (
frequency__per_hour_ VARCHAR,
destination VARCHAR
) | When London Bridge is the destination, what is the frequency? | SELECT frequency__per_hour_ FROM table_1569516_1 WHERE destination = "London Bridge" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
a... | what were the five most frequently ordered microbiology tests for patients who had previously received cardiology consultation within the same month until 2104? | 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 = 'cardiology consultation' AND STRFTIME('%y', ... | eicu |
CREATE TABLE table_67047 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Commissioned" text
) | What launch has a Ship of fearless? | SELECT "Launched" FROM table_67047 WHERE "Ship" = 'fearless' | wikisql |
CREATE TABLE table_name_50 (
record VARCHAR,
opponent VARCHAR,
date VARCHAR
) | What was the home team's record when they played the Devil Rays on September 6? | SELECT record FROM table_name_50 WHERE opponent = "devil rays" AND date = "september 6" | sql_create_context |
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance... | Find the correlation between average age and experience working length of journalists working on different role type with a scatter plot. | SELECT AVG(t1.Age), AVG(Years_working) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type | nvbench |
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_DIRE_CD text,
MED_DIRE_NM text,... | 看看硝苯地平控释片在0四年九月二十七日到一七年八月十二日,被患者何晓兰总共开出过多少次 | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '何晓兰' AND t_kc22.STA_DATE BETWEEN '2004-09-27' AND '2017-08-12' AND t_kc22.SOC_SRT_DIRE_NM = '硝苯地平控释片' | css |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_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 nu... | 为病号严采绿在06年5月20日到19年3月1日这段时间里,检测罗马指数(绝经前)的医务人员工号是什么?姓名是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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.J... | css |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fare (
fare... | list all DAILY flights between BOSTON and OAKLAND as well as BOSTON and OAKLAND using AA | 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 ((((flight.airline_code = 'AA') OR NOT (flight.airline_code = 'AA')) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flig... | atis |
CREATE TABLE table_12807 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is T7 Place Player Justin Leonard's Score? | SELECT "Score" FROM table_12807 WHERE "Place" = 't7' AND "Player" = 'justin leonard' | wikisql |
CREATE TABLE table_47967 (
"Date" text,
"Opponent" text,
"Home / Away" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | What was the score for Groves High School when the high assist was Giovanni Riley (9)? | SELECT "Score" FROM table_47967 WHERE "Location/Attendance" = 'groves high school' AND "High assists" = 'giovanni riley (9)' | wikisql |
CREATE TABLE table_59360 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text,
"Attendance" real
) | What is the average Attendance, when Venue is 'Candlestick Park', and when Date is 'December 27'? | SELECT AVG("Attendance") FROM table_59360 WHERE "Venue" = 'candlestick park' AND "Date" = 'december 27' | wikisql |
CREATE TABLE table_name_12 (
displacement__cc_ INTEGER,
model VARCHAR
) | What is the highest displacement value for the R Fwd Auto Phase1? | SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.