db_id stringclasses 11
values | instruction stringlengths 1.63k 14k | role stringclasses 45
values | policy unknown | input stringlengths 23 477 | output stringlengths 23 2.22k | difficulty stringclasses 3
values | metadata dict |
|---|---|---|---|---|---|---|---|
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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": {
"labo... |
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | Among the patients who 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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"
],
"laboratory": [
"CRE",
"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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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": {
"laboratory": [
"CRE",
"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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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"
],
"laboratory": [
"ID",
... |
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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"
],
"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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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": {
"laboratory": [
"CPK",
"ID"
],
"examination": [
"ID",
"Thrombosis"
]
},
"missin... |
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | For 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"
],
"laboratory": ... |
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | When is the 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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"
],
"laboratory": [
"GLU",
... |
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | How many patients 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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": {
"laborato... |
thrombosis_prediction | ##Instruction:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Database: thrombosis_prediction
Total Tables: 3
Total Columns: 64
Table Schemas:
Table: Examination (13 columns)
-------------------------------
• ID (integer): identification of the patient
• Examination Date (date): Ex... | PatientCoordinator | {
"Examination": [
"ID",
"Examination Date"
],
"Patient": [
"ID",
"SEX",
"Birthday",
"Description",
"First Date",
"Admission"
],
"Laboratory": [
"ID",
"Date"
]
} | 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"
],
"laboratory": [
"I... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What's Angela Sanders's major? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Angela' AND T1.last_name = 'Sanders'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"first_name",
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many students in the Student_Club are from the College of Engineering? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college = 'College of Engineering'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"major_id"
],
"member": [
"link_to_major",
"member... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Please list the full names of the students in the Student_Club that come from the Art and Design Department. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Art and Design Department'",
"permission": "denied",
"query_columns": {
"major": [
"department",
"major_id"
],
"member": [
"first_name",... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many students of the Student_Club have attended the event "Women's Soccer"? | SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer' | simple | {
"gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event"
],
"event": [
"event_id",
"event_name"
]
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Please list the phone numbers of the students from the Student_Club that has attended the event "Women's Soccer". | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.phone FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer'",
"permission": "denied",
"query_columns": {
"attendance": [
"link_to_event",
"link_to_m... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Among the students from the Student_Club who attended the event "Women's Soccer", how many of them want a T-shirt that's in medium size? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(DISTINCT T3.member_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer' AND T3.t_shirt_size = 'Medium'",
"permission": "denied",
"query_columns": {
"att... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the event that has the highest attendance of the students from the Student_Club? | SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_name ORDER BY COUNT(T2.link_to_event) DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_name ORDER BY COUNT(T2.link_to_event) DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event"
],
"event": [
"event_id",
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Which college is the vice president of the Student_Club from? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position LIKE 'vice president'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"major_id"
],
"member": [
"link_to_major",
"position"
]
}... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Please list the event names of all the events attended by Maya Mclean. | SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Maya' AND T3.last_name = 'Mclean' | simple | {
"gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Maya' AND T3.last_name = 'Mclean'",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_e... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many events of the Student_Club did Sacha Harrison attend in 2019? | SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019' | moderate | {
"gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019'",
"permission": "allowed",
"query... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Among the events attended by more than 10 members of the Student_Club, how many of them are meetings? | SELECT COUNT(*) AS meeting_events_over_10
FROM event AS e
WHERE e.type = 'Meeting'
AND (SELECT COUNT(*)
FROM attendance AS a
WHERE a.link_to_event = e.event_id) > 10; | moderate | {
"gold_sql": "SELECT COUNT(*) AS meeting_events_over_10\nFROM event AS e\nWHERE e.type = 'Meeting'\n AND (SELECT COUNT(*) \n FROM attendance AS a \n WHERE a.link_to_event = e.event_id) > 10;",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event"
],
"event": [... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | List all the names of events that had an attendance of over 20 students but were not fundraisers. | SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type != 'Fundraiser' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20 | moderate | {
"gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type != 'Fundraiser' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event"
],
"event": [
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the average attendance of meetings in 2020? | SELECT CAST(COUNT(T2.link_to_event) AS REAL) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type = 'Meeting' | moderate | {
"gold_sql": "SELECT CAST(COUNT(T2.link_to_event) AS REAL) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type = 'Meeting'",
"permission": "allowed",
"query_columns": {
"attendance": [
"... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the most expensive item that was spent in support of club events? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT expense_description FROM expense ORDER BY cost DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"expense_description"
]
},
"missing_columns": {
"expense": [
"cost",
"expense_description"
]
},
"reason": "Missing col... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many members of the Student_Club have majored Environmental Engineering?
| Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Environmental Engineering'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"link_to_major",
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | List the full name of all the members of the Student_Club who attended the "Laugh Out Loud" event. | SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T3.event_name = 'Laugh Out Loud' | moderate | {
"gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T3.event_name = 'Laugh Out Loud'",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | List the last name of all the students who majored Law and Constitutional Studies.
| Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Law and Constitutional Studies'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"last_name",
"lin... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What county did Sherri Ramsey grew up? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.county FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sherri' AND T1.last_name = 'Ramsey'",
"permission": "denied",
"query_columns": {
"zip_code": [
"county",
"zip_code"
],
"member": [
"first_name",
"last_name... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What college offers the major that Tyler Hewitt took? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Tyler' AND T1.last_name = 'Hewitt'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"major_id"
],
"member": [
"first_name",
"last... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the amount of the funds that the Vice President received? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.amount\nFROM member AS T1\nINNER JOIN income AS T2 ON T1.member_id = T2.link_to_member\nWHERE T1.position = 'Vice President';",
"permission": "denied",
"query_columns": {
"income": [
"amount",
"link_to_member"
],
"member": [
"member_id",
"position"
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How much did the Student_Club members spend on food in the September Meeting? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Food'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event",
"spent"
],
"event": [
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the hometown city and state of the Student Club President? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.city, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.position = 'President'",
"permission": "denied",
"query_columns": {
"zip_code": [
"city",
"state",
"zip_code"
],
"member": [
"position",
"zip"
]
},
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | List the full name of the Student_Club members that grew up in Illinois state. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Illinois'",
"permission": "denied",
"query_columns": {
"zip_code": [
"state",
"zip_code"
],
"member": [
"first_name",
"last_name",
"zip"... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How much did the Student_Club members spend on advertisement in September Meeting? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Advertisement'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event",
"spent"
],
"even... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What department offers the major that Pierce and Guidi took? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.last_name = 'Pierce' OR T1.last_name = 'Guidi'",
"permission": "denied",
"query_columns": {
"major": [
"department",
"major_id"
],
"member": [
"last_name",
"l... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the total budgeted amount for all category in "October Speaker" event? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T2.amount) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'October Speaker'",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"link_to_event"
],
"event": [
"event_id",
"event_name"
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Was each expense in October Meeting on October 8, 2019 approved? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.approved FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T1.event_date LIKE '2019-10-08%'",
"permission": "denied",
"query_columns": {
"budget": [
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Calculate the total average cost that Elijah Allen spent in the events on September and October. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')",
"permission": "denied",
"query_columns": {
"expense":... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Calculate the difference of the total amount spent in all events by the Student_Club in year 2019 and 2020. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2019' THEN T2.spent ELSE 0 END) - SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2020' THEN T2.spent ELSE 0 END) AS num FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event",
"permission": "denied",
"query_columns": {
"budg... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Give the location for "Spring Budget Review". | SELECT location FROM event WHERE event_name = 'Spring Budget Review' | simple | {
"gold_sql": "SELECT location FROM event WHERE event_name = 'Spring Budget Review'",
"permission": "allowed",
"query_columns": {
"event": [
"event_name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1341,
"evidence": "'Spring Budget Review' is ... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What was the cost for the "Posters" on 2019/9/4? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT cost FROM expense WHERE expense_description = 'Posters' AND expense_date = '2019-09-04'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"expense_date",
"expense_description"
]
},
"missing_columns": {
"expense": [
"cost",
"expens... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | With the biggest budget for the "Food", what was the remaining of it? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT remaining FROM budget WHERE category = 'Food' AND amount = ( SELECT MAX(amount) FROM budget WHERE category = 'Food' )",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"category",
"remaining"
]
},
"missing_columns": {
"budget": [
"amou... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What was the notes of the fundraising on 2019/9/14? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT notes FROM income WHERE source = 'Fundraising' AND date_received = '2019-09-14'",
"permission": "denied",
"query_columns": {
"income": [
"date_received",
"notes"
]
},
"missing_columns": {
"income": [
"date_received",
"notes"
]
},
"reason": "Mis... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many majors are there in "College of Humanities and Social Sciences"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(major_name) FROM major WHERE college = 'College of Humanities and Social Sciences'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"major_name"
]
},
"missing_columns": {
"major": [
"college",
"major_name"
]
},
"reason":... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Tell the phone number of "Carlo Jacobs". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT phone FROM member WHERE first_name = 'Carlo' AND last_name = 'Jacobs'",
"permission": "denied",
"query_columns": {
"member": [
"first_name",
"last_name",
"phone"
]
},
"missing_columns": {
"member": [
"phone"
]
},
"reason": "Missing column permi... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Tell the hometown county for "Adela O'Gallagher". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.county FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Adela' AND T1.last_name = 'O''Gallagher'",
"permission": "denied",
"query_columns": {
"zip_code": [
"county",
"zip_code"
],
"member": [
"first_name",
"last... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | For all the budgets for "November Meeting", how many of them had exceeded the budget? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T2.event_id) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Meeting' AND T1.remaining < 0",
"permission": "denied",
"query_columns": {
"budget": [
"link_to_event",
"remaining"
],
"event": [
"event... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Provide the total number of the budget amount for "September Speaker" event. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'September Speaker'",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"link_to_event"
],
"event": [
"event_id",
"event_name"
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the status of the event which bought "Post Cards, Posters" on 2019/8/20? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description = 'Post Cards, Posters' AND T2.expense_date = '2019-08-20'",
"permission": "denied",
"query_columns": {
"budget": [
"budget_id",
"event_status"
],
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What was Brent Thomason's major? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Brent' AND T1.last_name = 'Thomason'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"first_name",
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | For all the club members from "Business" major, how many of them wear medium size t-shirt? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"link_t... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What's Christof Nielson's zip code type? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.type FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Christof' AND T1.last_name = 'Nielson'",
"permission": "denied",
"query_columns": {
"zip_code": [
"type",
"zip_code"
],
"member": [
"first_name",
"last_name"... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | State the major name for the Vice President of the club. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'Vice President'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"link_to_major",
"position"
]
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Where is the hometown state for "Sacha Harrison"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'",
"permission": "denied",
"query_columns": {
"zip_code": [
"state",
"zip_code"
],
"member": [
"first_name",
"last_name"... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Which department was the President of the club in? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'",
"permission": "denied",
"query_columns": {
"major": [
"department",
"major_id"
],
"member": [
"link_to_major",
"position"
]
},
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | State the date Connor Hilton paid his/her dues. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Connor' AND T1.last_name = 'Hilton' AND T2.source = 'Dues'",
"permission": "denied",
"query_columns": {
"income": [
"date_received",
"link_to_member",
"... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Who was the first one paid his/her dues? Tell the full name. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.first_name, T1.last_name\nFROM member AS T1\nINNER JOIN income AS T2 ON T1.member_id = T2.link_to_member\nWHERE T2.source = 'Dues'\nORDER BY T2.date_received ASC, T1.member_id ASC\nLIMIT 1;",
"permission": "denied",
"query_columns": {
"income": [
"date_received",
"link_to_... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many times was the budget in Advertisement for "Yearly Kickoff" meeting more than "October Meeting"? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T2.event_name = 'Yearly Kickoff' THEN T1.amount ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.event_name = 'October Meeting' THEN T1.amount ELSE 0 END) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' AND T2.type = 'Meeti... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What percentage was the budget for Parking to the total budget for the "November Speaker"? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T1.category = 'Parking' THEN T1.amount ELSE 0 END) AS REAL) * 100 / SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Speaker'",
"permission": "denied",
"query_columns": {
"budget": [
"amount... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What is the total cost of the pizzas for all the events? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"expense_description"
]
},
"missing_columns": {
"expense": [
"cost",
"expense_description"
]
},
"reason": "Missing colu... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | How many cities are there in Orange County, Virginia? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'",
"permission": "denied",
"query_columns": {
"zip_code": [
"city",
"county",
"state"
]
},
"missing_columns": {
"zip_code": [
"city",
"county",
"state"
]
}... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | List all of the College of Humanities and Social Sciences' departments. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT department FROM major WHERE college = 'College of Humanities and Social Sciences'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"department"
]
},
"missing_columns": {
"major": [
"college",
"department"
]
},
"reason... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Where is Amy Firth's hometown? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.city, T2.county, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Amy' AND T1.last_name = 'Firth'",
"permission": "denied",
"query_columns": {
"zip_code": [
"city",
"county",
"state",
"zip_code"
],
"mem... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | What are the expenses of the budget with the lowest remaining? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.expense_description FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget ORDER BY T1.remaining LIMIT 1",
"permission": "denied",
"query_columns": {
"budget": [
"budget_id",
"remaining"
],
"expense": [
"expense_description",
"li... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | List all the members who attended the event "October Meeting". | SELECT DISTINCT T3.member_id FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'October Meeting' | simple | {
"gold_sql": "SELECT DISTINCT T3.member_id FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'October Meeting'",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event",
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | EventCoordinator | {
"event": [
"event_id",
"event_name",
"event_date",
"type",
"location",
"status"
],
"attendance": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position"
]
} | Which college do most of the members go to? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id GROUP BY T2.college ORDER BY COUNT(T2.college) DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"major": [
"college",
"major_id"
],
"member": [
"link_to_major"
]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.