context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE intakeoutput ( intakeoutpu...
count the number of patients who since 4 years ago have been prescribed simvastatin 40 mg po tabs.
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'simvastatin 40 mg po tabs' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year'))
eicu
CREATE TABLE table_12414 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text )
What 7:00 has movies as the 9:00?
SELECT "7:00" FROM table_12414 WHERE "9:00" = 'movies'
wikisql
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 diagnoses ( ...
how many patients whose admission year is less than 2145 and diagnoses icd9 code is 58089?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2145" AND diagnoses.icd9_code = "58089"
mimicsql_data
CREATE TABLE ALBUM ( Title VARCHAR, AlbumId VARCHAR ) CREATE TABLE TRACK ( AlbumID VARCHAR, AlbumId VARCHAR )
Show the album names, ids and the number of tracks for each album.
SELECT T1.Title, T2.AlbumID, COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumID = T2.AlbumID GROUP BY T2.AlbumID
sql_create_context
CREATE TABLE mzb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
想知道有哪些医院给患者李红豆开了奥氮平片这个药
SELECT qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_NM = '李红豆' AND qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_NM = '奥氮平片') UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_NM = '李红豆' AND gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_...
css
CREATE TABLE table_19161605_2 ( title VARCHAR, _number VARCHAR )
What is the title of episode number 14?
SELECT title FROM table_19161605_2 WHERE _number = 14
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...
患者苗芳蔼在医院序号3888607出院时的就诊记录中诊断的疾病名称没有药字的编号是啥?
SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '苗芳蔼' AND qtb.MED_SER_ORG_NO = '3888607' AND NOT qtb.OUT_DIAG_DIS_NM LIKE '%药%' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '苗芳蔼' AND gyb.MED_SER_ORG_NO = '3888607' AND NOT gyb.OUT_DIAG_DIS_NM LIKE '%药%' UNION SELECT zyb.MED_CLINIC_ID FROM zyb WH...
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
Among the patients who had a closed endoscopic biopsy of bronchus, how many of them stayed at the hospital for more than 1 day?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "1" AND procedures.long_title = "Closed [endoscopic] biopsy of bronchus"
mimicsql_data
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 were patient 029-22492's allergies until 03/2103?
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-22492')) AND STRFTIME('%y-%m', allergy.allergytime) <= '2103-03'
eicu
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description...
Questions where OP answered their question in the comments.
SELECT p.Id, p.Score, p.OwnerUserId FROM Posts AS p INNER JOIN Comments AS c ON p.Id = c.PostId WHERE c.UserId = p.OwnerUserId AND p.PostTypeId = 1 AND (c.Text LIKE '%fixed%')
sede
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday va...
List 400 / 500 -level courses in ENS that are the easiest .
SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN program_course WHERE ((course.number < 400 + 100 AND course.number >= 400) OR (course.number < 500 + 100 AND course.number >= 500)) AND course.department = 'ENS' AND program_course.workload = (SELECT MIN(PROGRA...
advising
CREATE TABLE table_23286223_8 ( high_assists VARCHAR, date VARCHAR )
How many different players did the most high assists on the March 4 game?
SELECT COUNT(high_assists) FROM table_23286223_8 WHERE date = "March 4"
sql_create_context
CREATE TABLE table_name_44 ( numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR )
Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640
SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640
sql_create_context
CREATE TABLE table_26250199_1 ( episode VARCHAR, order__number VARCHAR )
In which episode is the order number 10?
SELECT episode FROM table_26250199_1 WHERE order__number = "10"
sql_create_context
CREATE TABLE table_64639 ( "Name" text, "LWAT" real, "100+" real, "140+" real, "180s" real )
What's the 100+ when the 140+ is less than 128 and the LWAT of 29?
SELECT SUM("100+") FROM table_64639 WHERE "LWAT" = '29' AND "140+" < '128'
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...
calculate the average age of emergency hospital admission patients who died before 2148.
SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year < "2148.0"
mimicsql_data
CREATE TABLE table_74326 ( "Player" text, "Matches" real, "Innings" real, "Runs" real, "Average" text, "Strike rate" text, "Highest Score" text, "50s" real )
How many innings for the player with an average of 22.61?
SELECT "Innings" FROM table_74326 WHERE "Average" = '22.61'
wikisql
CREATE TABLE table_47805 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
WHAT IS THE AVERAGE PICK FOR PURDUE, WITH A ROUND SMALLER THAN 5?
SELECT AVG("Pick") FROM table_47805 WHERE "College" = 'purdue' AND "Round" < '5'
wikisql
CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_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, H...
在02年9月13日到16年10月12日期间,患者97726285看得最多的病有那些?
SELECT t_kc21.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '97726285' AND t_kc21.IN_HOSP_DATE BETWEEN '2002-09-13' AND '2016-10-12' GROUP BY t_kc21.IN_DIAG_DIS_CD ORDER BY COUNT(*) DESC LIMIT 1
css
CREATE TABLE table_25941 ( "SF Round" real, "Country" text, "Location" text, "Date" text, "Driver" text, "Race 1(pts)" real, "Race 2(pts)" real, "Race Total(pts)" real )
What is the lowest number of total race points for the country of Belgium?
SELECT MIN("Race Total(pts)") FROM table_25941 WHERE "Country" = 'Belgium'
wikisql
CREATE TABLE table_79272 ( "Lane" real, "Athlete" text, "Nationality" text, "Time" text, "React" real )
what is the lowest lane when react is more than 0.164 and the nationality is guinea?
SELECT MIN("Lane") FROM table_79272 WHERE "React" > '0.164' AND "Nationality" = 'guinea'
wikisql
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 founder and the average of price , and group by attribute founder, list in ascending by the total number.
SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY AVG(Price)
nvbench
CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( tran...
Bin all date of transactions into the YEAR interval, and give the average of the share count for each bin What is the trend?, display by the x-axis in asc please.
SELECT date_of_transaction, AVG(share_count) FROM Transactions ORDER BY date_of_transaction
nvbench
CREATE TABLE table_name_40 ( notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR )
What are the notes for the Mandarin Chinese program on CTV earlier than 2013?
SELECT notes FROM table_name_40 WHERE year < 2013 AND language = "mandarin chinese" AND network = "ctv"
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...
Among patients treated with main drug, how many of them had a lab test for ld body fluid?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "MAIN" AND lab.label = "LD, Body Fluid"
mimicsql_data
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,...
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of last_name and commission_pct , and show from high to low by the Y.
SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC
nvbench
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
For all employees who have the letters D or S in their first name, give me the comparison about the amount of job_id over the job_id , and group by attribute job_id, and show from high to low by the y axis please.
SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC
nvbench
CREATE TABLE table_60091 ( "Country" text, "Region" text, "FHFreepressreport" text, "RWB Pressfreedomindex" text, "Internetlists" text, "ONIpoliticalfiltering" text, "ONIsocialfiltering" text, "ONIsecurityfiltering" text, "ONItoolsfiltering" text )
What is the name of the country that has internetlists of , and ONIsecurityfiltering of ?
SELECT "Country" FROM table_60091 WHERE "Internetlists" = '—' AND "ONIsecurityfiltering" = '—'
wikisql
CREATE TABLE table_name_74 ( mascot VARCHAR, previous_conference VARCHAR, location VARCHAR )
What's the mascot in Anderson for the Independent previous conference?
SELECT mascot FROM table_name_74 WHERE previous_conference = "independent" AND location = "anderson"
sql_create_context
CREATE TABLE table_54392 ( "Entrant" text, "Constructor" text, "Chassis" text, "Engine" text, "Tyres" text, "Driver" text, "Rounds" text )
Tell me the chassis for team tissot ensign and driver of brett lunger
SELECT "Chassis" FROM table_54392 WHERE "Entrant" = 'team tissot ensign' AND "Driver" = 'brett lunger'
wikisql
CREATE TABLE checkin ( cid int, business_id varchar, count int, day varchar ) CREATE TABLE user ( uid int, user_id varchar, name varchar ) CREATE TABLE review ( rid int, business_id varchar, user_id varchar, rating float, text longtext, year int, month varchar )...
Find all businesses in Texas with a rating below 2
SELECT name FROM business WHERE rating < 2 AND state = 'Texas'
yelp
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...
患有疾病V27.340的人在被门诊确诊时其检测指标043045的参考值范围下限和上限都是多些?
SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM ...
css
CREATE TABLE table_name_76 ( label VARCHAR, format VARCHAR, catalog VARCHAR )
What was the label's format LP and catalog of CH-9192?
SELECT label FROM table_name_76 WHERE format = "lp" AND catalog = "ch-9192"
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, ...
what is the age and days of hospital stay of subject id 2560?
SELECT demographic.age, demographic.days_stay FROM demographic WHERE demographic.subject_id = "2560"
mimicsql_data
CREATE TABLE table_21665 ( "Week" real, "Date" text, "Opponent" text, "Stadium" text, "Result" text, "Record" text, "Streak" text, "Attendance" real )
Who is the opposing team when the game was played on the Shea Stadium?
SELECT "Opponent" FROM table_21665 WHERE "Stadium" = 'Shea Stadium'
wikisql
CREATE TABLE table_70617 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
What was the record for July 26?
SELECT "Record" FROM table_70617 WHERE "Date" = 'july 26'
wikisql
CREATE TABLE table_name_82 ( borough VARCHAR, type VARCHAR, name VARCHAR )
In what Borough is the History Type Fairbanks Community Museum?
SELECT borough FROM table_name_82 WHERE type = "history" AND name = "fairbanks community museum"
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, ...
How many of the patients with aortic valve insuffiency/aortic valve replacement /sda as their primary disease were born before the year 2071?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" AND demographic.dob_year < "2071"
mimicsql_data
CREATE TABLE table_name_65 ( female VARCHAR, total_population INTEGER )
What is the total number of females where the total population is less than 2,195?
SELECT COUNT(female) FROM table_name_65 WHERE total_population < 2 OFFSET 195
sql_create_context
CREATE TABLE table_name_62 ( career_win_loss VARCHAR, career_sr VARCHAR )
What is the result in 1985 when the career win-loss is n/a, and 0 / 23 as the career SR?
SELECT 1985 FROM table_name_62 WHERE career_win_loss = "n/a" AND career_sr = "0 / 23"
sql_create_context
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, ...
what was the name of the procedure that was given two times to patient 013-27480 in the first hospital visit?
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, COUNT(treatment.treatmenttime) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid ...
eicu
CREATE TABLE table_name_10 ( away_team VARCHAR, home_team VARCHAR )
What was the score of the Away team that played against the Home team of Fitzroy?
SELECT away_team AS score FROM table_name_10 WHERE home_team = "fitzroy"
sql_create_context
CREATE TABLE table_43183 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
What is the total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?
SELECT SUM("Lost") FROM table_43183 WHERE "Points" > '8' AND "Difference" = '- 8' AND "Position" > '5'
wikisql
CREATE TABLE table_1760 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real )
Where was the December 12, 1965 game?
SELECT "Game site" FROM table_1760 WHERE "Date" = 'December 12, 1965'
wikisql
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...
what is the number of patients whose admission type is emergency and item id is 50801?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.itemid = "50801"
mimicsql_data
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE Users ( Id number, Reputation number,...
The questions with the most answers.
SELECT Id AS "post_link", * FROM Posts AS p ORDER BY AnswerCount DESC LIMIT 50
sede
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
看看在医疗机构7566807的记录里,这位21438648的患者在11年11月13日到12年6月11日期间,治疗过程中给开出的西药总共有多少
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 = '21438648' AND t_kc22.STA_DATE BETWEEN '2011-11-13' AND '2012-06-11' AND t_kc21.MED_SER_ORG_NO = '7566807' AND t_kc22.MED_INV...
css
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
在哪几次医疗记录中给病人59512324售卖的药品均价超过9835.59元?医疗就诊编号都是多少?
SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '59512324' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT < 9835.59)
css
CREATE TABLE table_25646820_2 ( points VARCHAR, player VARCHAR )
Name the points for donald boor
SELECT points FROM table_25646820_2 WHERE player = "Donald Boor"
sql_create_context
CREATE TABLE gwyjzb ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
二零零二年五月二十日到二零一四年二月二十六日,编号为7012895的这个医疗机构的患者对医疗项目自付比例的平均数值是多少
SELECT AVG(t_kc22.SELF_PAY_PRO) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '7012895' AND t_kc22.STA_DATE BETWEEN '2002-05-20' AND '2014-02-26' UNION SELECT AVG(t_kc22.SELF_PAY_PRO) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fg...
css
CREATE TABLE table_10880 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text )
Which Opponent has a Round larger than 4 and the Event, Draka V?
SELECT "Opponent" FROM table_10880 WHERE "Round" > '4' AND "Event" = 'draka v'
wikisql
CREATE TABLE table_69726 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
Name the score when the record was 18-25
SELECT "Score" FROM table_69726 WHERE "Record" = '18-25'
wikisql
CREATE TABLE table_1619 ( "Official Name" text, "Status" text, "Area km 2" text, "Population" real, "Census Ranking" text )
What is the Area KM 2 of Rothesay?
SELECT COUNT("Area km 2") FROM table_1619 WHERE "Official Name" = 'Rothesay'
wikisql
CREATE TABLE table_1342013_31 ( district VARCHAR, incumbent VARCHAR )
What district did incumbent Ralph A. Gamble represent?
SELECT district FROM table_1342013_31 WHERE incumbent = "Ralph A. Gamble"
sql_create_context
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, d...
count the number of patients who had a int inser lead atri-vent procedure in the same hospital encounter after being given a coronar arteriogr-2 cath procedure since 2103.
SELECT COUNT(DISTINCT t1.subject_id) 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 procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_...
mimic_iii
CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varcha...
what flights are there on sunday from SEATTLE to MINNEAPOLIS
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MINNEAPOLIS' AND date_day.day_number = 27 AND date_day.month_number = 8 A...
atis
CREATE TABLE table_53057 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
What is the name of the away team that played Melbourne?
SELECT "Away team" FROM table_53057 WHERE "Home team" = 'melbourne'
wikisql
CREATE TABLE table_70110 ( "City" text, "January (Avg. High \u00b0F)" text, "January (Avg. Low \u00b0F)" text, "July (Avg. High \u00b0F)" real, "July (Avg. Low \u00b0F)" real )
What is the july average low associated with a january average high of 30.4?
SELECT COUNT("July (Avg. Low \u00b0F)") FROM table_70110 WHERE "January (Avg. High \u00b0F)" = '30.4'
wikisql
CREATE TABLE table_name_67 ( lane INTEGER, react VARCHAR )
What is the lowest lane with a 0.216 react?
SELECT MIN(lane) FROM table_name_67 WHERE react = 0.216
sql_create_context
CREATE TABLE table_1410384_1 ( character_name VARCHAR, voice_actor__english_1998___pioneer_ VARCHAR )
what's the character name with voice actor (englbeingh 1998 / pioneer) being paul dobson
SELECT character_name FROM table_1410384_1 WHERE voice_actor__english_1998___pioneer_ = "Paul Dobson"
sql_create_context
CREATE TABLE table_1230 ( "Station" text, "Year opened" text, "Metropolitan borough [c ]" text, "Zone" real, "Servedby Route maps:- [ dead link ] [ dead link ]" text, "Station users 2006\u201307" real, "Station users 2007\u201308" real )
Name all the stations in 2006-2007 who had 109200 users.
SELECT "Station" FROM table_1230 WHERE "Station users 2006\u201307" = '109200'
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...
Tags with Worst Acceptance Rates. All tags sorted to show those the lowest % of accepted answers. Only considers open questions. Includes extra info for proportion of questions that are answered and average number of answers.
SELECT T.TagName, COUNT(P.Id) AS Posts, COUNT(P.AcceptedAnswerId) AS WITHAccepted, ROUND(CAST(COUNT(P.AcceptedAnswerId) AS FLOAT) / COUNT(P.Id), 3) AS AcceptanceRate, COUNT(P.AnswerCount) AS WITHAnswers, ROUND(AVG(CAST(P.AnswerCount AS FLOAT)), 3) AS AveNumOfAnswers, ROUND(CAST(COUNT(P.AnswerCount) AS FLOAT) / COUNT(P....
sede
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 zyjzjlb ( CYBQDM text, CYBQMC...
住院诊断中开支的编号为20186568174检测报告单对应的患者名号叫什么?
SELECT person_info.XM FROM person_info JOIN hz_info JOIN zyjzjlb JOIN jybgb JOIN zyjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND zyjzjlb.YLJGDM = zyjzjlb_jybgb.YLJGDM_ZYJZJLB AND zyjzjlb.JZLSH = jybgb.JZLSH_ZYJZJLB AND zy...
css
CREATE TABLE table_33953 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
Who is from the College of Cincinnati?
SELECT "Name" FROM table_33953 WHERE "College" = 'cincinnati'
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
what is maximum age of patients whose admission type is elective and insurance is medicaid?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.insurance = "Medicaid"
mimicsql_data
CREATE TABLE table_name_99 ( tourism_receipts__2011___us INTEGER, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR )
What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts?
SELECT MAX(tourism_receipts__2011___us) AS $_per_capita_ FROM table_name_99 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "19.4" AND tourism_receipts__2011___us$_per_arrival_ < 655
sql_create_context
CREATE TABLE table_50363 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
What position is Jeff Brown?
SELECT "Position" FROM table_50363 WHERE "Player" = 'jeff brown'
wikisql
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, order in asc by the Y.
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID)
nvbench
CREATE TABLE table_name_42 ( score VARCHAR, competition VARCHAR )
What was the score during the competition of 1998 fifa world cup qualification?
SELECT score FROM table_name_42 WHERE competition = "1998 fifa world cup qualification"
sql_create_context
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JO...
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by weekday.
SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
nvbench
CREATE TABLE table_62443 ( "Player" text, "Country" text, "Year(s) won" text, "Total" text, "To par" text )
What year did Tom Watson win?
SELECT "Year(s) won" FROM table_62443 WHERE "Player" = 'tom watson'
wikisql
CREATE TABLE table_1341586_39 ( incumbent VARCHAR, candidates VARCHAR )
who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1%
SELECT incumbent FROM table_1341586_39 WHERE candidates = "Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1%"
sql_create_context
CREATE TABLE table_name_64 ( set_4 VARCHAR, date VARCHAR, set_3 VARCHAR )
What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?
SELECT set_4 FROM table_name_64 WHERE date = "jun 27" AND set_3 = "17-25"
sql_create_context
CREATE TABLE table_name_92 ( result VARCHAR, round VARCHAR, event VARCHAR )
Which Result has a Round of 5, and an Event of mt one?
SELECT result FROM table_name_92 WHERE round = 5 AND event = "mt one"
sql_create_context
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age te...
calculate the number of patients who had received the base excess laboratory test in 2101.
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'base excess' AND STRFTIME('%y', lab.labresulttime) = '2101')
eicu
CREATE TABLE table_name_35 ( tournament VARCHAR )
Name the 2009 for 2007 of 2r and tournament of wimbledon
SELECT 2009 FROM table_name_35 WHERE 2007 = "2r" AND tournament = "wimbledon"
sql_create_context
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ...
there is a microbiology test record for patient 3663's mrsa screen until 09/2105?
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3663) AND microbiologyevents.spec_type_desc = 'mrsa screen' AND STRFTIME('%y-%m', microbiologyevents.charttime) <= '2105-09'
mimic_iii
CREATE TABLE table_35423 ( "Name" text, "Innhabitants" real, "Area" real, "Mayor" text, "Party" text, "Municipal code" real, "Language form" text )
How many people does the KRF Party preside over?
SELECT AVG("Innhabitants") FROM table_35423 WHERE "Party" = 'krf'
wikisql
CREATE TABLE table_59724 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
What is To Par, when Score is '66', and when Player is 'Brad Faxon'?
SELECT "To par" FROM table_59724 WHERE "Score" = '66' AND "Player" = 'brad faxon'
wikisql
CREATE TABLE table_name_85 ( year_made INTEGER, iwcr_no VARCHAR, year_withdrawn VARCHAR )
What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926?
SELECT AVG(year_made) FROM table_name_85 WHERE iwcr_no = "5" AND year_withdrawn > 1926
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...
门诊上一般被诊断为疾病O32.933的患者的检测指标830460数值的平均值以及最值会是怎样的数据
SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JY...
css
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, ...
Posts by a single user and the number of links/images, sorted by content length.
SELECT Id AS "post_link", LENGTH(Body) AS "Length", Score, CreationDate, (LENGTH(Body) - LENGTH(REPLACE(Body, '://', ''))) / 3 AS "Number of links/images" FROM Posts WHERE OwnerUserId = '##UserId:int##' AND PostTypeId = 2 ORDER BY LENGTH(Body) DESC
sede
CREATE TABLE table_32586 ( "Round" real, "Overall" real, "Player" text, "Position" text, "School/Club Team" text )
What is the highest overall rank of any Tennessee State player drafted before round 10?
SELECT MIN("Overall") FROM table_32586 WHERE "School/Club Team" = 'tennessee state' AND "Round" < '10'
wikisql
CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGDM text, BGDH text, BGRQ time, JYRQ time, JCRGH text, JCRXM text, SHRGH text, SHRXM text, JCXMMC text, JCZBDM text, JCFF text, JCZBMC text, JCZBJGDX text, JCZBJGDL number, JCZBJGDW text, SBBM text, YQBH text...
列出患者苏明知从06年8月16日到2010年2月4日内检测人为14927928的所有检验结果指标记录的检验指数流水编号都是啥?
(SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM =...
css
CREATE TABLE table_name_84 ( winner VARCHAR, course VARCHAR )
Who was the winner at Milan Circuit Race?
SELECT winner FROM table_name_84 WHERE course = "milan circuit race"
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...
从02年2月17日开始05年10月13日结束的医疗机构5215588的统筹总金额和总金额是多少元?
SELECT SUM(t_kc24.MED_AMOUT), SUM(t_kc24.OVE_PAY) FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '5215588' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2002-02-17' AND '2005-10-13'
css
CREATE TABLE table_name_81 ( year VARCHAR, opening VARCHAR )
Which year had e34 Nimzo-Indian defence is the opening?
SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence"
sql_create_context
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insuranc...
what the last height of patient 8562 when they visited the hospital first time.
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8562 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.item...
mimic_iii
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time,...
has patient 80858 got admitted to an admission until 2104?
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 80858 AND STRFTIME('%y', admissions.admittime) <= '2104'
mimic_iii
CREATE TABLE table_name_62 ( average INTEGER, rank_by_average VARCHAR, place VARCHAR, total_points VARCHAR )
What is the highest average with less than 3 places, less than 433 total points, and a rank less than 2?
SELECT MAX(average) FROM table_name_62 WHERE place < 3 AND total_points < 433 AND rank_by_average < 2
sql_create_context
CREATE TABLE table_78494 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
Where did Richmond play?
SELECT "Venue" FROM table_78494 WHERE "Away team" = 'richmond'
wikisql
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number...
what was the name of the drug prescribed to patient 99135 within 2 days after having been in 01/last year diagnosed with orthostatic hypotension?
SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 99135 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'orthos...
mimic_iii
CREATE TABLE table_50471 ( "Rank" real, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?
SELECT COUNT("Total") FROM table_50471 WHERE "Bronze" < '2' AND "Rank" < '4' AND "Silver" < '1'
wikisql
CREATE TABLE table_name_31 ( to_par INTEGER, year_s__won VARCHAR, total VARCHAR )
Name the To par that has a Year(s) won of 1988 and a Total smaller than 148?
SELECT MAX(to_par) FROM table_name_31 WHERE year_s__won = "1988" AND total < 148
sql_create_context
CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text )
Visualize the proportion of the total number of captains in each rank using a pie chart.
SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank
nvbench
CREATE TABLE table_203_271 ( id number, "date" text, "series" text, "circuit" text, "city / state" text, "winner" text, "team" text, "car" text, "report" text )
what is the name of the winner of the next round ?
SELECT "winner" FROM table_203_271 WHERE id = 1 + 1
squall
CREATE TABLE table_28146 ( "Camera" text, "Filter" text, "Wavelength" text, "Total exposure time" text, "Exposures" real )
what is the camera used when the wavelength is 814nm (i-band)?
SELECT "Camera" FROM table_28146 WHERE "Wavelength" = '814nm (I-band)'
wikisql
CREATE TABLE Vehicles ( vehicle_id VARCHAR )
List all vehicle id
SELECT vehicle_id FROM Vehicles
sql_create_context
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, Cr...
Bounty Amount Received per User. Questions where a user has received a Bounty Amount for their answer.
SELECT * FROM PostHistory WHERE PostHistoryTypeId = 21
sede
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...
what is maximum age of patients whose admission location is emergency room admit and primary disease is newborn?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "NEWBORN"
mimicsql_data