context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_20684390_1 (
obama_percentage VARCHAR,
county VARCHAR
) | For Gem County, what was the Obama vote percentage? | SELECT obama_percentage FROM table_20684390_1 WHERE county = "Gem" | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | 把2005年6月12日到2021年6月4日期间患者章安澜总共花了多少医保个人账户金额查看一下 | SELECT SUM(t_kc24.PER_ACC_PAY) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.PERSON_NM = '章安澜' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2005-06-12' AND '2021-06-04' | css |
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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | how many patients have been prescribed the drug with code pred1? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "PRED1" | mimicsql_data |
CREATE TABLE table_name_71 (
time VARCHAR,
round VARCHAR,
opponent VARCHAR
) | What was the time for the bout against Amanda Lavoy, which went under 3 rounds? | SELECT time FROM table_name_71 WHERE round < 3 AND opponent = "amanda lavoy" | sql_create_context |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | Bin the hire date into Month interval, and then calculate the total salary of employees in each month for a bar chart, note that just select those employees without the letter M in their first name, and could you show by the Y-axis in descending please? | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY SUM(SALARY) DESC | nvbench |
CREATE TABLE table_12588029_3 (
release_date VARCHAR,
year VARCHAR
) | What are the release dates for songs in 2003? | SELECT release_date FROM table_12588029_3 WHERE year = 2003 | sql_create_context |
CREATE TABLE table_train_66 (
"id" int,
"pregnancy_or_lactation" bool,
"white_blood_cell_count_wbc" int,
"acute_pyelonephritis" bool,
"intrabdominal_infection" bool,
"body_weight" float,
"oxygen_therapy_by_face_mask" bool,
"temperature" float,
"heart_rate" int,
"paco2" float,
... | the presence of at least 2 of the following criteria of sepsis according to accp / sccm ( 8 ) a ) body temperature > 38 degreesc or < 36 degreesc; b ) pulse rate > 90 / min; c ) breath rate > 20 / min or paco2 < 32 mmhg; and / or d ) leukocytosis ( white blood cell count > 12000 / ul ) or leukopenia ( white blood cell ... | SELECT * FROM table_train_66 WHERE (CASE WHEN temperature > 38 OR temperature < 36 THEN 1 ELSE 0 END + CASE WHEN heart_rate > 90 THEN 1 ELSE 0 END + CASE WHEN respiratory_rate > 20 OR paco2 < 32 THEN 1 ELSE 0 END + CASE WHEN white_blood_cell_count_wbc > 12000 OR white_blood_cell_count_wbc < 4000 OR band_form > 10 THEN ... | criteria2sql |
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... | find the discharge location and procedure icd9 code of subject id 65759. | SELECT demographic.discharge_location, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "65759" | mimicsql_data |
CREATE TABLE table_23594 (
"Season" text,
"Bayernliga" text,
"Landesliga S\u00fcd" text,
"Landesliga Mitte" text,
"Landesliga Nord" text
) | Name the landesliga nord for asv neumarkt | SELECT "Landesliga Nord" FROM table_23594 WHERE "Landesliga Mitte" = 'ASV Neumarkt' | wikisql |
CREATE TABLE table_name_29 (
tv_time VARCHAR,
week VARCHAR
) | What is the time in week 3? | SELECT tv_time FROM table_name_29 WHERE week = 3 | 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 home discharged patients had operations on chordae tendineae? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.short_title = "Chordae tendineae ops" | mimicsql_data |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | provide the number of patients whose insurance is medicare and diagnoses long title is unspecified peritonitis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Unspecified peritonitis" | mimicsql_data |
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,
... | 沈志诚作为检测人在2001年7月4日到2009年2月9日期间为病患袁晶辉检验的结果指标记录的检验指标流水号都是多少? | SELECT jyjgzbb.JYZBLSH 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 = jy... | css |
CREATE TABLE table_name_75 (
qual VARCHAR,
finish VARCHAR
) | Which qual also has a finish total of 9? | SELECT qual FROM table_name_75 WHERE finish = "9" | sql_create_context |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | find the birthdate and diagnosis of jerry deberry. | SELECT demographic.dob, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Jerry Deberry" | mimicsql_data |
CREATE TABLE table_49381 (
"Result" text,
"Race" text,
"Distance" text,
"Weight" real,
"Winner or 2nd" text,
"Pos'n" text
) | What is the sum of the weight of the race with a 1st pos'n and a 8f distance? | SELECT SUM("Weight") FROM table_49381 WHERE "Pos'n" = '1st' AND "Distance" = '8f' | wikisql |
CREATE TABLE table_75497 (
"Administrative Panel" real,
"Agricultural Panel" real,
"Cultural and Educational Panel" real,
"Industrial and Commercial Panel" real,
"Labour Panel" real,
"National University of Ireland" real,
"Nominated by the Taoiseach" real,
"Total" real
) | What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29? | SELECT AVG("Nominated by the Taoiseach") FROM table_75497 WHERE "Industrial and Commercial Panel" < '9' AND "Administrative Panel" > '0' AND "Cultural and Educational Panel" > '2' AND "Total" < '29' | wikisql |
CREATE TABLE table_69388 (
"Year" text,
"Champion" text,
"Runner-Up" text,
"3rd Place" text,
"Location" text
) | Name the champion for christopher miles runner-up | SELECT "Champion" FROM table_69388 WHERE "Runner-Up" = 'christopher miles' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | specify the icd9 code of patient dona cole together with diagnosis long title | SELECT diagnoses.icd9_code, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Dona Cole" | mimicsql_data |
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
) | What are the investors that have invested in at least two entrepreneurs? | SELECT investor FROM entrepreneur GROUP BY investor HAVING COUNT(*) >= 2 | spider |
CREATE TABLE table_41040 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | Who is the player from Arizona state with a round less than 7? | SELECT "Player" FROM table_41040 WHERE "Round" < '7' AND "College" = 'arizona state' | wikisql |
CREATE TABLE table_name_62 (
home_team VARCHAR,
away_team VARCHAR
) | When the Away team of essendon was playing, what was the Home team's score? | SELECT home_team AS score FROM table_name_62 WHERE away_team = "essendon" | sql_create_context |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name tex... | Count users who are Active and have reputation.. | SELECT CASE WHEN (LastAccessDate > DATEADD(yy, -1, GETDATE())) THEN 'Yes' ELSE 'No' END AS ActiveThisYear, CASE WHEN (Reputation > 200) THEN 'Yes' ELSE 'No' END AS ReputationOver200, COUNT(*) AS Count FROM Users GROUP BY CASE WHEN (LastAccessDate > DATEADD(yy, -1, GETDATE())) THEN 'Yes' ELSE 'No' END, CASE WHEN (Reputa... | sede |
CREATE TABLE table_60319 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What was Australia's to par when the place was t9? | SELECT "To par" FROM table_60319 WHERE "Place" = 't9' AND "Country" = 'australia' | wikisql |
CREATE TABLE table_44546 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
) | What is 1994, when 1996 is 'Grand Slams'? | SELECT "1994" FROM table_44546 WHERE "1996" = 'grand slams' | wikisql |
CREATE TABLE table_28498999_3 (
after VARCHAR,
player VARCHAR
) | What is the after for the player kevin streelman? | SELECT after FROM table_28498999_3 WHERE player = "Kevin Streelman" | sql_create_context |
CREATE TABLE table_10015132_7 (
school_club_team VARCHAR,
player VARCHAR
) | what school is rudy gay from | SELECT school_club_team FROM table_10015132_7 WHERE player = "Rudy Gay" | sql_create_context |
CREATE TABLE table_name_12 (
team VARCHAR,
rank VARCHAR,
points VARCHAR
) | What is Team, when Rank is greater than 2, and when Points are greater than 259? | SELECT team FROM table_name_12 WHERE rank > 2 AND points > 259 | sql_create_context |
CREATE TABLE table_68917 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" text,
"Issue price" real,
"Special notes" text
) | When was a mintage of 1264 with more than 24.95 issued? | SELECT MAX("Year") FROM table_68917 WHERE "Mintage" = '1264' AND "Issue price" > '24.95' | wikisql |
CREATE TABLE table_25378 (
"No." real,
"Player" text,
"Hometown" text,
"Class" text,
"Position" text,
"Height" text,
"Weight" real
) | Who are all players from hometown of Carbondale, Illinois? | SELECT "Player" FROM table_25378 WHERE "Hometown" = 'Carbondale, Illinois' | wikisql |
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... | Selects all posts where the number of upvotes is greater than the number of downvotes, but where the number of downvotes is at least half the number of upvotes. The result is ordered by the number of upvotes (the highest on top).. Selects all posts where the number of upvotes is greater than the number of downvotes, bu... | SELECT CONCAT('https://stackoverflow.com/a/', PostId), Upvotes, Downvotes FROM (SELECT PostId, Upvotes, Downvotes, 2 * Downvotes / NULLIF(Upvotes, 0) AS Ratio FROM (SELECT PostId, Upvotes = SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END), Downvotes = SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) FROM Votes WHERE Vote... | sede |
CREATE TABLE table_55695 (
"D 41" text,
"D 42" text,
"D 43" text,
"D 44" text,
"D 45" text,
"D 46" text,
"D 47" text,
"R 53" text,
"R 52" text,
"R 51" text
) | Tell me the D 41 and R 51 of r 11 | SELECT "D 41" FROM table_55695 WHERE "R 51" = 'r 11' | wikisql |
CREATE TABLE table_14752049_1 (
rank INTEGER,
country VARCHAR
) | What rank is associated with Germany? | SELECT MAX(rank) FROM table_14752049_1 WHERE country = "Germany" | sql_create_context |
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 ... | 孙文敏病患从07年9月1日到2018年9月21日之间所有检测结果指标记录的检测员为编码02458651的检验指标流水号是多少? | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb 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 = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE person_i... | css |
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments ... | Tell me who taught ANTHRBIO 369 in the past ? | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN semester... | advising |
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... | 列出对于窦秀隽病患就医记录中医疗费总额不少于5504.26元的入院诊断疾病名称和编号都分别是啥? | SELECT gwyjzb.IN_DIAG_DIS_CD, gwyjzb.IN_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_NM = '窦秀隽' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 5504.26) UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '窦秀隽' AND fgwyjzb.MED_... | css |
CREATE TABLE table_204_951 (
id number,
"candidate" text,
"votes" number,
"percentage" text,
"counties" number,
"delegates" number
) | how many candidates received at least 100,000 votes ? | SELECT COUNT("candidate") FROM table_204_951 WHERE "votes" >= 100000 | squall |
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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | how many patients with sepsis diagnosis had csf lab test? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Sepsis" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | mimicsql_data |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the amount of name , and group by attribute name. | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | nvbench |
CREATE TABLE table_name_36 (
player VARCHAR,
to_par VARCHAR
) | What player has +21 as the to par? | SELECT player FROM table_name_36 WHERE to_par = "+21" | sql_create_context |
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule... | For each film, show the price and group them by cinema name in a stacked bar chart. | SELECT Name, Price FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Title, Name | nvbench |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
val... | when was first intake time of patient 1819 since 270 days ago? | 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 = 1819)) AND DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-270 day') ORDER ... | mimic_iii |
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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | give me the number of patients whose admission location is phys referral/normal deli and primary disease is copd exacerbation? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.diagnosis = "COPD EXACERBATION" | mimicsql_data |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
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,
... | 团伙成员沈敏博最常去的医院排序是什么次序 | SELECT t_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_NM = '沈敏博' GROUP BY t_kc21.MED_SER_ORG_NO ORDER BY COUNT(*) DESC | css |
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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid nu... | what is the name of the medication that was prescribed to patient 25814 in the same hospital encounter after receiving a entral infus nutrit sub procedure since 08/2105? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 25814 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_proce... | mimic_iii |
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,
... | Calculate the minimum age of patients who have posterior communicating aneurysm/sda and were discharged home. | SELECT MIN(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" | mimicsql_data |
CREATE TABLE table_11677100_3 (
player VARCHAR,
school VARCHAR
) | What player goes to Torrey Pines High School? | SELECT player FROM table_11677100_3 WHERE school = "Torrey Pines High school" | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... | what is the three most common lab testing done this year? | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 3 | eicu |
CREATE TABLE WINE (
Name VARCHAR,
Price INTEGER,
YEAR VARCHAR
) | What are the names of wines that are more expensive then all wines made in the year 2006? | SELECT Name FROM WINE WHERE Price > (SELECT MAX(Price) FROM WINE WHERE YEAR = 2006) | sql_create_context |
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... | give me the number of patients on allopurinol prescription who were admitted in hospital before 2174. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2174" AND prescriptions.drug = "Allopurinol" | mimicsql_data |
CREATE TABLE table_name_74 (
club VARCHAR,
scorer VARCHAR,
league_cup_goals VARCHAR,
league_goals VARCHAR
) | Which Club has a League Cup goals of 0, and a League goals of 11, and a Scorer of joe laidlaw? | SELECT club FROM table_name_74 WHERE league_cup_goals = 0 AND league_goals = "11" AND scorer = "joe laidlaw" | sql_create_context |
CREATE TABLE table_11425 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Where does Geelong play their home game? | SELECT "Venue" FROM table_11425 WHERE "Home team" = 'geelong' | wikisql |
CREATE TABLE table_67727 (
"Peak" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Isolation (km)" real,
"Municipality" text,
"County" text
) | What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind? | SELECT "County" FROM table_67727 WHERE "Elevation (m)" < '1833' AND "Isolation (km)" > '18' AND "Peak" = 'store lenangstind' | wikisql |
CREATE TABLE table_name_26 (
country VARCHAR,
career VARCHAR
) | What Country has a Career of 1989 2004? | SELECT country FROM table_name_26 WHERE career = "1989–2004" | sql_create_context |
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... | tell me the last procedure patient 029-30149 had in 2105? | 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 = '029-30149')) AND STRFTIME('%y', treatment.treatmenttime) = '2105'... | eicu |
CREATE TABLE table_65178 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
) | Which Episodes have a TV Station of tbs, and a Japanese Title of ? | SELECT MAX("Episodes") FROM table_65178 WHERE "TV Station" = 'tbs' AND "Japanese Title" = '今夜ひとりのベッドで' | wikisql |
CREATE TABLE table_1850282_7 (
bocas_is VARCHAR,
species VARCHAR
) | Name the bocas for chironius multiventris septentrionalis | SELECT bocas_is FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis" | sql_create_context |
CREATE TABLE table_24469 (
"Team" text,
"Sport" text,
"League" text,
"Established" real,
"Began in St. Louis" real,
"Venue" text,
"Championships in St. Louis" text,
"Left St. Louis" real
) | What year did the team who played at the Scottrade Center leave the city? | SELECT MIN("Left St. Louis") FROM table_24469 WHERE "Venue" = 'Scottrade Center' | wikisql |
CREATE TABLE behavior_incident (
incident_id number,
incident_type_code text,
student_id number,
date_incident_start time,
date_incident_end time,
incident_summary text,
recommendations text,
other_details text
)
CREATE TABLE addresses (
address_id number,
line_1 text,
line_... | What is the email of the student with first name 'Emma' and last name 'Rohan'? | SELECT email_address FROM students WHERE first_name = "Emma" AND last_name = "Rohan" | spider |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | provide the number of patients whose diagnoses icd9 code is 7454 and lab test category is chemistry? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "7454" AND lab."CATEGORY" = "Chemistry" | mimicsql_data |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange ... | Posts containing BIG-O Notation requiring MathJax Formatting. | SELECT p.Title, 'https://codereview.stackexchange.com/questions/' + CAST(p.Id AS TEXT) AS URL, p.CreationDate FROM Posts AS p WHERE 1 = 1 AND NOT p.Title IS NULL AND p.ClosedDate IS NULL AND p.DeletionDate IS NULL AND LOWER(p.Body) LIKE '%o(n%' AND NOT LOWER(p.Body) LIKE '%\$o(n%' ORDER BY p.CreationDate DESC LIMIT 3 | sede |
CREATE TABLE table_name_46 (
rank VARCHAR,
name VARCHAR
) | What did Ku Hyo-Jin rank? | SELECT COUNT(rank) FROM table_name_46 WHERE name = "ku hyo-jin" | sql_create_context |
CREATE TABLE table_9713 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | What is the Winner of the Event in Punta del Este? | SELECT "Winner" FROM table_9713 WHERE "City" = 'punta del este' | 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... | provide the number of patients whose religion is jewish and diagnoses short title is dmii wo cmp nt st uncntr? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.religion = "JEWISH" AND diagnoses.short_title = "DMII wo cmp nt st uncntr" | mimicsql_data |
CREATE TABLE table_42435 (
"Pos." real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Goals" text,
"Diff." text,
"Points" text
) | What are the average wins that have great britain as the team? | SELECT AVG("Wins") FROM table_42435 WHERE "Team" = 'great britain' | wikisql |
CREATE TABLE table_10761 (
"Pos." real,
"Player" text,
"Goals Scored" text,
"Games Played" text,
"Years Active" text
) | How many goals were scored with a pos larger than 4 and active in 2001-? | SELECT "Goals Scored" FROM table_10761 WHERE "Pos." > '4' AND "Years Active" = '2001-' | wikisql |
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time... | Show the party and the number of drivers in each party. Visualize by pie chart. | SELECT Party, COUNT(*) FROM driver GROUP BY Party | nvbench |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | what is the number of patients whose procedure icd9 code is 9465 and drug route is sl? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "9465" AND prescriptions.route = "SL" | mimicsql_data |
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,... | Bar graph to show the average of amount payment from different payment method code, could you list the average of amount payment from high to low order? | SELECT Payment_Method_Code, AVG(Amount_Payment) FROM Payments GROUP BY Payment_Method_Code ORDER BY AVG(Amount_Payment) DESC | nvbench |
CREATE TABLE table_49886 (
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | Who's the Winning driver with a Pole position of bryan herta? | SELECT "Winning driver" FROM table_49886 WHERE "Pole position" = 'bryan herta' | wikisql |
CREATE TABLE Residents_Services (
resident_id INTEGER,
service_id INTEGER,
date_moved_in DATETIME,
property_id INTEGER,
date_requested DATETIME,
date_provided DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Timed_Locations_of_Things (
thing_id INTEGER,
Date_and_Time DATETIME,
... | Give me a bar chart that the X-axis is the date_moved_in and the Y-axis is Count them, please bin X-axis into Year interval, rank by the y axis from high to low please. | SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events ORDER BY COUNT(date_moved_in) DESC | nvbench |
CREATE TABLE table_name_39 (
game INTEGER,
team VARCHAR
) | What is the total for New York's game? | SELECT SUM(game) FROM table_name_39 WHERE team = "new york" | sql_create_context |
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 medication (
medi... | in this year had patient 030-10559 been prescribed potassium chloride 20 meq tr tab, d50 or dexamethasone? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-10559')) AND medication.drugname IN ('potassium chloride 20 meq tr tab... | eicu |
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 was the four most frequent laboratory test ordered during this year? | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | eicu |
CREATE TABLE table_name_68 (
home_team VARCHAR,
score VARCHAR,
away_team VARCHAR
) | Which Home team has a Score of 1 1, and an Away team of tottenham hotspur? | SELECT home_team FROM table_name_68 WHERE score = "1–1" AND away_team = "tottenham hotspur" | sql_create_context |
CREATE TABLE table_1283 (
"Year / Theme" text,
"Award name" text,
"Team name" text,
"Team number" real,
"City, State/Country" text
) | How many teams are in Bridgewater, NJ, USA? | SELECT COUNT("Team name") FROM table_1283 WHERE "City, State/Country" = 'Bridgewater, NJ, USA' | wikisql |
CREATE TABLE table_name_77 (
Id VARCHAR
) | WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A? | SELECT 2009 FROM table_name_77 WHERE 2012 = "2r" AND 2011 = "1r" AND 2007 = "a" AND 2008 = "a" | sql_create_context |
CREATE TABLE table_name_59 (
lost VARCHAR,
points_against VARCHAR
) | What was lost against 383 points? | SELECT lost FROM table_name_59 WHERE points_against = "383" | sql_create_context |
CREATE TABLE table_50098 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | What is the nationality of Duke? | SELECT "Nationality" FROM table_50098 WHERE "School/Club Team" = 'duke' | wikisql |
CREATE TABLE table_name_20 (
share_of_votes VARCHAR,
election VARCHAR
) | What is the share of votes in the 2000 (2nd) election? | SELECT share_of_votes FROM table_name_20 WHERE election = "2000 (2nd)" | sql_create_context |
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
... | Find dept_name and the amount of dept_name , and group by attribute dept_name, and visualize them by a bar chart. | SELECT dept_name, COUNT(dept_name) FROM instructor GROUP BY dept_name ORDER BY salary | nvbench |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... | New Android Testing by Year. | SELECT COUNT(P.Title), YEAR(P.CreationDate) FROM Posts AS P WHERE (P.Tags LIKE '%android-testing%') OR (P.Tags LIKE '%robotium%') OR (P.Tags LIKE '%androidviewclient%') OR (P.Tags LIKE '%monkeyrunner%') OR (P.Tags LIKE '%robolectric%') OR (P.Tags LIKE '%android-espresso%') OR (P.Tags LIKE '%android%' AND P.Tags LIKE '%... | sede |
CREATE TABLE table_201_21 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
) | which film came out in 2002 and also had the role of vindici ? | SELECT "title" FROM table_201_21 WHERE "year" = 2002 AND "role" = 'vindici' | squall |
CREATE TABLE table_204_954 (
id number,
"no." number,
"country" text,
"2009 winter\nuniversiade" number,
"2007 wjcc" number,
"2007 wwcc" number,
"2008 wjcc" number,
"2008 wwcc" number,
"points" number
) | how many points did germany have ? | SELECT "points" FROM table_204_954 WHERE "country" = 'germany' | squall |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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,
... | 在医疗就诊04488736077中所以人员姓名、性别、年龄以及公民身份号码分别是多少? | SELECT t_kc21.PERSON_NM, t_kc21.PERSON_SEX, t_kc21.PERSON_AGE, t_kc21.IDENTITY_CARD FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '04488736077' | css |
CREATE TABLE table_45100 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | What is Date, when Tournament, is Greenbrier Classic? | SELECT "Date" FROM table_45100 WHERE "Tournament" = 'greenbrier classic' | wikisql |
CREATE TABLE table_14181 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
) | What is the enrollment at Lanesville? | SELECT AVG("Enrollment") FROM table_14181 WHERE "School" = 'lanesville' | 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_DIRE_CD text,
MED_DIRE_NM text,... | 在10年11月11日到13年1月13日期间,参保人任博涛购买单一药品的最大购买次数有几次 | 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 '2010-11-11' AND '2013-01-13' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT ... | css |
CREATE TABLE table_name_60 (
date VARCHAR,
location VARCHAR
) | What is the date of the match in Vilnius, Lithuania? | SELECT date FROM table_name_60 WHERE location = "vilnius, lithuania" | sql_create_context |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
tr... | what 's the next smallest plane after a TURBOPROP | SELECT DISTINCT aircraft_code FROM aircraft WHERE capacity = (SELECT MIN(AIRCRAFTalias1.capacity) FROM aircraft AS AIRCRAFTalias1 WHERE AIRCRAFTalias1.capacity > ALL (SELECT DISTINCT AIRCRAFTalias2.capacity FROM aircraft AS AIRCRAFTalias2 WHERE AIRCRAFTalias1.propulsion = 'TURBOPROP')) AND capacity > ALL (SELECT DISTIN... | atis |
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... | 花费的医疗费总额不少于1973.76元的次数在患者72169223的医疗记录有多少,其有什么编号的病是入院诊断出来的,叫啥名? | SELECT t_kc21.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '72169223' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 1973.76) | css |
CREATE TABLE table_name_94 (
week INTEGER,
record VARCHAR
) | What week that shows a game record of 0 1? | SELECT AVG(week) FROM table_name_94 WHERE record = "0–1" | sql_create_context |
CREATE TABLE table_76481 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
) | Who were the semifinalists in the Rome tournament? | SELECT "Semifinalists" FROM table_76481 WHERE "Tournament" = 'rome' | wikisql |
CREATE TABLE table_12333 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | What is Tie No, when Score is 'Marlow United won 4 2 on penalties'? | SELECT "Tie no" FROM table_12333 WHERE "Score" = 'marlow united won 4–2 on penalties' | wikisql |
CREATE TABLE table_name_95 (
attendance INTEGER,
opponents VARCHAR
) | How many people attended the match when Manchester United played against the Hearts? | SELECT SUM(attendance) FROM table_name_95 WHERE opponents = "hearts" | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | find the number of patients who prefer haitian language. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "HAIT" | mimicsql_data |
CREATE TABLE table_name_16 (
year VARCHAR,
engine VARCHAR,
pts VARCHAR
) | What year had a Ford engine and 13 points? | SELECT year FROM table_name_16 WHERE engine = "ford" AND pts = 13 | 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... | 在09-09-25到20-10-29内,患者蒋艳卉开出的药品自付比例低于0.68的数量有多少 | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '蒋艳卉' AND t_kc22.STA_DATE BETWEEN '2009-09-25' AND '2020-10-29' AND t_kc22.SELF_PAY_PRO < 0.68 UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb.PERS... | css |
CREATE TABLE table_name_49 (
year INTEGER,
entrant VARCHAR,
points VARCHAR
) | Name the sum of year for connaught engineering and points less than 0 | SELECT SUM(year) FROM table_name_49 WHERE entrant = "connaught engineering" AND points < 0 | sql_create_context |
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Guests (
gue... | Bar chart x axis booking end date y axis the number of booking end date | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.