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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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"
],
"examination": [
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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"
],
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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"
],
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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"
],
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | 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"
]
},... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients with an abnormal anti-SM, please list the IDs of the three youngest ones. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SM NOT IN ('negative','0') ORDER BY T1.Birthday DESC LIMIT 3",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"laboratory": [
"ID",
"SM"
]
},
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list the IDs of the patients who had the examination done after 1997/1/1 and had a normal anti-scl70. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.SC170 IN ('negative','0') AND T2.Date > '1997-01-01'",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"laboratory": [
"Date",
"ID",
"SC170"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients who has a normal anti-scl70, how many of them are female and does not have any symptom? | 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 INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE (T2.SC170 = 'negative' OR T2.SC170 = '0') AND T1.SEX = 'F' AND T3.Symptoms IS NULL",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many patients with a normal anti-SSA came to the hospital before 2000? | 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.SSA IN ('negative', '0') AND STRFTIME('%Y', T2.Date) < '2000'",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"laboratory": [
"Date",
"ID",
"SS... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Which patient is the first patient with an abnormal anti-SSA to come to the hospital? Please give his or her ID. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.`First Date` IS NOT NULL AND T2.SSA NOT IN ('negative', '0') ORDER BY T1.`First Date` ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"patient": [
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many patients have a normal anti-SSB and are diagnosed with SLE in the examination? | 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.SSB = 'negative' OR T2.SSB = '0' AND T1.Diagnosis = 'SLE'",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients whose anti-SSB are normal, how many of them have other symptoms observed in their 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.SSB = 'negative' OR T2.SSB = '0') AND T1.Symptoms IS NOT NULL",
"permission": "denied",
"query_columns": {
"examination": [
"ID",
"Symptoms"
],
"laboratory": [
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients who has a normal level of anti-centromere and a normal level of anti-SSB, how many of them are male? | 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.CENTROMEA IN ('negative', '0') AND T2.SSB IN ('negative', '0') AND T1.SEX = 'M'",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients who have an abnormal level of anti-DNA, please list the diseases they are diagnosed with. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.DNA >= 8",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"DNA",
"ID"
]
},
"missing_columns": {
"patien... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many patients have a normal anti-DNA level, yet their data are not recorded. | 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.DNA < 8 AND T1.Description IS NULL",
"permission": "denied",
"query_columns": {
"patient": [
"Description",
"ID"
],
"laboratory": [
"DNA",
"ID"
]
},
"mis... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Based on latest record of each patient,of the patients with an normal level of IGG, how many of them admitted to the hospital? | Sorry, I cannot answer. | simple | {
"gold_sql": "WITH LatestLab AS (SELECT T1.ID,max(T2.Date) AS LatestLabDate FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID GROUP BY T1.ID) SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN LatestLab AS T3 ON T1.ID=T3.ID AND T2.Date=T3.LatestLabDate WHERE ... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | What is the percentage of patient who has a abnormal level of glutamic oxaloacetic transaminase level, yet he or she is diagnosed with SLE? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT SUM(CASE WHEN T1.Diagnosis LIKE '%SLE%' THEN 1 ELSE 0 END) * 100.0 / COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`GOT` >= 60",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many male patients have their glutamic oxaloacetic transaminase in the normal range? | 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.GOT < 60 AND T1.SEX = 'M'",
"permission": "denied",
"query_columns": {
"patient": [
"ID",
"SEX"
],
"laboratory": [
"GOT",
"ID"
]
},
"missing_columns": {
"pati... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients who have an abnormal level of glutamic oxaloacetic transaminase, when was the youngest of them born? | 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.GOT >= 60 ORDER BY T1.Birthday DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"laboratory": [
"GOT",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list the top three patients' birthdays with the highest glutamic pylvic transaminase in the normal range. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GPT < 60 GROUP BY T1.ID ORDER BY MAX(T2.GPT) DESC, T1.ID ASC LIMIT 3",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"laboratory": [
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients with the normal glutamic pylvic transaminase level, how many of them are male? | 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.GOT < 60 AND T1.SEX = 'M'",
"permission": "denied",
"query_columns": {
"patient": [
"ID",
"SEX"
],
"laboratory": [
"GOT",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patient with the highest lactate dehydrogenase in the normal range, when was his or her data first recorded? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.`First Date` FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.LDH < 500 ORDER BY T2.LDH DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"patient": [
"First Date",
"ID"
],
"laboratory": [
"ID",
"LDH"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | When is the latest patient's medical data recorded? This patient should have an abnormal level of lactate dehydrogenase. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.`First Date` FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.LDH >= 500 ORDER BY T1.`First Date` DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"patient": [
"First Date",
"ID"
],
"laboratory": [
"ID",
"LDH"
]
},... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patient with an abnormal alkaliphophatase level, how many of them are admitted to the hospital? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T1.ID)\nFROM Patient AS T1\nINNER JOIN Laboratory AS T2 ON T1.ID = T2.ID\nWHERE T2.ALP >= 300 AND T1.Admission = '+';",
"permission": "denied",
"query_columns": {
"patient": [
"Admission",
"ID"
],
"laboratory": [
"ALP",
"ID"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients followed at the outpatient clinic, how many of them have a normal level of alkaliphophatase? | 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.ALP < 300 \nAND T1.Admission = '-'",
"permission": "denied",
"query_columns": {
"patient": [
"Admission",
"ID"
],
"laboratory": [
"ALP",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list the diagnosis of the patients whose total protein is lower 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.TP < 6.0",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"ID",
"TP"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients who are diagnosed with SJS, how many of them have a normal level of total protein? | 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 T1.Diagnosis = 'SJS' AND T2.TP > 6.0 AND T2.TP < 8.5",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"ID",
"TP"
]... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | What is the examination date of the patient whose albumin is the highest in the normal range? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Date FROM Laboratory WHERE ALB > 3.5 AND ALB < 5.5 ORDER BY ALB DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"laboratory": [
"ALB"
]
},
"missing_columns": {
"laboratory": [
"ALB"
]
},
"reason": "Missing column permissions: laboratory: ALB",
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many male patients have a normal level of both albumin and total protein? | 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 T1.SEX = 'M' AND T2.ALB > 3.5 AND T2.ALB < 5.5 AND T2.TP BETWEEN 6.0 AND 8.5",
"permission": "denied",
"query_columns": {
"patient": [
"ID",
"SEX"
],
"laboratory": [
"ALB",
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | What is the anti Cardiolipin antibody concentration of the female patient with the highest uric acid level above 6.5? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T3.`aCL IgG`, T3.`aCL IgM`, T3.`aCL IgA` 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 T1.SEX = 'F' AND T2.UA > 6.5 ORDER BY T2.UA DESC, T1.ID ASC 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | What is the highest anti-nucleus antibody concentration level of a patient with a normal creatinine level? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT MAX(T2.ANA) 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.CRE < 1.5",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"examination": [
"ANA",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list the patient's ID whose creatinine level is normal and whose anti Cardiolipin antibody concentration level is the highest. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.ID FROM Laboratory AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.CRE < 1.5 AND T2.`aCL IgA` IS NOT NULL ORDER BY T2.`aCL IgA` DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"examination": [
"ID",
"aCL IgA"
],
"laboratory": [
"CRE",
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients whose total bilirubin is over the normal range, how many of them have a peripheral pattern observed in the sheet of ANA examination? | Sorry, I cannot answer. | challenging | {
"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 T1.ID = T3.ID WHERE T2.`T-BIL` >= 2 AND T3.`ANA Pattern` LIKE '%P%'",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"examination": [
"ANA 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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | What is the anti-nucleus antibody concentration of the patient whose total bilirubin is the highest in the normal range? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.ANA FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.`T-BIL` < 2.0 ORDER BY T2.`T-BIL` DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"examination": [
"ANA",
"ID"
],
"laboratory": [
"ID",
"T-BIL"
]
},
"miss... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients whose total cholesterol is higher than normal, how many of them have a negative measure of degree of coagulation? | 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 T1.ID = T3.ID WHERE T2.`T-CHO` >= 250 AND T3.KCT = '-'",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"examination": [
"ID",
"KCT"
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients whose total cholesterol is within the normal range, how many of them have a P pattern observed in the sheet of ANA examination? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(DISTINCT T1.ID) AS qualified_patient_count\nFROM Patient AS T1\nINNER JOIN Laboratory AS T2 ON T1.ID = T2.ID \nINNER JOIN Examination AS T3 ON T1.ID = T3.ID \nWHERE \n T2.`T-CHO` < 250 \n AND T3.`ANA Pattern` = 'P';",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients with the normal level of triglyceride, how many of them have other symptoms observed? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T1.ID) \nFROM Examination AS T1 \nINNER JOIN Laboratory AS T2 ON T1.ID = T2.ID \nWHERE T2.TG < 200 \nAND T1.Symptoms IS NOT NULL",
"permission": "denied",
"query_columns": {
"examination": [
"ID",
"Symptoms"
],
"laboratory": [
"ID",
"TG"
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | What is the disease name of the patient who has the highest level of triglyceride within the normal range? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.Diagnosis FROM Examination AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG < 200 ORDER BY T2.TG DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"examination": [
"Diagnosis",
"ID"
],
"laboratory": [
"ID",
"TG"
]
},
"missi... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list the IDs of the patients with no thrombosis and an abnormal level of creatinine phosphokinase. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.ID FROM Laboratory AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Thrombosis = 0 AND T1.CPK < 250",
"permission": "denied",
"query_columns": {
"examination": [
"ID",
"Thrombosis"
],
"laboratory": [
"CPK",
"ID"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the patients with a normal range of creatinine phosphokinase, how many of them have a positive measure of degree of coagulation? | Sorry, I cannot answer. | challenging | {
"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 T1.ID = T3.ID WHERE T2.CPK < 250 AND (T3.KCT = '+' OR T3.RVVT = '+' OR T3.LAC = '+')",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | When is the birthday of the oldest patient whose blood glucose is abnormal? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.GLU > 180 ORDER BY T1.Birthday ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"laboratory": [
"GLU",
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients with a normal blood glucose, how many of them don't 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 T1.ID = T3.ID WHERE T2.GLU < 180 AND T3.Thrombosis = 0",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"examination": [
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many patients accepted to the hospital have a normal level of white blood cells? | 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.WBC BETWEEN 3.5 AND 9 AND T1.Admission = '+'",
"permission": "denied",
"query_columns": {
"patient": [
"Admission",
"ID"
],
"laboratory": [
"ID",
"WBC"
]
},
"miss... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many patients diagnosed with SLE have a normal white blood cell level? | 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 T1.Diagnosis = 'SLE' AND T2.WBC BETWEEN 3.5 AND 9",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"ID",
"WBC"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list the patient's ID if he or she has an abnormal level of red blood cell and is followed at the outpatient clinic. | 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.RBC <= 3.5 OR T2.RBC >= 6) AND T1.Admission = '-'",
"permission": "denied",
"query_columns": {
"patient": [
"Admission",
"ID"
],
"laboratory": [
"ID",
"RBC"
]
},... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Among the patients who have a normal platelet level, how many of them have other symptoms observed? | 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.PLT > 100 AND T2.PLT < 400 AND T1.Diagnosis IS NOT NULL",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"ID",
"PLT"
]
... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | Please list a patient's platelet level if it is within the normal range and if he or she is diagnosed with MCTD. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.PLT FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'MCTD' AND T2.PLT BETWEEN 100 AND 400",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"ID",
"PLT"
]
},
"missi... |
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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | For the male patients that have a normal prothrombin time, what is their average prothrombin time? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AVG(T2.PT) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.PT < 14 AND T1.SEX = 'M'",
"permission": "denied",
"query_columns": {
"patient": [
"ID",
"SEX"
],
"laboratory": [
"ID",
"PT"
]
},
"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... | DataOperator_1 | {
"Laboratory": [
"APTT",
"C3",
"C4",
"CENTROMEA",
"CPK",
"CRP",
"Date",
"FG",
"GPT",
"HCT",
"HGB",
"ID",
"IGG",
"LDH",
"PIC",
"PLT",
"PT",
"RA",
"RBC",
"RF",
"RNP",
"SM",
"SSA",
"SSB",
"T-BIL",
"T-CHO",
"TG",
... | How many patients with severe thrombosis have a normal prothrombin 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 INNER JOIN Examination AS T3 ON T1.ID = T3.ID WHERE T2.PT < 14 AND T3.Thrombosis < 3 AND T3.Thrombosis > 0",
"permission": "denied",
"query_columns": {
"patient": [
"ID"
],
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | Are there more in-patient or outpatient who were male? What is the deviation in percentage? | SELECT CAST(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE SEX = 'M' | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE SEX = 'M'",
"permission": "allowed",
"query_columns": {
"patient": [
"Admission",
"SEX"
]
},
"missing_columns": {},
"reason": "... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the percentage of female patient were born after 1930? | SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Birthday) > '1930' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient WHERE SEX = 'F' | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN STRFTIME('%Y', Birthday) > '1930' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient WHERE SEX = 'F'",
"permission": "allowed",
"query_columns": {
"patient": [
"Birthday",
"SEX"
]
},
"missing_columns": {},
"reason": "All required columns ar... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | For patient born between Year 1930 to 1940, how many percent of them were inpatient? | SELECT CAST(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient WHERE STRFTIME('%Y', Birthday) BETWEEN '1930' AND '1940' | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Patient WHERE STRFTIME('%Y', Birthday) BETWEEN '1930' AND '1940'",
"permission": "allowed",
"query_columns": {
"patient": [
"Admission",
"Birthday"
]
},
"missing_columns": {},
"reas... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the ratio of outpatient to inpatient followed up treatment among all the 'SLE' diagnosed patient? | SELECT SUM(CASE WHEN Admission = '-' THEN 1.0 ELSE 0 END) / NULLIF(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END), 0) FROM Patient WHERE Diagnosis = 'SLE' | moderate | {
"gold_sql": "SELECT SUM(CASE WHEN Admission = '-' THEN 1.0 ELSE 0 END) / NULLIF(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END), 0) FROM Patient WHERE Diagnosis = 'SLE'",
"permission": "allowed",
"query_columns": {
"patient": [
"Admission",
"Diagnosis"
]
},
"missing_columns": {},
"rea... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the disease patient '30609' diagnosed with. List all the date of laboratory tests done for this patient. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Diagnosis, T2.Date FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.ID = 30609",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID"
],
"laboratory": [
"Date",
"ID"
]
},
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | State the sex and birthday of patient ID '163109'. When was the examination taken and what symptom does the patient had. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.SEX, T1.Birthday, T2.`Examination Date`, T2.Symptoms FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.ID = 163109",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID",
"SEX"
],
"examination": [
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | List the patient ID, sex and birthday of patient with LDH beyond normal range. | SELECT DISTINCT T1.ID, T1.SEX, T1.Birthday FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.LDH > 500 | 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.LDH > 500",
"permission": "allowed",
"query_columns": {
"patient": [
"Birthday",
"ID",
"SEX"
],
"laboratory": [
"ID",
"LDH"
]
},
"mis... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | State the ID and age of patient with positive degree of coagulation. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DISTINCT T1.ID, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T1.Birthday) AS Age FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.RVVT = '+'",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | For patients with severe degree of thrombosis, list their ID, sex and disease the patient is diagnosed with. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Diagnosis FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Thrombosis = 2",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID",
"SEX"
],
"examination": [
"ID",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | List all patients who were born in 1937 whose total cholesterol was beyond the normal range. | SELECT DISTINCT T1.ID FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T1.Birthday) = '1937' AND T2.`T-CHO` >= 250 | 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.Birthday) = '1937' AND T2.`T-CHO` >= 250",
"permission": "allowed",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"laboratory": [
"ID",
"T-CHO"
... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | For patient with albumin level lower than 3.5, list their ID, sex and diagnosis. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.ID, T1.SEX, T1.Diagnosis FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.ALB < 3.5",
"permission": "denied",
"query_columns": {
"patient": [
"Diagnosis",
"ID",
"SEX"
],
"laboratory": [
"ALB",
"ID"
]
},
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the percentage of female patient had total protein not within the normal range? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T1.SEX = 'F' AND (T2.TP < 6.0 OR T2.TP > 8.5) THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) 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"
],
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | For in-patients, what is the average IgG concentration measured when they were age 50 or above? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT AVG(T2.`aCL IgG`)\nFROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID \nWHERE STRFTIME('%Y', T2.`Examination Date`) - STRFTIME('%Y', T1.Birthday) >= 50 AND T1.Admission = '+'",
"permission": "denied",
"query_columns": {
"patient": [
"Admission",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | How many female patients who came at the hospital in 1997 was immediately followed at the outpatient clinic? | SELECT COUNT(*) FROM Patient WHERE STRFTIME('%Y', Description) = '1997' AND SEX = 'F' AND Admission = '-' | moderate | {
"gold_sql": "SELECT COUNT(*) FROM Patient WHERE STRFTIME('%Y', Description) = '1997' AND SEX = 'F' AND Admission = '-'",
"permission": "allowed",
"query_columns": {
"patient": [
"Admission",
"Description",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What was the age of the youngest patient when they initially arrived at the hospital? | SELECT MIN(STRFTIME('%Y', `First Date`) - STRFTIME('%Y', Birthday)) FROM Patient | simple | {
"gold_sql": "SELECT MIN(STRFTIME('%Y', `First Date`) - STRFTIME('%Y', Birthday)) FROM Patient",
"permission": "allowed",
"query_columns": {
"patient": [
"Birthday",
"First Date"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1163,
"eviden... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | How many of the patients with the most serious thrombosis cases examined in 1997 are women? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(*) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'F' AND STRFTIME('%Y', T2.`Examination Date`) = '1997' AND T2.Thrombosis = 1",
"permission": "denied",
"query_columns": {
"patient": [
"ID",
"SEX"
],
"examination": [
"Exam... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the age gap between the youngest and oldest patient with a normal triglyceride recorded? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT STRFTIME('%Y', MAX(T1.Birthday)) - STRFTIME('%Y', MIN(T1.Birthday)) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.TG >= 200",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"ID"
],
"laboratory": [
"ID",
"TG"
... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What are the symptoms observed by the youngest patient to ever did a medical examination? Identify their diagnosis. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Symptoms, T1.Diagnosis FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T2.Symptoms IS NOT NULL ORDER BY T1.Birthday DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"patient": [
"Birthday",
"Diagnosis",
"ID"
],
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | For the year that concluded on December 31, 1998, how many male patients on average were tested in the lab each month? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(COUNT(T1.ID) AS REAL) / 12 FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE STRFTIME('%Y', T2.Date) = '1998' AND T1.SEX = 'M'",
"permission": "denied",
"query_columns": {
"patient": [
"ID",
"SEX"
],
"laboratory": [
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the ratio of male to female patients among all those with abnormal uric acid counts? | 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 | 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": "allowed",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | How many patients hadn't undergone a medical examination until at least a year following their initial hospital visit? | 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 T1.Admission = '+' AND JULIANDAY(T2.`Examination Date`) - JULIANDAY(T1.`First Date`) >= 365",
"permission": "denied",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | How many underage patients were examined during the course of the three-year period from 1990 to 1993? | 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 STRFTIME('%Y', T2.`Examination Date`) BETWEEN '1990' AND '1993' AND STRFTIME('%Y', T2.`Examination Date`) - STRFTIME('%Y', T1.Birthday) < 18",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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": {
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What is the average age of patients as of year 1999 examined in the laboratory for the October of the year 1991? | Sorry, I cannot answer. | 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": "denied",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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",
"Examination 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | Was the total cholesterol status for the patient id 2927464 on 1995-9-4 at the normal level? | SELECT CASE WHEN `T-CHO` < 250 THEN 'Normal' ELSE 'Abnormal' END FROM Laboratory WHERE ID = 2927464 AND Date = '1995-09-04' | 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": "allowed",
"query_columns": {
"laboratory": [
"ID",
"T-CHO"
]
},
"missing_columns": {},
"reason": "All required columns are permitted... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | What was the gender of the first AORTITIS diagnosed patient? | SELECT SEX FROM Patient WHERE Diagnosis = 'AORTITIS' AND `First Date` IS NOT NULL ORDER BY `First Date` ASC, ID DESC LIMIT 1 | 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": "allowed",
"query_columns": {
"patient": [
"Diagnosis",
"First Date",
"ID",
"SEX"
]
},
"missing_columns": {},
"reason": ... |
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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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": {
"examination": [
"Diagnosis",
"Examination 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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? | SELECT COUNT(*) FROM Laboratory WHERE ID = ( SELECT ID FROM Patient WHERE `First Date` = '1991-06-13' AND Diagnosis = 'SJS' ) AND STRFTIME('%Y', Date) = '1995' | 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": "allowed",
"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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... | DataOperator_2 | {
"Laboratory": [
"ALP",
"APTT",
"C3",
"C4",
"CPK",
"CRE",
"CRP",
"DNA-II",
"FG",
"GPT",
"HGB",
"ID",
"IGA",
"IGG",
"IGM",
"LDH",
"PIC",
"PLT",
"PT",
"RBC",
"RNP",
"SSA",
"T-CHO",
"TAT",
"TAT2",
"U-PRO",
"UA",
... | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.