db_id
stringclasses
11 values
instruction
stringlengths
1.63k
14k
role
stringclasses
45 values
policy
unknown
input
stringlengths
23
477
output
stringlengths
23
2.22k
difficulty
stringclasses
3 values
metadata
dict
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
The oldest SJS patient's latest medical laboratory work was completed on what date, and what age was the patient when they initially arrived at the hospital?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT Max(T1.Date) AS LatestLabDate, STRFTIME('%Y', T2.`First Date`) - STRFTIME('%Y', T2.Birthday) AS AgeFirstArrived,T2.Birthday FROM Laboratory AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T2.ID = (SELECT ID FROM Patient WHERE Diagnosis = 'SJS' AND Birthday IS NOT NULL ORDER BY Birthday ASC...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the ratio of male to female patients among all those with abnormal uric acid counts?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.UA <= 8.0 AND T1.SEX = 'M' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.UA <= 6.5 AND T1.SEX = 'F' THEN 1 ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients hadn't undergone a medical examination until at least a year following their initial hospital visit?
SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.Admission = '+' AND JULIANDAY(T2.`Examination Date`) - JULIANDAY(T1.`First Date`) >= 365
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.Admission = '+' AND JULIANDAY(T2.`Examination Date`) - JULIANDAY(T1.`First Date`) >= 365", "permission": "allowed", "query_columns": { "patient": [ "Admission", "First Date", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many underage patients were examined during the course of the three-year period from 1990 to 1993?
SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T2.`Examination Date`) BETWEEN '1990' AND '1993' AND STRFTIME('%Y', T2.`Examination Date`) - STRFTIME('%Y', T1.Birthday) < 18
challenging
{ "gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T2.`Examination Date`) BETWEEN '1990' AND '1993' AND STRFTIME('%Y', T2.`Examination Date`) - STRFTIME('%Y', T1.Birthday) < 18", "permission": "allowed", "query_columns": { "patient": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many male patients have elevated total bilirubin count?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-BIL` >= 2.0 AND T1.SEX = 'M'", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "ID", "T-BIL" ] }, "missing_colu...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the most common illness that doctors identified among the patients whose lab work was done between 1/1/1985 and 12/31/1995?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.Diagnosis FROM Examination AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T1.`Examination Date` BETWEEN '1985-01-01' AND '1995-12-31' GROUP BY T2.Diagnosis ORDER BY COUNT(T2.Diagnosis) DESC, T2.Diagnosis DESC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the average age of patients as of year 1999 examined in the laboratory for the October of the year 1991?
SELECT AVG('1999' - STRFTIME('%Y', T2.Birthday)) FROM Laboratory AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T1.Date BETWEEN '1991-10-01' AND '1991-10-30'
moderate
{ "gold_sql": "SELECT AVG('1999' - STRFTIME('%Y', T2.Birthday)) FROM Laboratory AS T1 INNER JOIN Patient AS T2 ON T1.ID = T2.ID WHERE T1.Date BETWEEN '1991-10-01' AND '1991-10-30'", "permission": "allowed", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ "Date", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How old was the patient who had the highest hemoglobin count on the date of laboratory tests , and what is the doctor's diagnosis?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT STRFTIME('%Y', T2.Date) - STRFTIME('%Y', T1.Birthday), T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.HGB = (SELECT MAX(HGB) FROM Laboratory)", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID" ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What was the anti-nucleus antibody concentration level for the patient id 3605340 on 1996/12/2?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT ANA FROM Examination WHERE ID = 3605340 AND `Examination Date` = '1996-12-02'", "permission": "denied", "query_columns": { "examination": [ "ANA", "Examination Date", "ID" ] }, "missing_columns": { "examination": [ "ANA" ] }, "reason": "Missing...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Was the total cholesterol status for the patient id 2927464 on 1995-9-4 at the normal level?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT CASE WHEN `T-CHO` < 250 THEN 'Normal' ELSE 'Abnormal' END FROM Laboratory WHERE ID = 2927464 AND Date = '1995-09-04'", "permission": "denied", "query_columns": { "laboratory": [ "ID", "T-CHO" ] }, "missing_columns": { "laboratory": [ "T-CHO" ] }, "re...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What was the gender of the first AORTITIS diagnosed patient?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SEX FROM Patient WHERE Diagnosis = 'AORTITIS' AND `First Date` IS NOT NULL ORDER BY `First Date` ASC, ID DESC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "First Date", "ID", "SEX" ] }, "missing_columns": { "patient": ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient who was diagnosed with SLE on 1994/2/19, what was his/her anti-Cardiolipin antibody concentration status on 1993/11/12?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT `aCL IgA`, `aCL IgG`, `aCL IgM` FROM Examination WHERE ID IN ( SELECT ID FROM Patient WHERE Diagnosis = 'SLE' AND Description = '1994-02-19' ) AND `Examination Date` = '1993-11-12'", "permission": "denied", "query_columns": { "patient": [ "Description", "Diagnosis", "ID...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Was the patient a man or a woman whose ALT glutamic pylvic transaminase status got 9 on 1992-6-12?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GPT = 9 AND T2.Date = '1992-06-12'", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "Date", "GPT", "ID" ] }, "missing_colu...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient who got the laboratory test of uric acid level as 8.4 on 1991-10-21, how old was he/she at that time?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT STRFTIME('%Y', T2.`Date`) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UA = 8.4 AND T2.`Date` = '1991-10-21'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient who first came to the hospital on 1991/6/13 who was diagnosed with SJS, what is the total number of his/her Laboratory tests in 1995?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(*) FROM Laboratory WHERE ID = ( SELECT ID FROM Patient WHERE `First Date` = '1991-06-13' AND Diagnosis = 'SJS' ) AND STRFTIME('%Y', Date) = '1995'", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "First Date", "ID" ], "laboratory": []...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient who was diagnosed SLE on 1997/1/27, what was his/her original diagnose when he/she came to the hospital for the first time?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T1.Diagnosis \nFROM Patient AS T1 \nINNER JOIN Examination AS T2 ON T1.ID = T2.ID \nWHERE T1.ID = ( \n SELECT ID \n FROM Examination \n WHERE `Examination Date` = '1997-01-27' AND Diagnosis = 'SLE' \n ORDER BY ID ASC \n LIMIT 1 \n) \nAND T2.`Examination Date` = T1.`First Date`", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient whose birthday was 1959/3/1, what symptoms did he/she have during the examination on 1993/9/27?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Symptoms FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.Birthday = '1959-03-01' AND T2.`Examination Date` = '1993-09-27'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "examination": [ "Examination Dat...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient who was born on 1959/2/18, what is the decrease rate for his/her total cholesterol from November to December in 1981?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST((SUM(CASE WHEN T2.Date LIKE '1981-11-%' THEN T2.`T-CHO` ELSE 0 END) - SUM(CASE WHEN T2.Date LIKE '1981-12-%' THEN T2.`T-CHO` ELSE 0 END)) AS REAL) / SUM(CASE WHEN T2.Date LIKE '1981-12-%' THEN T2.`T-CHO` ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Bi...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Lists all patients by ID who were diagnosed with Behcet's and had their exams between 01/01/197 and 12/31/1997.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT ID FROM Examination WHERE `Examination Date` BETWEEN '1997-01-01' AND '1997-12-31' AND Diagnosis = 'Behcet'", "permission": "denied", "query_columns": { "examination": [ "Diagnosis", "Examination Date", "ID" ] }, "missing_columns": { "examination": [ "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients who were examined between 1987/7/6 and 1996/1/31 had a GPT level greater than 30 and an ALB level less than 4? List them by their ID.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT ID FROM Laboratory WHERE Date BETWEEN '1987-07-06' AND '1996-01-31' AND GPT > 30 AND ALB < 4", "permission": "denied", "query_columns": { "laboratory": [ "ALB", "GPT", "ID" ] }, "missing_columns": { "laboratory": [ "ALB", "GPT" ] }...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many female patients born in 1964 were admitted to the hospital? List them by ID.
SELECT ID FROM Patient WHERE STRFTIME('%Y', Birthday) = '1964' AND SEX = 'F' AND Admission = '+'
simple
{ "gold_sql": "SELECT ID FROM Patient WHERE STRFTIME('%Y', Birthday) = '1964' AND SEX = 'F' AND Admission = '+'", "permission": "allowed", "query_columns": { "patient": [ "Admission", "Birthday", "ID", "SEX" ] }, "missing_columns": {}, "reason": "All required columns are perm...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What number of patients with a degree of thrombosis level 2 and ANA pattern of only S, have a level of anti-Cardiolipin antibody (IgM) 20% higher than average?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT COUNT(*) FROM Examination WHERE Thrombosis = 2 AND `ANA Pattern` = 'S' AND `aCL IgM` > (SELECT AVG(`aCL IgM`) * 1.2 FROM Examination WHERE Thrombosis = 2 AND `ANA Pattern` = 'S')", "permission": "denied", "query_columns": { "examination": [ "ANA Pattern", "Thrombosis", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What percentage of patients with a proteinuria level within the normal range have a uric acid level below the normal range?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN UA <= 6.5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Laboratory WHERE CAST(`U-PRO` AS REAL) > 0 AND CAST(`U-PRO` AS REAL) < 30", "permission": "denied", "query_columns": { "laboratory": [ "ID", "U-PRO", "UA" ] }, "missing_columns": { ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What percentage of male patients who first presented to the hospital in 1981 were diagnosed with BEHCET?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN Diagnosis = 'BEHCET' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE STRFTIME('%Y', `First Date`) = '1981' AND SEX = 'M'", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "First Date", "ID", "SEX" ] },...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List all patients who were followed up at the outpatient clinic who underwent a laboratory test in October 1991 and had a total blood bilirubin level within the normal range.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Admission = '-' AND T2.`T-BIL` < 2.0 AND T2.Date LIKE '1991-10-%'", "permission": "denied", "query_columns": { "patient": [ "Admission", "ID" ], "laboratory": [ "Date", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Excluding all P only ANA Pattern patients, how many of the remainder are women born between 1980 and 1989?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.`ANA Pattern` != 'P' AND STRFTIME('%Y', T1.Birthday) BETWEEN '1980' AND '1989' AND T1.SEX = 'F'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "S...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What sex is the patient who in a medical examination was diagnosed with PSS and in a laboratory examination had a blood level of C-reactive protein de 2+, createnine 1 and LDH 123?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T1.SEX FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T3.ID = T2.ID WHERE T2.Diagnosis = 'PSS' AND T3.CRP = '2+' AND T3.CRE = 1.0 AND T3.LDH = 123", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the average blood albumin level for female patients with a PLT greater than 400 who have been diagnosed with SLE?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T2.ALB) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT > 400 AND T1.Diagnosis = 'SLE' AND T1.SEX = 'F'", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID", "SEX" ], "laboratory": [ "ALB", "ID"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the most common sign of patients with SLE disease?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Symptoms FROM Examination WHERE Diagnosis = 'SLE' GROUP BY Symptoms ORDER BY COUNT(Symptoms) DESC LIMIT 1", "permission": "denied", "query_columns": { "examination": [ "Diagnosis", "Symptoms" ] }, "missing_columns": { "examination": [ "Diagnosis", "Sym...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
When was the medical information on patient number 48473 first documented, and what disease did she have?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT `First Date`, Diagnosis FROM Patient WHERE ID = 48473", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "First Date", "ID" ] }, "missing_columns": { "patient": [ "Diagnosis" ] }, "reason": "Missing column permissions: patie...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many female patients were given an APS diagnosis?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(ID) FROM Patient WHERE SEX = 'F' AND Diagnosis = 'APS'", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID", "SEX" ] }, "missing_columns": { "patient": [ "Diagnosis" ] }, "reason": "Missing column permissions: patie...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients who underwent testing in 1997 had protein levels outside the normal range?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT ID) AS abnormal_protein_patient_count\nFROM Laboratory\nWHERE \n (TP <= 6.0 OR TP >= 8.5) \n AND STRFTIME('%Y', Date) = '1997';", "permission": "denied", "query_columns": { "laboratory": [ "ID", "TP" ] }, "missing_columns": { "laboratory": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What proportion of patients who had signs of thrombocytopenia had SLE diagnosed?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT \n CAST(SUM(CASE WHEN Diagnosis LIKE '%SLE%' THEN 1 ELSE 0 END) AS REAL) * 100 / NULLIF(COUNT(DISTINCT ID), 0) AS proportion\nFROM Examination \nWHERE Symptoms = 'thrombocytopenia';", "permission": "denied", "query_columns": { "examination": [ "Diagnosis", "ID", "Sym...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What percentage of patients who were born in 1980 and were diagnosed with RA are women?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN SEX = 'F' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(ID) FROM Patient WHERE Diagnosis = 'RA' AND STRFTIME('%Y', Birthday) = '1980'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID", "SEX" ] }, "missin...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many male patients who underwent testing between 1995 and 1997 and were subsequently diagnosed with Behcet disease did not stay in the hospital for treatment?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Diagnosis = 'Behcet' AND T1.SEX = 'M' AND STRFTIME('%Y', T2.`Examination Date`) BETWEEN '1995' AND '1997' AND T1.Admission = '-'", "permission": "denied", "query_columns": { "patient": [ "Admissi...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients who were female got white blood cells that were below 3.5?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.WBC < 3.5 AND T1.SEX = 'F'", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "ID", "WBC" ] }, "missing_columns": { "lab...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How long did it take after patient number 821298 arrived at the hospital for the first time before her first evaluation began?
SELECT MIN(JULIANDAY(T3.`Examination Date`)) - JULIANDAY(T1.`First Date`) FROM Patient AS T1 INNER JOIN Examination AS T3 ON T1.ID = T3.ID WHERE T1.ID = 821298
simple
{ "gold_sql": "SELECT MIN(JULIANDAY(T3.`Examination Date`)) - JULIANDAY(T1.`First Date`) FROM Patient AS T1 INNER JOIN Examination AS T3 ON T1.ID = T3.ID WHERE T1.ID = 821298", "permission": "allowed", "query_columns": { "patient": [ "First Date", "ID" ], "examination": [ "Examinatio...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Was the patient with the number 57266's uric acid within a normal range?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CASE WHEN (T1.SEX = 'F' AND T2.UA > 6.5) OR (T1.SEX = 'M' AND T2.UA > 8.0) THEN true ELSE false END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID = 57266", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
When is the laboratory examination of patient '48473' where his/her AST glutamic oxaloacetic transaminase (GOT) index is above the normal range.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Date FROM Laboratory WHERE ID = 48473 AND GOT >= 60", "permission": "denied", "query_columns": { "laboratory": [ "GOT", "ID" ] }, "missing_columns": { "laboratory": [ "GOT" ] }, "reason": "Missing column permissions: laboratory: GOT", "question_id"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List all patients with their sex and date of birthday, whose AST glutamic oxaloacetic transaminase (GOT) index is within normal range for laboratory examination in 1994.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GOT < 60 AND STRFTIME('%Y', T2.Date) = '1994'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], "laboratory": [ "Date",...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Provide IDs for male patients with ALT glutamic pylvic transaminase (GPT) that have history of ALT glutamic pylvic transaminase (GPT) exceed the normal range.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'M' AND T2.GPT >= 60", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "GPT", "ID" ] }, "missing_columns": { "l...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Please provide the diagnosis of patients with ALT glutamic pylvic transaminase beyond the normal range by ascending order of their date of birth.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GPT > 60 ORDER BY T1.Birthday ASC", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID" ], "laboratory": [ "GPT", "ID" ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the average index of the lactate dehydrogenase (LDH) for all patients with lactate dehydrogenase (LDH) within the normal range.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT AVG(LDH) FROM Laboratory WHERE LDH < 500", "permission": "denied", "query_columns": { "laboratory": [ "LDH" ] }, "missing_columns": { "laboratory": [ "LDH" ] }, "reason": "Missing column permissions: laboratory: LDH", "question_id": 1210, "evidence": "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Provide the ID and age of patient with lactate dehydrogenase (LDH) between 100-300 index above the normal range.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.LDH > 600 AND T2.LDH < 800", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laborator...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For patients with alkaliphophatase (ALP) within normal range, were they treated as inpatient or outpatient?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.Admission FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.ALP < 300", "permission": "denied", "query_columns": { "patient": [ "Admission", "ID" ], "laboratory": [ "ALP", "ID" ] }, "missing_columns": { "laboratory": [...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Name the ID of the patient who is born on the April 1st, 1982. Is his/her alkaliphophatase (ALP) within normal range?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.ID , CASE WHEN T2.ALP < 300 THEN 'normal' ELSE 'abNormal' END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Birthday = '1982-04-01'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ "ALP",...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List ID, sex and date of birth of the patient whose total protein (TP) is below the lower range of the normal index.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TP < 6.0", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], "laboratory": [ "ID", "TP" ] }, "missin...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For all female patient with total protein (TP) beyond the normal index, what is the deviation of their TP index from the normal?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.TP - 8.5 FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'F' AND T2.TP > 8.5", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "ID", "TP" ] }, "missing_columns": { "labora...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Sort in descending order all patients by birthday for male patient with albumin not within range.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'M' AND (T2.ALB <= 3.5 OR T2.ALB >= 5.5) ORDER BY T1.Birthday DESC", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], "laboratory": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For all patient born in 1982, state if their albumin is within normal range.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CASE WHEN T2.ALB >= 3.5 AND T2.ALB <= 5.5 THEN 'normal' ELSE 'abnormal' END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.Birthday) = '1982'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "labora...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the percentage of the female patient whose uric acid (UA) beyond the normal range?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.UA > 6.5 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'F'", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "ID", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For all patients with normal uric acid (UA), what is the average UA index based on their latest laboratory examination result?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T2.UA) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.UA < 6.5 AND T1.SEX = 'F') OR (T2.UA < 8.0 AND T1.SEX = 'M') AND T2.Date = ( SELECT MAX(Date) FROM Laboratory )", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Provide all ID, sex and birthday of patients whose urea nitrogen (UN) just within the borderline of passing?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN = 29", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], "laboratory": [ "ID", "UN" ] }, "missing...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Provide the ID, sex, birthday of all patients diagnosed with 'RA' that are within the UN normal index.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.UN < 30 AND T1.Diagnosis = 'RA'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID", "SEX" ], "laboratory": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many male patients have creatinine index out of the normal range?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CRE >= 1.5 AND T1.SEX = 'M'", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "CRE", "ID" ] }, "missing_columns": ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Are there more male patients with creatinine not within the normal range than female? True or False?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CASE WHEN SUM(CASE WHEN T1.SEX = 'M' THEN 1 ELSE 0 END) > SUM(CASE WHEN T1.SEX = 'F' THEN 1 ELSE 0 END) THEN 'True' ELSE 'False' END FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CRE >= 1.5", "permission": "denied", "query_columns": { "patient": [ "ID", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the highest total bilirubin level recorded? List out the patient details with ID, sex and birthday with that index.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.`T-BIL`, T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID ORDER BY T2.`T-BIL` DESC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], "laboratory": [ "ID", "T-BIL"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List and group all patients by sex for total bilirubin (T-BIL) level not within the normal range.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.ID,T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-BIL` >= 2.0 GROUP BY T1.SEX,T1.ID", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory": [ "ID", "T-BIL" ] }, "missing_columns"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Who is the oldest patient with the highest total cholesterol (T-CHO). State the patient ID and T-CHO index.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.ID, T2.`T-CHO` FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID ORDER BY T2.`T-CHO` DESC, T1.Birthday ASC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ "ID", "T-CHO" ] }, "mi...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the average age of the male patient with high cholesterol?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(STRFTIME('%Y', date('NOW')) - STRFTIME('%Y', T1.Birthday)) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-CHO` >= 250 AND T1.SEX = 'M'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], "laborato...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Provide list of patients and their diagnosis with triglyceride (TG) index greater than 100 of the normal range?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG > 300", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID" ], "laboratory": [ "ID", "TG" ] }, "missing_columns": { "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For all patients with triglyceride (TG) level beyond the normal range, how many are age more than 50 years?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG >= 200 AND STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) > 50", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List all outpatient within normal range of creatinine phosphokinase. Give me the distinct ids.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CPK < 250 AND T1.Admission = '-'", "permission": "denied", "query_columns": { "patient": [ "Admission", "ID" ], "laboratory": [ "CPK", "ID" ] }, "missing_column...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For patient born between 1936-1956, how many male patients have creatinine phosphokinase beyond the normal range?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.Birthday) BETWEEN '1936' AND '1956' AND T1.SEX = 'M' AND T2.CPK >= 250", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", "SEX" ], ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Provide ID, sex and age of patient who has blood glucose (GLU) not within normal range but with total cholesterol(T-CHO) within normal range.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX , STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GLU >= 180 AND T2.`T-CHO` < 250", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List each patient's ID and blood glucose (GLU) index that were within normal range for patient's whose data was first recorded in 1991.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.ID, T2.GLU FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.`First Date`) = '1991' AND T2.GLU < 180", "permission": "denied", "query_columns": { "patient": [ "First Date", "ID" ], "laboratory": [ "GLU", "I...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List the patient ID, sex and birthday who has abnormal white blood cell count. Group them by sex and list the patient by age in ascending order.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.WBC < 3.5 OR T2.WBC > 9.0 GROUP BY T1.ID, T1.SEX, T1.Birthday ORDER BY T1.SEX, T1.Birthday ASC", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What are the patient's diagnosis for those who has lower red blood blood cell? State their ID and age.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.Diagnosis, T1.ID , STRFTIME('%Y', CURRENT_TIMESTAMP) -STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RBC < 3.5", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID" ]...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For all the female patient age 50 and above, who has abnormal red blood cell count. State if they were admitted to hospital.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.Admission FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'F' AND (T2.RBC <= 3.5 OR T2.RBC >= 6.0) AND STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) >= 50", "permission": "denied", "query_columns": { "patient": [ "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among all outpatients, list out those have low hemoglobin level. State the different IDs and their sex.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.HGB < 10 AND T1.Admission = '-'", "permission": "denied", "query_columns": { "patient": [ "Admission", "ID", "SEX" ], "laboratory": [ "HGB", "ID" ] ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the patients who were diagnosed with SLE, who is the oldest with normal hemoglobin level. Provide the ID and sex.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.ID, T1.SEX FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.HGB > 10 AND T2.HGB < 17 ORDER BY T1.Birthday ASC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID", "SEX"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Name the ID and age of patient with two or more laboratory examinations which show their hematoclit level exceeded the normal range.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID IN ( SELECT ID FROM Laboratory WHERE HCT >= 52 GROUP BY ID HAVING COUNT(ID) >= 2 )", "permission": "denied", "query_columns": { "pat...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
From laboratory examinations in 1991, what is the average hematoclit level that is lower than the normal range.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T2.HCT) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.HCT < 29 AND STRFTIME('%Y', T2.Date) = '1991'", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory": [ "Date", "HCT", "ID" ] }, "missing_c...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For patients with abnormal platelet level, state the number of patients with lower than normal range. How is it compare to the number of patients with higher than normal range?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT SUM(CASE WHEN T2.PLT <= 100 THEN 1 ELSE 0 END), SUM(CASE WHEN T2.PLT <= 100 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.PLT >= 400 THEN 1 ELSE 0 END) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID", "permission": "denied", "query_columns": { "patient": [ "ID" ], ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For laboratory examinations take in 1984, list all patients below 50 years old with normal platelet level.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PLT BETWEEN 100 AND 400 AND STRFTIME('%Y', T2.Date) - STRFTIME('%Y', T1.Birthday) < 50 AND STRFTIME('%Y', T2.Date) = '1984'", "permission": "denied", "query_columns": { "patient": [ "Birthday", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For all patients who are older than 55 years old, what is the percentage of female who has abnormal prothrombin time (PT)?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT \n CAST(COUNT(DISTINCT CASE WHEN T2.PT >= 14 AND T1.SEX = 'F' THEN T1.ID END) AS REAL)\n / COUNT(DISTINCT CASE WHEN T2.PT >= 14 THEN T1.ID END)\n * 100 AS abnormal_pt_female_percentage\nFROM Patient AS T1\nINNER JOIN Laboratory AS T2 ON T1.ID = T2.ID\nWHERE STRFTIME('%Y', CURRENT_TIMEST...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
List all patients who first came to the hospital after year 1992 with prothrombin time (PT) level that are normal.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.`First Date`) > '1992' AND T2.PT < 14", "permission": "denied", "query_columns": { "patient": [ "First Date", "ID" ], "laboratory": [ "ID", "PT" ] ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the examinations done after 1997/1/1, how many of them have the result of an inactivated partial prothrom bin time?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.Date > '1997-01-01' AND T2.APTT >= 45", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory": [ "APTT", "Date", "ID" ] }, "missing_columns...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patients with an abnormal activated partial prothrom bin time, how many of them does not have thrombosis?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T3.Thrombosis = 0 AND T2.APTT > 45", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory": [ "APTT", ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the male patients who have a normal level of white blood cells, how many of them have an abnormal fibrinogen level?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT COUNT(DISTINCT p.ID) AS male_count\nFROM Patient AS p\nJOIN Laboratory AS l ON l.ID = p.ID\nWHERE p.SEX = 'M'\n AND (l.FG <= 150 OR l.FG >= 450)\n AND l.WBC > 3.5 AND l.WBC < 9.0;", "permission": "denied", "query_columns": { "patient": [ "ID", "SEX" ], "laboratory":...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients born after 1980/1/1 have an abnormal fibrinogen level?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.FG <= 150 OR T2.FG >= 450 AND T1.Birthday > '1980-01-01'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ "FG", "ID"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Please list the disease names of the patients that have a proteinuria level higher than normal.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`U-PRO` >= 30", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID" ], "laboratory": [ "ID", "U-PRO" ] }, "missing_columns": { "patient"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Which patients have a normal proteinuria level and are diagnosed with SLE? Please give their patient IDs.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE CAST(T2.`U-PRO` AS REAL) > 0 AND CAST(T2.`U-PRO` AS REAL) < 30 AND T1.Diagnosis = 'SLE'", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID" ], "laboratory": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients with an Ig G higher than normal?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T2.IGG >= 2000", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory": [ "ID", "IGG" ], "exa...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the patients with a normal Ig G level, how many of them have symptoms?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T2.IGG BETWEEN 900 AND 2000 AND T3.Symptoms IS NOT NULL", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory": [ "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patient who has the highest Ig A within the normal range, what is his or her diagnosis?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT patientData.Diagnosis FROM Patient AS patientData INNER JOIN Laboratory AS labData ON patientData.ID = labData.ID WHERE labData.IGA BETWEEN 80 AND 500 ORDER BY labData.IGA DESC, patientData.ID LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients with a normal Ig A level came to the hospital after 1990/1/1?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) AS normal_iga_patient_count FROM Patient AS T1\nINNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGA > 80 AND T2.IGA < 500 AND strftime('%Y', T1.`First Date`) >= '1990';", "permission": "denied", "query_columns": { "patient": [ "First Date", "ID" ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
For the patients with an abnormal Ig M level, what is the most common disease they are diagnosed with?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.IGM NOT BETWEEN 40 AND 400 GROUP BY T1.Diagnosis ORDER BY COUNT(T1.Diagnosis) DESC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID" ], "laboratory"...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients with a abnormal C-reactive protein don't have their data recorded?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) \nFROM Patient AS T1 \nINNER JOIN Laboratory AS T2 ON T1.ID = T2.ID \nWHERE T2.CRP = '+' AND T1.Description IS NULL;", "permission": "denied", "query_columns": { "patient": [ "Description", "ID" ], "laboratory": [ "CRP", "ID" ] ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the patients whose creatinine level is abnormal, how many of them aren't 70 yet?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.CRE >= 1.5 AND STRFTIME('%Y', Date('now')) - STRFTIME('%Y', T1.Birthday) < 70", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients with a normal Rhuematoid Factor has a positive measure of degree of coagulation?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE (T2.RA = '-' OR T2.RA = '+-') AND T3.KCT = '+'", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory": [ "...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Please list the diseases of the patients born after 1985-1-1 and have a normal Rhuematoid Factor.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE (T2.RA = '-' OR T2.RA = '+-') AND T1.Birthday > '1985-01-01'", "permission": "denied", "query_columns": { "patient": [ "Birthday", "Diagnosis", "ID" ], "laboratory": [ "ID",...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Please list the ID of patients whose RF test result is normal and who were older than 60 at the time of their laboratory test.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT p.ID FROM Patient AS p JOIN Laboratory AS l ON p.ID = l.ID WHERE l.RF IS NOT NULL AND TRIM(l.RF) != '' AND CAST(REPLACE(REPLACE(l.RF, '<', ''), '>', '') AS REAL) < 20 AND (CAST(strftime('%Y', l.Date) AS INTEGER) - CAST(strftime('%Y', p.Birthday) AS INTEGER)) > 60", "permission": "deni...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients with a normal RF don't have thrombosis?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RF < 20 AND T1.Thrombosis = 0", "permission": "denied", "query_columns": { "examination": [ "ID", "Thrombosis" ], "laboratory": [ "ID", "RF" ] }, "mi...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients with a normal level of complement 3 have a P pattern observed in the sheet of ANA examination?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.C3 > 35 AND T1.`ANA Pattern` = 'P'", "permission": "denied", "query_columns": { "examination": [ "ANA Pattern", "ID" ], "laboratory": [ "C3", "ID" ] },...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the patients whose level of Hematoclit isn't normal, which patient has the highest anti-Cardiolipin antibody concentration? Please list his or her ID.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 on T1.ID = T3.ID WHERE (T3.HCT >= 52 OR T3.HCT <= 29) ORDER BY T2.`aCL IgA` DESC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "ID" ], "laboratory...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the patients have blood clots in veins, how many of them have a normal level of complement 4?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.C4 > 10 AND T1.Diagnosis = 'APS'", "permission": "denied", "query_columns": { "patient": [ "Diagnosis", "ID" ], "laboratory": [ "C4", "ID" ] }, "missing_...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
How many patients have a normal level of anti-ribonuclear protein and have been admitted to the hospital?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RNP = 'negative' OR T2.RNP = '0' AND T1.Admission = '+'", "permission": "denied", "query_columns": { "patient": [ "Admission", "ID" ], "laboratory": [ "ID", "RNP...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
What is the date of birth of the youngest patient with an abnormal anti-ribonuclear protein level?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RNP NOT IN ('-', '+-') ORDER BY T1.Birthday DESC LIMIT 1", "permission": "denied", "query_columns": { "patient": [ "Birthday", "ID" ], "laboratory": [ "ID", "RNP" ] ...
thrombosis_prediction
##Instruction: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Database: thrombosis_prediction Total Tables: 3 Total Columns: 64 Table Schemas: Table: Examination (13 columns) ------------------------------- • ID (integer): identification of the patient • Examination Date (date): Ex...
PatientCoordinator
{ "Examination": [ "ID", "Examination Date" ], "Patient": [ "ID", "SEX", "Birthday", "Description", "First Date", "Admission" ], "Laboratory": [ "ID", "Date" ] }
Among the patients with normal anti-SM, how many of them does not have thrombosis?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.ID) FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SM IN ('negative','0') AND T1.Thrombosis = 0", "permission": "denied", "query_columns": { "examination": [ "ID", "Thrombosis" ], "laboratory": [ "ID", "SM" ] },...