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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | On average, how much did the Student_Club spend on food for the typical event in the past? | SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed' | simple | {
"gold_sql": "SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'",
"permission": "allowed",
"query_columns": {
"budget": [
"category",
"event_status",
"spent"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Name the event with the highest amount spent on advertisement. | 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 | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Indicate the cost of posters for 'September Speaker' event. | 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' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Indicate the name of the closed event whose cost has exceeded the budget the most. | 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 | 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": "allowed",
"query_columns": {
"budget": [
"event_status",
"link_to_event",
"remai... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Identify the type of expenses and their total value approved for 'October Meeting' event. | SELECT T3.expense_description, 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 = 'October Meeting' AND T3.approved = 'true'
GROUP BY T3.expense_description | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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. | 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 | 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": "allowed",
"query_columns": {
"budget": [
"amount",
"category",
"link_... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Among the budgets for Food, which one has the highest budgeted amount? | SELECT budget_id
FROM budget
WHERE category = 'Food'
AND amount = (SELECT MAX(amount) FROM budget WHERE category = 'Food') | simple | {
"gold_sql": "SELECT budget_id \nFROM budget \nWHERE category = 'Food' \n AND amount = (SELECT MAX(amount) FROM budget WHERE category = 'Food')",
"permission": "allowed",
"query_columns": {
"budget": [
"amount",
"budget_id",
"category"
]
},
"missing_columns": {},
"reason": "All r... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Among the budgets for Advertising, list out top three which have the most budgeted amount? | SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC, budget_id ASC LIMIT 3 | simple | {
"gold_sql": "SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC, budget_id ASC LIMIT 3",
"permission": "allowed",
"query_columns": {
"budget": [
"amount",
"budget_id",
"category"
]
},
"missing_columns": {},
"reason": "All required columns are permi... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Calculate the total cost spent for Parking in the list. | SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking' | simple | {
"gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'",
"permission": "allowed",
"query_columns": {
"expense": [
"cost",
"expense_description"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1408,
"evidence": "to... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Mention the total expense used on 8/20/2019. | SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20' | simple | {
"gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'",
"permission": "allowed",
"query_columns": {
"expense": [
"cost",
"expense_date"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1409,
"evidence": "total 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List out the full name and total cost that member id "rec4BLdZHS2Blfp4v" incurred? | 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' | 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": "allowed",
"query_columns": {
"expense": [
"cost",
"link_to_member"
],
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | State what kind of expenses that Sacha Harrison incurred? | 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' | 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": "allowed",
"query_columns": {
"expense": [
"expense_description",
"link_to_member"
],
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List out the type of events which have remaining budget more than 30 USD. | SELECT T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 30 | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What are the budget categories for the event that took place on 2020-03-24T12:00:00? | 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' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | State the category of events were held at MU 215. | 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' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | How many income are received with an amount of 50? | SELECT COUNT(income_id)
FROM income
WHERE amount = 50; | simple | {
"gold_sql": "SELECT COUNT(income_id)\nFROM income\nWHERE amount = 50;",
"permission": "allowed",
"query_columns": {
"income": [
"amount",
"income_id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 1423,
"evidence": "amount of 50 refers to... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent? | 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' | 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": "allowed",
"query_columns": {
"budget": [
"category",
"link_to_event",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What is the last name and position of the student that bought pizza on 09/10/2019? | 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' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Please provide links to events for members who have paid more than 50 dollar. | 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 | 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": "allowed",
"query_columns": {
"attendance": [
"link_to_event",
"link_to_... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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. | 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' | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List emails of people who paid more than 20 dollars from 9/10/2019 to 11/19/2019. | SELECT DISTINCT T1.email
FROM member AS T1
INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member
WHERE date(SUBSTR(T2.expense_date, 1, 10)) BETWEEN '2019-09-10' AND '2019-11-19'
AND T2.cost > 20; | 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": "allowed",
"query_columns": {
"expense": [
"cost",
"expens... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What is the percentage of the events that went over budget? | SELECT
CAST(COUNT(DISTINCT CASE WHEN b.remaining < 0 THEN b.link_to_event END) AS REAL)
/ COUNT(DISTINCT e.event_id)
* 100 AS over_budget_event_percentage
FROM event e
LEFT JOIN budget b ON e.event_id = b.link_to_event; | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List the expenses that spend more than fifty dollars on average. | SELECT expense_description FROM expense GROUP BY expense_description HAVING AVG(cost) > 50 | simple | {
"gold_sql": "SELECT expense_description FROM expense GROUP BY expense_description HAVING AVG(cost) > 50",
"permission": "allowed",
"query_columns": {
"expense": [
"cost",
"expense_description"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List the name and location of events that underspend its budget. | 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 | 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": "allowed",
"query_columns": {
"budget": [
"link_to_event",
"remaining"
],
"event": [
"event_id",
"event_na... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Find the name and date of events with expenses for pizza that were more than fifty dollars but less than a hundred dollars. | 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 | 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": "allowed",
"query_columns": {
"bu... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | In the events with budget more than forty, list the location at which the event is happening. | 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 | 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": "allowed",
"query_columns": {
"budget": [
"amount",
"link_to_event"
],
"event": [
"event_id",
"location"
]
},
"miss... |
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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Among the members who incurred expenses in more than one event, who paid the most amount? | 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 LIMIT 1 | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What is the average amount paid by students in a position other than a member? | 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' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List the name of events with less than average parking cost. | 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) | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What is the percentage of the cost for the meeting events? | 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 | 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": "allowed",
"query_columns": {
"budget": [
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Which budget allowed the most money for water, chips, and cookies? | 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 | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List the full name of the top five members who spend the most money in the descending order of spending. | 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 | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Write the full name of the member who spent money for water, veggie tray and supplies and include the cost of it. | 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' | 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": "allowed",
"query_columns": {
"expense": [
"cost",
"expense_description",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | What category was budgeted for the 'January Speaker' event and how much was the amount budgeted for that category? | 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' | 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": "allowed",
"query_columns": {
"budget": [
"amount",
"category",
"link_to_event"
],
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | List the event names which were budgeted for the food. | 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' | 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": "allowed",
"query_columns": {
"budget": [
"category",
"link_to_event"
],
"event": [
"event_id",
"event_name"
]
},
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Write the full names of students who received funds on the date of 9/9/2019 and include the amount received. | SELECT DISTINCT T1.first_name, T1.last_name, T2.amount
FROM member AS T1
INNER JOIN income AS T2 ON T2.link_to_member = T1.member_id
WHERE T2.date_received = '2019-09-09' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Which budget category does the expense 'Posters' fall to? | 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' | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | 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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Calculate the total amount spent on speaker gifts and list the name of the event they were spent on. | 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 | 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": "allowed",
"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... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Where is the hometown of Garrett Gerke? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.city FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'",
"permission": "denied",
"query_columns": {
"zip_code": [
"city",
"zip_code"
],
"member": [
"first_name",
"last_name",
... |
student_club | ##Instruction:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Database: student_club
Total Tables: 8
Total Columns: 48
Table Schemas:
Table: attendance (2 columns)
-----------------------------
• link_to_event (text): The unique identifier of the event which was attended
Values: Reference... | ClubAdvisor | {
"event": [
"*"
],
"budget": [
"*"
],
"expense": [
"*"
],
"income": [
"*"
],
"member": [
"member_id",
"first_name",
"last_name",
"email",
"position",
"link_to_major"
],
"attendance": [
"*"
]
} | Which student has the hometown of Lincolnton, North Carolina with the zip code of 28092? List their full name and position. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.first_name, T1.last_name, T1.position FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T2.city = 'Lincolnton' AND T2.state = 'North Carolina' AND T2.zip_code = 28092",
"permission": "denied",
"query_columns": {
"zip_code": [
"city",
"state",
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Please list all the superpowers of 3-D Man. | SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = '3-D Man' | simple | {
"gold_sql": "SELECT T3.power_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T1.superhero_name = '3-D Man'",
"permission": "allowed",
"query_columns": {
"hero_power": [
"hero_id",
"power_id"
],
"superher... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many superheroes have the super power of "Super Strength"? | SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Super Strength' | simple | {
"gold_sql": "SELECT COUNT(T1.hero_id) FROM hero_power AS T1 INNER JOIN superpower AS T2 ON T1.power_id = T2.id WHERE T2.power_name = 'Super Strength'",
"permission": "allowed",
"query_columns": {
"hero_power": [
"hero_id",
"power_id"
],
"superpower": [
"id",
"power_name"
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Among the superheroes with the super power of "Super Strength", how many of them have a height of over 200cm? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.height_cm > 200 | moderate | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.height_cm > 200",
"permission": "allowed",
"query_columns": {
"hero_power": [
"hero_id",
"power... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Please list the full names of all the superheroes with over 15 super powers. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.full_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id GROUP BY T1.full_name HAVING COUNT(T2.power_id) > 15",
"permission": "denied",
"query_columns": {
"hero_power": [
"hero_id",
"power_id"
],
"superhero": [
"full_name",
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many superheroes have blue eyes? | SELECT COUNT(T1.id)
FROM superhero AS T1
INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id
WHERE T2.colour = 'Blue'; | simple | {
"gold_sql": "SELECT COUNT(T1.id)\nFROM superhero AS T1\nINNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id\nWHERE T2.colour = 'Blue';",
"permission": "allowed",
"query_columns": {
"superhero": [
"eye_colour_id",
"id"
],
"colour": [
"colour",
"id"
]
},
"missing_column... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | What is the colour of Apocalypse's skin? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id WHERE T1.superhero_name = 'Apocalypse'",
"permission": "denied",
"query_columns": {
"superhero": [
"skin_colour_id",
"superhero_name"
],
"colour": [
"colour",
"id"
]
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Among the superheroes with blue eyes, how many of them have the super power of "Agility"? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue' | moderate | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue'",
"permission": "allowed",
"query_columns": {
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Please list the superhero names of all the superheroes that have blue eyes and blond hair. | SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Blond' | challenging | {
"gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T2.colour = 'Blue' AND T3.colour = 'Blond'",
"permission": "allowed",
"query_columns": {
"superhero": [
"eye_colour_id",
"hair... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many superheroes are published by Marvel Comics? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics' | simple | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics'",
"permission": "allowed",
"query_columns": {
"superhero": [
"id",
"publisher_id"
],
"publisher": [
"id",
"publisher_name"
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Rank heroes published by Marvel Comics by their height in descending order. | SELECT superhero_name, height_cm, RANK() OVER (ORDER BY height_cm DESC) AS HeightRank FROM superhero INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics' | moderate | {
"gold_sql": "SELECT superhero_name, height_cm, RANK() OVER (ORDER BY height_cm DESC) AS HeightRank FROM superhero INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics'",
"permission": "allowed",
"query_columns": {
"superhero": [
"height_cm",
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Who is the publisher of Sauron? | SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Sauron' | simple | {
"gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Sauron'",
"permission": "allowed",
"query_columns": {
"superhero": [
"publisher_id",
"superhero_name"
],
"publisher": [
"id",
"publisher... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Rank superheroes from Marvel Comics by their eye color popularity, starting with the most common color. | SELECT colour.colour AS EyeColor, COUNT(superhero.id) AS Count, RANK() OVER (ORDER BY COUNT(superhero.id) DESC) AS PopularityRank FROM superhero INNER JOIN colour ON superhero.eye_colour_id = colour.id INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marvel Comics' GROUP B... | moderate | {
"gold_sql": "SELECT colour.colour AS EyeColor, COUNT(superhero.id) AS Count, RANK() OVER (ORDER BY COUNT(superhero.id) DESC) AS PopularityRank FROM superhero INNER JOIN colour ON superhero.eye_colour_id = colour.id INNER JOIN publisher ON superhero.publisher_id = publisher.id WHERE publisher.publisher_name = 'Marve... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | What is the average height of the superheroes from Marvel Comics? | SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics' | simple | {
"gold_sql": "SELECT AVG(T1.height_cm) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Marvel Comics'",
"permission": "allowed",
"query_columns": {
"superhero": [
"height_cm",
"publisher_id"
],
"publisher": [
"id",
"publish... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | List the superheroes from Marvel Comics who have the super power of 'Super Strength'. | SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_power AS T2 INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.id = T2.hero_id)AND EXISTS (SELECT 1 FROM publisher AS T4 WHERE T4.publisher_name = 'Marvel Comics' AND T1.publisher_id = T4.id) | challenging | {
"gold_sql": "SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_power AS T2 INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Super Strength' AND T1.id = T2.hero_id)AND EXISTS (SELECT 1 FROM publisher AS T4 WHERE T4.publisher_name = 'Marvel Comics' AND T1.publisher_i... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many superheroes did DC Comics publish? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'DC Comics' | simple | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'DC Comics'",
"permission": "allowed",
"query_columns": {
"superhero": [
"id",
"publisher_id"
],
"publisher": [
"id",
"publisher_name"
]
... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Which publisher published the slowest superhero? | SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id INNER JOIN attribute AS T4 ON T3.attribute_id = T4.id WHERE T4.attribute_name = 'Speed' ORDER BY T3.attribute_value LIMIT 1 | moderate | {
"gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id INNER JOIN attribute AS T4 ON T3.attribute_id = T4.id WHERE T4.attribute_name = 'Speed' ORDER BY T3.attribute_value LIMIT 1",
"permission": "allowe... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many gold-eyed superheroes did Marvel Comics publish? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Gold' | moderate | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN colour AS T3 ON T1.eye_colour_id = T3.id WHERE T2.publisher_name = 'Marvel Comics' AND T3.colour = 'Gold'",
"permission": "allowed",
"query_columns": {
"superhero": [
"eye_colour_id",... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | What is the publisher's name of Blue Beetle II? | SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Blue Beetle II' | simple | {
"gold_sql": "SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Blue Beetle II'",
"permission": "allowed",
"query_columns": {
"superhero": [
"publisher_id",
"superhero_name"
],
"publisher": [
"id",
"p... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many superheroes with blonde hair are there? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour = 'Blond' | simple | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.hair_colour_id = T2.id WHERE T2.colour = 'Blond'",
"permission": "allowed",
"query_columns": {
"superhero": [
"hair_colour_id",
"id"
],
"colour": [
"colour",
"id"
]
},
"missing_columns... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Who is the dumbest superhero? | SELECT T1.superhero_name
FROM superhero AS T1
INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id
INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id
WHERE T3.attribute_name = 'Intelligence'
ORDER BY T2.attribute_value ASC, T1.id ASC
LIMIT 1 | moderate | {
"gold_sql": "SELECT T1.superhero_name \nFROM superhero AS T1 \nINNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id \nINNER JOIN attribute AS T3 ON T2.attribute_id = T3.id \nWHERE T3.attribute_name = 'Intelligence' \nORDER BY T2.attribute_value ASC, T1.id ASC \nLIMIT 1",
"permission": "allowed",
"query_columns... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | What is Copycat's race? | SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'Copycat' | simple | {
"gold_sql": "SELECT T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.superhero_name = 'Copycat'",
"permission": "allowed",
"query_columns": {
"superhero": [
"race_id",
"superhero_name"
],
"race": [
"id",
"race"
]
},
"missing_columns": ... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | Which superheroes have a durability attribute value of less than 50? | SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_attribute AS T2 INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Durability' AND T2.attribute_value < 50 AND T1.id = T2.hero_id) | simple | {
"gold_sql": "SELECT superhero_name FROM superhero AS T1 WHERE EXISTS (SELECT 1 FROM hero_attribute AS T2 INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T3.attribute_name = 'Durability' AND T2.attribute_value < 50 AND T1.id = T2.hero_id)",
"permission": "allowed",
"query_columns": {
"superhero":... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | What are the names of the superheroes with the power of death touch? | SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Death Touch' | moderate | {
"gold_sql": "SELECT T1.superhero_name FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id WHERE T3.power_name = 'Death Touch'",
"permission": "allowed",
"query_columns": {
"hero_power": [
"hero_id",
"power_id"
],
"supe... |
superhero | ##Instruction:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Database: superhero
Total Tables: 10
Total Columns: 31
Table Schemas:
Table: alignment (2 columns)
----------------------------
• id (integer): the unique identifier of the alignment
• alignment (text): the alignment of the superhe... | DataAnalyst | {
"superhero": [
"id",
"superhero_name",
"gender_id",
"eye_colour_id",
"hair_colour_id",
"race_id",
"publisher_id",
"alignment_id",
"height_cm",
"weight_kg"
],
"alignment": [
"*"
],
"attribute": [
"*"
],
"colour": [
"*"
],
"gender": [
"*"
],
... | How many female superheroes have a strength value of 100? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender = 'Female' | moderate | {
"gold_sql": "SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id INNER JOIN gender AS T4 ON T1.gender_id = T4.id WHERE T3.attribute_name = 'Strength' AND T2.attribute_value = 100 AND T4.gender = 'Female'",
"permission... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.