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 |
|---|---|---|---|---|---|---|---|
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 does the person with the phone number "809-555-3360" major in? | 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.phone = '809-555-3360'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"member": [
"link_to_major",
"phone"
]
},
"... |
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 event has the highest budget amount? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id ORDER BY T1.amount DESC LIMIT 1",
"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"
]
} | List all the expenses incurred by the vice president. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.expense_id, T2.expense_description\nFROM member AS T1\nINNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member\nWHERE T1.position = 'Vice President';",
"permission": "denied",
"query_columns": {
"expense": [
"expense_description",
"expense_id",
"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"
]
} | How many members attended the "Women's Soccer" event? | SELECT COUNT(T2.link_to_member) 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(T2.link_to_member) 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",
"link_to_member"
],
"event": [
"event_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"
]
} | When did the member, Casey Mason, received the income? | 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 = 'Casey' AND T1.last_name = 'Mason'",
"permission": "denied",
"query_columns": {
"income": [
"date_received",
"link_to_member"
],
"member": [
"fir... |
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 of the members' hometowns are from Maryland state? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T2.member_id)\nFROM zip_code AS T1\nINNER JOIN member AS T2 ON T1.zip_code = T2.zip\nWHERE T1.state = 'Maryland';",
"permission": "denied",
"query_columns": {
"zip_code": [
"state",
"zip_code"
],
"member": [
"member_id",
"zip"
]
},
"missing_c... |
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 did the member with the phone number "954-555-6240" attend? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T2.link_to_event) FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member WHERE T1.phone = '954-555-6240'",
"permission": "denied",
"query_columns": {
"attendance": [
"link_to_event",
"link_to_member"
],
"member": [
"member_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"
]
} | List all the members of the "School of Applied Sciences, Technology and Education" department. | Sorry, I cannot answer. | moderate | {
"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 = 'School of Applied Sciences, Technology and Education'",
"permission": "denied",
"query_columns": {
"major": [
"department",
"major_id"
],
"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"
]
} | Among all the closed events, which event has the highest spend-to-budget ratio? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.status = 'Closed' ORDER BY T1.spent / T1.amount DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"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"
]
} | How many student have the position of president? | SELECT COUNT(member_id) FROM member WHERE position = 'President' | simple | {
"gold_sql": "SELECT COUNT(member_id) FROM member WHERE position = 'President'",
"permission": "allowed",
"query_columns": {
"member": [
"member_id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1377,
"evidence": "'President' is a position of S... |
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 highest amount of budget spend for an event? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT MAX(spent) FROM budget",
"permission": "denied",
"query_columns": {
"budget": [
"spent"
]
},
"missing_columns": {
"budget": [
"spent"
]
},
"reason": "Missing column permissions: budget: spent",
"question_id": 1378,
"evidence": "highest amount of 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"
]
} | How many meeting events were held in 2020? | SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020' | simple | {
"gold_sql": "SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'",
"permission": "allowed",
"query_columns": {
"event": [
"event_date",
"event_id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 137... |
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 amount of money spent for food? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(spent) FROM budget WHERE category = 'Food'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"spent"
]
},
"missing_columns": {
"budget": [
"category",
"spent"
]
},
"reason": "Missing column permissions: budget: category, ... |
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 name of students that have attended more than 7 events. | SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7 | 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 GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7",
"permission": "allowed",
"query_columns": {
"attendance": [
"link_to_event",
"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"
]
} | Among the students majored in interior design, who have attended the Community Theater event? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.first_name, T2.last_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id WHERE T4.event_name = 'Community Theater' AND T1.major_name = 'Interior ... |
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 name of students from Georgetown, South Carolina. | 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.city = 'Georgetown' AND T2.state = 'South Carolina'",
"permission": "denied",
"query_columns": {
"zip_code": [
"city",
"state",
"zip_code"
],
"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"
]
} | How many income generated by Grant Gilmour? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T2.amount) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Grant' AND T1.last_name = 'Gilmour'",
"permission": "denied",
"query_columns": {
"income": [
"amount",
"link_to_member"
],
"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"
]
} | Which students were able to generate income more than $40? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.amount > 40",
"permission": "denied",
"query_columns": {
"income": [
"amount",
"link_to_member"
],
"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 is the total expense for the Yearly Kickoff? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T3.cost) 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 = 'Yearly Kickoff'",
"permission": "denied",
"query_columns": {
"budget": [
"budget_id",
"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 student has been entrusted to manage the budget for the Yearly Kickoff? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T4.first_name, T4.last_name 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 INNER JOIN member AS T4 ON T3.link_to_member = T4.member_id WHERE T1.event_name = 'Yearly Kickoff'",
"permission": "denied",
"qu... |
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 students manage to generate the highest income. State his/her full name along with the income source. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.first_name, T1.last_name, T2.source FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member GROUP BY T1.first_name, T1.last_name, T2.source ORDER BY SUM(T2.amount) DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"income": [
"amount",
"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"
]
} | Which event has the lowest cost? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.event_name 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 ORDER BY T3.cost LIMIT 1",
"permission": "denied",
"query_columns": {
"budget": [
"budget_id",
"link_to_event"
],
"eve... |
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"
]
} | Based on the total cost for all event, what is the percentage of cost for Yearly Kickoff event? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T1.event_name = 'Yearly Kickoff' THEN T3.cost ELSE 0 END) AS REAL) * 100 / SUM(T3.cost) 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",
"permission": "denied",
"query_columns": {
... |
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 ratio of students majoring in finance to those majoring in physics? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN m2.major_name = 'Finance' THEN 1 ELSE 0 END) AS FLOAT) / NULLIF(CAST(SUM(CASE WHEN m2.major_name = 'Physics' THEN 1 ELSE 0 END) AS FLOAT), 0) AS ratio FROM member m1 JOIN major m2 ON m1.link_to_major = m2.major_id",
"permission": "denied",
"query_columns": {
"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"
]
} | Indicate the top source of funds received in September 2019 based on their amount. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"income": [
"date_received"
]
},
"missing_columns": {
"income": [
"date_received"
]
},
"reason": "Missing... |
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 full name and email address of the Student_Club's Secretary. | SELECT first_name, last_name, email FROM member WHERE position = 'Secretary' | simple | {
"gold_sql": "SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'",
"permission": "allowed",
"query_columns": {
"member": [
"email",
"first_name",
"last_name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1393... |
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 major in 'Physics Teaching'? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Physics Teaching'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"major_name"
],
"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"
]
} | How many members did attend the event 'Community Theater' in 2019? | SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Community Theater' AND SUBSTR(T1.event_date, 1, 4) = '2019' | moderate | {
"gold_sql": "SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Community Theater' AND SUBSTR(T1.event_date, 1, 4) = '2019'",
"permission": "allowed",
"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"
]
} | Provide the number of events attended by Luisa Guidi. What is her major? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T3.link_to_event), T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T2.first_name = 'Luisa' AND T2.last_name = 'Guidi'",
"permission": "denied",
"query_columns": {
"attenda... |
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"
]
} | On average, how much did the Student_Club spend on food for the typical event in the past? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"event_status",
"spent"
]
},
"missing_columns": {
"budget": [
"category",
"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"
]
} | Name the event with the highest amount spent on advertisement. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC, T2.event_id ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event",
"spent"
... |
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"
]
} | Did Maya Mclean attend the 'Women's Soccer' event? | SELECT
CASE
WHEN EXISTS (
SELECT 1
FROM member T1
INNER JOIN attendance T2 ON T1.member_id = T2.link_to_member
INNER JOIN event T3 ON T2.link_to_event = T3.event_id
WHERE T1.first_name = 'Maya'
AND T1.last_name = 'Mclean'
... | moderate | {
"gold_sql": "SELECT \n CASE \n WHEN EXISTS (\n SELECT 1 \n FROM member T1\n INNER JOIN attendance T2 ON T1.member_id = T2.link_to_member\n INNER JOIN event T3 ON T2.link_to_event = T3.event_id\n WHERE T1.first_name = 'Maya' \n AND T1.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"
]
} | Among all events hold by the Student_Club in 2019, find the percentage share of events related to 'Community Service' | SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019' | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019'",
"permission": "allowed",
"query_columns": {
"event": [
"event_date"
]
},
"missing_columns": {},
"reason": "All required colum... |
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"
]
} | Indicate the cost of posters for 'September Speaker' event. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.cost 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 = 'September Speaker' AND T3.expense_description = 'Posters'",
"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"
]
} | What is the most popular size of t-shirt ordered by the club members? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT t_shirt_size FROM member GROUP BY t_shirt_size ORDER BY COUNT(t_shirt_size) DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"member": [
"t_shirt_size"
]
},
"missing_columns": {
"member": [
"t_shirt_size"
]
},
"reason": "Missing column permissions... |
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"
]
} | Indicate the name of the closed event whose cost has exceeded the budget the most. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1",
"permission": "denied",
"query_columns": {
"budget": [
"event_status",
"link_to_event",
"remain... |
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"
]
} | Identify the type of expenses and their total value approved for 'October Meeting' event. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.expense_description, SUM(T3.cost) \nFROM event AS T1 \nINNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event \nINNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget \nWHERE T1.event_name = 'October Meeting' AND T3.approved = 'true'\nGROUP BY T3.expense_description",
"permission":... |
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 amount budgeted for 'April Speaker' event. List all the budgeted categories for said event in an ascending order based on their amount budgeted. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"category",
"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"
]
} | Among the budgets for Food, which one has the highest budgeted amount? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT budget_id \nFROM budget \nWHERE category = 'Food' \n AND amount = (SELECT MAX(amount) FROM budget WHERE category = 'Food')",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"budget_id",
"category"
]
},
"missing_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"
]
} | Among the budgets for Advertising, list out top three which have the most budgeted amount? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC, budget_id ASC LIMIT 3",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"budget_id",
"category"
]
},
"missing_columns": {
"budget": [
"amount",
"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 cost spent for Parking in the list. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"expense_description"
]
},
"missing_columns": {
"expense": [
"cost",
"expense_description"
]
},
"reason": "Missing co... |
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"
]
} | Mention the total expense used on 8/20/2019. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"expense_date"
]
},
"missing_columns": {
"expense": [
"cost",
"expense_date"
]
},
"reason": "Missing column permissions: ... |
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 out the full name and total cost that member id "rec4BLdZHS2Blfp4v" incurred? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.first_name, T1.last_name, SUM(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.member_id = 'rec4BLdZHS2Blfp4v'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"link_to_member"
],
"member": [
"f... |
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 what kind of expenses that Sacha Harrison incurred? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'",
"permission": "denied",
"query_columns": {
"expense": [
"expense_description",
"link_to_member"
],
"memb... |
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 kind of expenses incurred by members who have X-Large in size of tee shirt? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.t_shirt_size = 'X-Large'",
"permission": "denied",
"query_columns": {
"expense": [
"expense_description",
"link_to_member"
],
"member": [
"member_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"
]
} | Mention the zip code of members who incurred less than 50USD. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.zip FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.cost < 50",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"link_to_member"
],
"member": [
"member_id",
"zip"
]
},
"missing_columns": {
... |
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 name of major that Phillip Cullen has joined. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.first_name = 'Phillip' AND T2.last_name = 'Cullen'",
"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"
]
} | List out the position of members who joined major of Business. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.position FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business'",
"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"
]
} | How many members of Business have the Medium size of tee shirt? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business' AND T2.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"
]
} | List out the type of events which have remaining budget more than 30 USD. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 30",
"permission": "denied",
"query_columns": {
"budget": [
"link_to_event",
"remaining"
],
"event": [
"event_id",
"type"
]
},
"missing_columns"... |
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"
]
} | Mention the category of events which were held at MU 215. | SELECT type FROM event WHERE location = 'MU 215' | simple | {
"gold_sql": "SELECT type FROM event WHERE location = 'MU 215'",
"permission": "allowed",
"query_columns": {
"event": []
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1418,
"evidence": ""
} |
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 budget categories for the event that took place on 2020-03-24T12:00:00? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_date = '2020-03-24T12:00:00'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event"
],
"event": [
"event_date",
"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"
]
} | State the name of major that Vice President has joined. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.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"
]
} | Calculate the percentage of members who are major Business in the list? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T2.major_name = 'Business' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member'",
"permission": "denied",
"query_columns": {
"major": [
"major_id",
"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"
]
} | State the category of events were held at MU 215. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event"
],
"event": [
"event_id",
"location"
]
}... |
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 income are received with an amount of 50? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(income_id)\nFROM income\nWHERE amount = 50;",
"permission": "denied",
"query_columns": {
"income": [
"amount",
"income_id"
]
},
"missing_columns": {
"income": [
"amount",
"income_id"
]
},
"reason": "Missing column permissions: income: amo... |
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 members, how many of them have an extra large t-shirt size? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'",
"permission": "denied",
"query_columns": {
"member": [
"member_id",
"t_shirt_size"
]
},
"missing_columns": {
"member": [
"t_shirt_size"
]
},
"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"
]
} | In the College of Agriculture and Applied Sciences, how many majors are under the department of School of Applied Sciences, Technology and Education? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"department",
"major_id"
]
},
"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"
]
} | List the last name of members with a major in environmental engineering and include its department and college name. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"department",
... |
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 budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event",
"sp... |
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 city and state of members enrolled under electrical and computer engineering department. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT city, state FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN zip_code AS T3 ON T3.zip_code = T1.zip WHERE department = 'Electrical and Computer Engineering Department' AND position = 'Member'",
"permission": "denied",
"query_columns": {
"zip_code": [
... |
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 name of the social event that was attended by the vice president of the Student_Club located at 900 E. Washington St.? | SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location = '900 E. Washington St.' AND T2.type = 'Social' | challenging | {
"gold_sql": "SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location = '900 E. Washington St.' AND T2.type = 'Social'",
"permission": "allowed",
"query_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"
]
} | What is the last name and position of the student that bought pizza on 09/10/2019? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.last_name, T1.position FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.expense_date = '2019-09-10' AND T2.expense_description = 'Pizza'",
"permission": "denied",
"query_columns": {
"expense": [
"expense_date",
"expense_description",
... |
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 the members of the club that attended the women's soccer event. | SELECT T3.last_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T2.event_name = 'Women''s Soccer' AND T3.position = 'Member' | moderate | {
"gold_sql": "SELECT T3.last_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T2.event_name = 'Women''s Soccer' AND T3.position = 'Member'",
"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"
]
} | Among the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium'",
"permission": "denied",
"query_columns": {
"income": [
... |
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 counties have zip codes with post office boxes? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL",
"permission": "denied",
"query_columns": {
"zip_code": [
"county"
]
},
"missing_columns": {
"zip_code": [
"county"
]
},
"reason": "Missing column permissions: zip_code: county",
... |
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 zip codes that have post office boxes in the country of the country of San Juan Municipio whose state is Puerto Rico? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'",
"permission": "denied",
"query_columns": {
"zip_code": [
"county",
"state",
"zip_code"
]
},
"missing_columns": {
"zip_code": [
"county",
"s... |
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 names of closed event as "game" that was closed from 3/15/2019 to 3/20/2020. | SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed' | moderate | {
"gold_sql": "SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'",
"permission": "allowed",
"query_columns": {
"event": [
"event_date",
"event_name",
"status"
]
},
"missing_columns... |
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 provide links to events for members who have paid more than 50 dollar. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T1.cost > 50",
"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"
]
} | Which members who were approved from 1/10/2019 to 11/19/2019? Please identify the member who attended the event and the link to their event. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT DISTINCT T1.link_to_member, T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE date(SUBSTR(T1.expense_date, 1, 10)) BETWEEN '2019-01-10' AND '2019-11-19' AND T1.approved = 'true'",
... |
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 indicate the college of the person whose first name is Katy with the link to the major "rec1N0upiVLy5esTO". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.link_to_major = 'rec1N0upiVLy5esTO' AND T1.first_name = 'Katy'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"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"
]
} | Please list the phone numbers of the members who majored in business at the College of Agriculture and Applied Sciences. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Business' AND T2.college = 'College of Agriculture and Applied Sciences'",
"permission": "denied",
"query_columns": {
"major": [
"college",
"major_id",
"major_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"
]
} | List emails of people who paid more than 20 dollars from 9/10/2019 to 11/19/2019. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DISTINCT T1.email\nFROM member AS T1\nINNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member\nWHERE date(SUBSTR(T2.expense_date, 1, 10)) BETWEEN '2019-09-10' AND '2019-11-19'\n AND T2.cost > 20;",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"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"
]
} | How many members have education major in the College of Education & Human Services? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member' AND T2.major_name LIKE '%Education%' AND T2.college = 'College of Education & Human Services'",
"permission": "denied",
"query_columns": {
"major": [
"college... |
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 percentage of the events that went over budget? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT \n CAST(COUNT(DISTINCT CASE WHEN b.remaining < 0 THEN b.link_to_event END) AS REAL) \n / COUNT(DISTINCT e.event_id) \n * 100 AS over_budget_event_percentage\nFROM event e\nLEFT JOIN budget b ON e.event_id = b.link_to_event;",
"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"
]
} | Give the event ID, location, and status of events conducted from November 2019 to March 2020. | SELECT event_id, location, status FROM event WHERE date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-11-01' AND '2020-03-31' | simple | {
"gold_sql": "SELECT event_id, location, status FROM event WHERE date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-11-01' AND '2020-03-31'",
"permission": "allowed",
"query_columns": {
"event": [
"event_date",
"event_id",
"location",
"status"
]
},
"missing_columns": {},
"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"
]
} | List the expenses that spend more than fifty dollars on average. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT expense_description FROM expense GROUP BY expense_description HAVING AVG(cost) > 50",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"expense_description"
]
},
"missing_columns": {
"expense": [
"cost",
"expense_description"
]
},
... |
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"
]
} | Find the full name of members whose t-shirt size is extra large. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'",
"permission": "denied",
"query_columns": {
"member": [
"first_name",
"last_name",
"t_shirt_size"
]
},
"missing_columns": {
"member": [
"t_shirt_size"
]
},
"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"
]
} | Calculate the percentage of zip codes that are PO boxes. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN type = 'PO Box' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(zip_code) FROM zip_code",
"permission": "denied",
"query_columns": {
"zip_code": [
"zip_code"
]
},
"missing_columns": {
"zip_code": [
"zip_code"
]
},
"reason": "Missing column per... |
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 name and location of events that underspend its budget. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.event_name, T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 0",
"permission": "denied",
"query_columns": {
"budget": [
"link_to_event",
"remaining"
],
"event": [
"event_id",
"event_nam... |
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"
]
} | Find the name and date of events with expenses for pizza that were more than fifty dollars but less than a hundred dollars. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T1.event_name, T1.event_date 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 T3.expense_description = 'Pizza' AND T3.cost > 50 AND T3.cost < 100",
"permission": "denied",
"query_columns": {
"bud... |
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 name and major of members who had to spend more than a hundred dollars on an expense? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name, T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN expense AS T3 ON T1.member_id = T3.link_to_member WHERE T3.cost > 100",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"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"
]
} | In the events with budget more than forty, list the location at which the event is happening. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.amount > 40",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"link_to_event"
],
"event": [
"event_id",
"location"
]
},
"missi... |
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 members who incurred expenses in more than one event, who paid the most amount? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T2.member_id FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN budget AS T3 ON T1.link_to_budget = T3.budget_id INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id GROUP BY T2.member_id HAVING COUNT(DISTINCT T4.event_id) > 1 ORDER BY SUM(T1.cost) DESC... |
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 amount paid by students in a position other than a member? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN member as T2 ON T1.link_to_member = T2.member_id WHERE T2.position != 'Member'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"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"
]
} | List the name of events with less than average parking cost. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.event_name 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 T2.category = 'Parking' AND T3.cost < (SELECT AVG(cost) FROM expense)",
"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"
]
} | What is the percentage of the cost for the meeting events? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT SUM(CASE WHEN T1.type = 'Meeting' THEN T3.cost ELSE 0 END) * 100 / SUM(T3.cost) 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",
"permission": "denied",
"query_columns": {
"budget": [
"budget_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"
]
} | Which budget allowed the most money for water, chips, and cookies? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.budget_id FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Water, chips, cookies' ORDER BY T1.cost DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"budget": [
"budget_id"
],
"expense": [
"cost"... |
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 top five members who spend the most money in the descending order of spending. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.first_name, T2.last_name FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id GROUP BY T2.member_id, T2.first_name, T2.last_name ORDER BY SUM(T1.cost) DESC LIMIT 5",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"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"
]
} | Give the full name and contact number of members who had to spend more than average on each expense. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT DISTINCT T3.first_name, T3.last_name, T3.phone FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member WHERE T1.cost > ( SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.bud... |
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 in the percentage of members in New Jersey and Vermont. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST((SUM(CASE WHEN T2.state = 'New Jersey' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state = 'Vermont' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip",
"permission": "denied",
"query_columns": {
"zip_code"... |
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 major of Garrett Gerke and which department does it belong to? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.major_name, T2.department FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'",
"permission": "denied",
"query_columns": {
"major": [
"department",
"major_id",
"major_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"
]
} | Write the full name of the member who spent money for water, veggie tray and supplies and include the cost of it. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T2.first_name, T2.last_name, T1.cost FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE T1.expense_description = 'Water, Veggie tray, supplies'",
"permission": "denied",
"query_columns": {
"expense": [
"cost",
"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 the last names of students under the Elementary Education major and include their phone numbers. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.last_name, T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Elementary Education'",
"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 category was budgeted for the 'January Speaker' event and how much was the amount budgeted for that category? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.category, T2.amount FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'January Speaker'",
"permission": "denied",
"query_columns": {
"budget": [
"amount",
"category",
"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"
]
} | List the event names which were budgeted for the food. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.category = 'Food'",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event"
],
"event": [
"event_id",
"event_name"
]
},
"mi... |
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"
]
} | Write the full names of students who received funds on the date of 9/9/2019 and include the amount received. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name, T2.amount \nFROM member AS T1 \nINNER JOIN income AS T2 ON T2.link_to_member = T1.member_id \nWHERE T2.date_received = '2019-09-09'",
"permission": "denied",
"query_columns": {
"income": [
"amount",
"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"
]
} | Which budget category does the expense 'Posters' fall to? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T2.category FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Posters'",
"permission": "denied",
"query_columns": {
"budget": [
"budget_id",
"category"
],
"expense": [
"expense_description",
... |
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"
]
} | Write the full name of the club member with the position of 'Secretary' and list which college the club member belongs to. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Secretary'",
"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"
]
} | Calculate the total amount spent on speaker gifts and list the name of the event they were spent on. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T1.spent), T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Speaker Gifts' GROUP BY T2.event_name",
"permission": "denied",
"query_columns": {
"budget": [
"category",
"link_to_event",
"spent"
],
"e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.