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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
For all the club members from "Business" major, how many of them wear medium size t-shirt?
SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'
moderate
{ "gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'", "permission": "allowed", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What's Christof Nielson's zip code type?
SELECT T2.type FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Christof' AND T1.last_name = 'Nielson'
simple
{ "gold_sql": "SELECT T2.type FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Christof' AND T1.last_name = 'Nielson'", "permission": "allowed", "query_columns": { "zip_code": [ "type", "zip_code" ], "member": [ "first_name", "last_name...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State the major name for the Vice President of the club.
SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'Vice President'
simple
{ "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'Vice President'", "permission": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Where is the hometown state for "Sacha Harrison"?
SELECT T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'
simple
{ "gold_sql": "SELECT T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'", "permission": "allowed", "query_columns": { "zip_code": [ "state", "zip_code" ], "member": [ "first_name", "last_name...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which department was the President of the club in?
SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'
simple
{ "gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'", "permission": "allowed", "query_columns": { "major": [ "department", "major_id" ], "member": [ "link_to_major", "position" ] },...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State the date Connor Hilton paid his/her dues.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Connor' AND T1.last_name = 'Hilton' AND T2.source = 'Dues'", "permission": "denied", "query_columns": { "income": [ "date_received", "link_to_member", "...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Who was the first one paid his/her dues? Tell the full name.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name\nFROM member AS T1\nINNER JOIN income AS T2 ON T1.member_id = T2.link_to_member\nWHERE T2.source = 'Dues'\nORDER BY T2.date_received ASC, T1.member_id ASC\nLIMIT 1;", "permission": "denied", "query_columns": { "income": [ "date_received", "link_to_...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many times was the budget in Advertisement for "Yearly Kickoff" meeting more than "October Meeting"?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.event_name = 'Yearly Kickoff' THEN T1.amount ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.event_name = 'October Meeting' THEN T1.amount ELSE 0 END) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' AND T2.type = 'Meeti...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What percentage was the budget for Parking to the total budget for the "November Speaker"?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.category = 'Parking' THEN T1.amount ELSE 0 END) AS REAL) * 100 / SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Speaker'", "permission": "denied", "query_columns": { "budget": [ "amount...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the total cost of the pizzas for all the events?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": { "expense": [ "cost", "expense_description" ] }, "reason": "Missing colu...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many cities are there in Orange County, Virginia?
SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'
simple
{ "gold_sql": "SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'", "permission": "allowed", "query_columns": { "zip_code": [ "city", "county", "state" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List all of the College of Humanities and Social Sciences' departments.
SELECT DISTINCT department FROM major WHERE college = 'College of Humanities and Social Sciences'
simple
{ "gold_sql": "SELECT DISTINCT department FROM major WHERE college = 'College of Humanities and Social Sciences'", "permission": "allowed", "query_columns": { "major": [ "college", "department" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Where is Amy Firth's hometown?
SELECT T2.city, T2.county, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Amy' AND T1.last_name = 'Firth'
simple
{ "gold_sql": "SELECT T2.city, T2.county, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Amy' AND T1.last_name = 'Firth'", "permission": "allowed", "query_columns": { "zip_code": [ "city", "county", "state", "zip_code" ], "me...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What are the expenses of the budget with the lowest remaining?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.expense_description FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget ORDER BY T1.remaining LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "budget_id", "remaining" ], "expense": [ "expense_description", "li...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List all the members who attended the event "October Meeting".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T3.member_id FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'October Meeting'", "permission": "denied", "query_columns": { "attendance": [ "link_to_event", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which college do most of the members go to?
SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id GROUP BY T2.college ORDER BY COUNT(T2.college) DESC LIMIT 1
simple
{ "gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id GROUP BY T2.college ORDER BY COUNT(T2.college) DESC LIMIT 1", "permission": "allowed", "query_columns": { "major": [ "college", "major_id" ], "member": [ "link_to_major" ] ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What does the person with the phone number "809-555-3360" major in?
SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.phone = '809-555-3360'
simple
{ "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.phone = '809-555-3360'", "permission": "allowed", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_to_major", "phone" ] }, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which event has the highest budget amount?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id ORDER BY T1.amount DESC LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "amount", "link_to_event" ], "event": [ "event_id", "event_name" ] }, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List all the expenses incurred by the vice president.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.expense_id, T2.expense_description\nFROM member AS T1\nINNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member\nWHERE T1.position = 'Vice President';", "permission": "denied", "query_columns": { "expense": [ "expense_description", "expense_id", "link_to_member" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many members attended the "Women's Soccer" event?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", "permission": "denied", "query_columns": { "attendance": [ "link_to_event", "link_to_member" ], "event": [ "event_id...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
When did the member, Casey Mason, received the income?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Casey' AND T1.last_name = 'Mason'", "permission": "denied", "query_columns": { "income": [ "date_received", "link_to_member" ], "member": [ "fir...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many of the members' hometowns are from Maryland state?
SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state = 'Maryland';
simple
{ "gold_sql": "SELECT COUNT(T2.member_id)\nFROM zip_code AS T1\nINNER JOIN member AS T2 ON T1.zip_code = T2.zip\nWHERE T1.state = 'Maryland';", "permission": "allowed", "query_columns": { "zip_code": [ "state", "zip_code" ], "member": [ "member_id", "zip" ] }, "missing_...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many events did the member with the phone number "954-555-6240" attend?
SELECT COUNT(T2.link_to_event) FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member WHERE T1.phone = '954-555-6240'
simple
{ "gold_sql": "SELECT COUNT(T2.link_to_event) FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member WHERE T1.phone = '954-555-6240'", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event", "link_to_member" ], "member": [ "member_id", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List all the members of the "School of Applied Sciences, Technology and Education" department.
SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'", "permission": "allowed", "query_columns": { "major": [ "department", "major_id" ], "me...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among all the closed events, which event has the highest spend-to-budget ratio?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.status = 'Closed' ORDER BY T1.spent / T1.amount DESC LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "amount", "link_to_event", "spent" ], "event":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many student have the position of president?
SELECT COUNT(member_id) FROM member WHERE position = 'President'
simple
{ "gold_sql": "SELECT COUNT(member_id) FROM member WHERE position = 'President'", "permission": "allowed", "query_columns": { "member": [ "member_id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1377, "evidence": "'President' is a position of S...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the highest amount of budget spend for an event?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT MAX(spent) FROM budget", "permission": "denied", "query_columns": { "budget": [ "spent" ] }, "missing_columns": { "budget": [ "spent" ] }, "reason": "Missing column permissions: budget: spent", "question_id": 1378, "evidence": "highest amount of budget...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many meeting events were held in 2020?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'", "permission": "denied", "query_columns": { "event": [ "event_date", "event_id" ] }, "missing_columns": { "event": [ "event_date", "event_id" ] }, "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the total amount of money spent for food?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(spent) FROM budget WHERE category = 'Food'", "permission": "denied", "query_columns": { "budget": [ "category", "spent" ] }, "missing_columns": { "budget": [ "category", "spent" ] }, "reason": "Missing column permissions: budget: category, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the name of students that have attended more than 7 events.
SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event", "link_to_member" ], ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among the students majored in interior design, who have attended the Community Theater event?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.first_name, T2.last_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id WHERE T4.event_name = 'Community Theater' AND T1.major_name = 'Interior ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State the name of students from Georgetown, South Carolina.
SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Georgetown' AND T2.state = 'South Carolina'
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Georgetown' AND T2.state = 'South Carolina'", "permission": "allowed", "query_columns": { "zip_code": [ "city", "state", "zip_code" ], "member": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many income generated by Grant Gilmour?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T2.amount) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Grant' AND T1.last_name = 'Gilmour'", "permission": "denied", "query_columns": { "income": [ "amount", "link_to_member" ], "member": [ "first_name...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which students were able to generate income more than $40?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.amount > 40", "permission": "denied", "query_columns": { "income": [ "amount", "link_to_member" ], "member": [ "first_name", "last_name", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the total expense for the Yearly Kickoff?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'Yearly Kickoff'", "permission": "denied", "query_columns": { "budget": [ "budget_id", "link_to_event" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which student has been entrusted to manage the budget for the Yearly Kickoff?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T4.first_name, T4.last_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget INNER JOIN member AS T4 ON T3.link_to_member = T4.member_id WHERE T1.event_name = 'Yearly Kickoff'", "permission": "denied", "qu...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which students manage to generate the highest income. State his/her full name along with the income source.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name, T2.source FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member GROUP BY T1.first_name, T1.last_name, T2.source ORDER BY SUM(T2.amount) DESC LIMIT 1", "permission": "denied", "query_columns": { "income": [ "amount", "link_t...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which event has the lowest cost?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget ORDER BY T3.cost LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "budget_id", "link_to_event" ], "eve...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Based on the total cost for all event, what is the percentage of cost for Yearly Kickoff event?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.event_name = 'Yearly Kickoff' THEN T3.cost ELSE 0 END) AS REAL) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget", "permission": "denied", "query_columns": { ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the ratio of students majoring in finance to those majoring in physics?
SELECT CAST(SUM(CASE WHEN m2.major_name = 'Finance' THEN 1 ELSE 0 END) AS FLOAT) / NULLIF(CAST(SUM(CASE WHEN m2.major_name = 'Physics' THEN 1 ELSE 0 END) AS FLOAT), 0) AS ratio FROM member m1 JOIN major m2 ON m1.link_to_major = m2.major_id
simple
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN m2.major_name = 'Finance' THEN 1 ELSE 0 END) AS FLOAT) / NULLIF(CAST(SUM(CASE WHEN m2.major_name = 'Physics' THEN 1 ELSE 0 END) AS FLOAT), 0) AS ratio FROM member m1 JOIN major m2 ON m1.link_to_major = m2.major_id", "permission": "allowed", "query_columns": { "major": ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Indicate the top source of funds received in September 2019 based on their amount.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1", "permission": "denied", "query_columns": { "income": [ "date_received" ] }, "missing_columns": { "income": [ "date_received" ] }, "reason": "Missing...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Provide the full name and email address of the Student_Club's Secretary.
SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'
simple
{ "gold_sql": "SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'", "permission": "allowed", "query_columns": { "member": [ "email", "first_name", "last_name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1393...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many members of the Student_Club have major in 'Physics Teaching'?
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'
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": "allowed", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_to_major", "membe...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many members did attend the event 'Community Theater' in 2019?
Sorry, I cannot answer.
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": "denied", "query_columns": { "attendance": [ "link_to_event", "link_to_me...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Provide the number of events attended by Luisa Guidi. What is her major?
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'
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": "allowed", "query_columns": { "attend...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
On average, how much did the Student_Club spend on food for the typical event in the past?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'", "permission": "denied", "query_columns": { "budget": [ "category", "event_status", "spent" ] }, "missing_columns": { "budget": [ "category", "event_status...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Name the event with the highest amount spent on advertisement.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC, T2.event_id ASC LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "category", "link_to_event", "spent" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Did Maya Mclean attend the 'Women's Soccer' event?
Sorry, I cannot answer.
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among all events hold by the Student_Club in 2019, find the percentage share of events related to 'Community Service'
Sorry, I cannot answer.
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": "denied", "query_columns": { "event": [ "event_date" ] }, "missing_columns": { "event": [ "event_date" ...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Indicate the cost of posters for 'September Speaker' event.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'", "permission": "denied", "query_columns": { "budget": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the most popular size of t-shirt ordered by the club members?
SELECT t_shirt_size FROM member GROUP BY t_shirt_size ORDER BY COUNT(t_shirt_size) DESC LIMIT 1
simple
{ "gold_sql": "SELECT t_shirt_size FROM member GROUP BY t_shirt_size ORDER BY COUNT(t_shirt_size) DESC LIMIT 1", "permission": "allowed", "query_columns": { "member": [ "t_shirt_size" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1402, "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Indicate the name of the closed event whose cost has exceeded the budget the most.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "event_status", "link_to_event", "remain...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Identify the type of expenses and their total value approved for 'October Meeting' event.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.expense_description, SUM(T3.cost) \nFROM event AS T1 \nINNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event \nINNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget \nWHERE T1.event_name = 'October Meeting' AND T3.approved = 'true'\nGROUP BY T3.expense_description", "permission":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Calculate the amount budgeted for 'April Speaker' event. List all the budgeted categories for said event in an ascending order based on their amount budgeted.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC", "permission": "denied", "query_columns": { "budget": [ "amount", "category", "link_t...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among the budgets for Food, which one has the highest budgeted amount?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT budget_id \nFROM budget \nWHERE category = 'Food' \n AND amount = (SELECT MAX(amount) FROM budget WHERE category = 'Food')", "permission": "denied", "query_columns": { "budget": [ "amount", "budget_id", "category" ] }, "missing_columns": { "budget": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among the budgets for Advertising, list out top three which have the most budgeted amount?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC, budget_id ASC LIMIT 3", "permission": "denied", "query_columns": { "budget": [ "amount", "budget_id", "category" ] }, "missing_columns": { "budget": [ "amount", "budget_...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Calculate the total cost spent for Parking in the list.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": { "expense": [ "cost", "expense_description" ] }, "reason": "Missing co...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Mention the total expense used on 8/20/2019.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_date" ] }, "missing_columns": { "expense": [ "cost", "expense_date" ] }, "reason": "Missing column permissions: ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List out the full name and total cost that member id "rec4BLdZHS2Blfp4v" incurred?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name, SUM(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.member_id = 'rec4BLdZHS2Blfp4v'", "permission": "denied", "query_columns": { "expense": [ "cost", "link_to_member" ], "member": [ "f...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State what kind of expenses that Sacha Harrison incurred?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'", "permission": "denied", "query_columns": { "expense": [ "expense_description", "link_to_member" ], "memb...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State the name of major that Phillip Cullen has joined.
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'
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": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List out the position of members who joined major of Business.
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'
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": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many members of Business have the Medium size of tee shirt?
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'
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": "allowed", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List out the type of events which have remaining budget more than 30 USD.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 30", "permission": "denied", "query_columns": { "budget": [ "link_to_event", "remaining" ], "event": [ "event_id", "type" ] }, "missing_columns"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What are the budget categories for the event that took place on 2020-03-24T12:00:00?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_date = '2020-03-24T12:00:00'", "permission": "denied", "query_columns": { "budget": [ "category", "link_to_event" ], "event": [ "event_date", "event_id" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State the name of major that Vice President has joined.
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'
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": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Calculate the percentage of members who are major Business in the list?
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'
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": "allowed", "query_columns": { "major": [ "major_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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
State the category of events were held at MU 215.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215'", "permission": "denied", "query_columns": { "budget": [ "category", "link_to_event" ], "event": [ "event_id", "location" ] }...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many income are received with an amount of 50?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(income_id)\nFROM income\nWHERE amount = 50;", "permission": "denied", "query_columns": { "income": [ "amount", "income_id" ] }, "missing_columns": { "income": [ "amount", "income_id" ] }, "reason": "Missing column permissions: income: amo...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among the members, how many of them have an extra large t-shirt size?
SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'
simple
{ "gold_sql": "SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'", "permission": "allowed", "query_columns": { "member": [ "member_id", "t_shirt_size" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 142...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
In the College of Agriculture and Applied Sciences, how many majors are under the department of School of Applied Sciences, Technology and Education?
SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'
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": "allowed", "query_columns": { "major": [ "college", "department", "major_id" ] }, "mi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the last name of members with a major in environmental engineering and include its department and college name.
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'
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": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'", "permission": "denied", "query_columns": { "budget": [ "category", "link_to_event", "sp...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the city and state of members enrolled under electrical and computer engineering department.
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'
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": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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.?
Sorry, I cannot answer.
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": "denied", "query_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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the last name and position of the student that bought pizza on 09/10/2019?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.last_name, T1.position FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.expense_date = '2019-09-10' AND T2.expense_description = 'Pizza'", "permission": "denied", "query_columns": { "expense": [ "expense_date", "expense_description", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the last name of the members of the club that attended the women's soccer event.
Sorry, I cannot answer.
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": "denied", "query_columns": { "attendance": [ "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which counties have zip codes with post office boxes?
SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL
simple
{ "gold_sql": "SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL", "permission": "allowed", "query_columns": { "zip_code": [ "county" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1433, "evidence": "zip codes that...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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?
SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'
simple
{ "gold_sql": "SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'", "permission": "allowed", "query_columns": { "zip_code": [ "county", "state", "zip_code" ] }, "missing_columns": {}, "reason": "All required columns are p...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the names of closed event as "game" that was closed from 3/15/2019 to 3/20/2020.
Sorry, I cannot answer.
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": "denied", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Please provide links to events for members who have paid more than 50 dollar.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T1.cost > 50", "permission": "denied", "query_columns": { "attendance": [ "link_to_event", "link_to_m...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which members who were approved from 1/10/2019 to 11/19/2019? Please identify the member who attended the event and the link to their event.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.link_to_member, T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE date(SUBSTR(T1.expense_date, 1, 10)) BETWEEN '2019-01-10' AND '2019-11-19' AND T1.approved = 'true'", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Please indicate the college of the person whose first name is Katy with the link to the major "rec1N0upiVLy5esTO".
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'
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": "allowed", "query_columns": { "major": [ "college", "major_id" ], "member": [ "first_nam...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Please list the phone numbers of the members who majored in business at the College of Agriculture and Applied Sciences.
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'
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": "allowed", "query_columns": { "major": [ "college", "major_id", "major_nam...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List emails of people who paid more than 20 dollars from 9/10/2019 to 11/19/2019.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.email\nFROM member AS T1\nINNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member\nWHERE date(SUBSTR(T2.expense_date, 1, 10)) BETWEEN '2019-09-10' AND '2019-11-19'\n AND T2.cost > 20;", "permission": "denied", "query_columns": { "expense": [ "cost", "expense...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
How many members have education major in the College of Education & Human Services?
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'
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": "allowed", "query_columns": { "major": [ "colleg...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the percentage of the events that went over budget?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT \n CAST(COUNT(DISTINCT CASE WHEN b.remaining < 0 THEN b.link_to_event END) AS REAL) \n / COUNT(DISTINCT e.event_id) \n * 100 AS over_budget_event_percentage\nFROM event e\nLEFT JOIN budget b ON e.event_id = b.link_to_event;", "permission": "denied", "query_columns": { "budget": ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Give the event ID, location, and status of events conducted from November 2019 to March 2020.
Sorry, I cannot answer.
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": "denied", "query_columns": { "event": [ "event_date", "event_id", "location", "status" ] }, "missing_columns": { "event": ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the expenses that spend more than fifty dollars on average.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT expense_description FROM expense GROUP BY expense_description HAVING AVG(cost) > 50", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": { "expense": [ "cost", "expense_description" ] }, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Find the full name of members whose t-shirt size is extra large.
SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'
simple
{ "gold_sql": "SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'", "permission": "allowed", "query_columns": { "member": [ "first_name", "last_name", "t_shirt_size" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 14...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Calculate the percentage of zip codes that are PO boxes.
SELECT CAST(SUM(CASE WHEN type = 'PO Box' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(zip_code) FROM zip_code
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": "allowed", "query_columns": { "zip_code": [ "zip_code" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1446, ...
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the name and location of events that underspend its budget.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.event_name, T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 0", "permission": "denied", "query_columns": { "budget": [ "link_to_event", "remaining" ], "event": [ "event_id", "event_nam...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Find the name and date of events with expenses for pizza that were more than fifty dollars but less than a hundred dollars.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T1.event_name, T1.event_date FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T3.expense_description = 'Pizza' AND T3.cost > 50 AND T3.cost < 100", "permission": "denied", "query_columns": { "bud...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
In the events with budget more than forty, list the location at which the event is happening.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.amount > 40", "permission": "denied", "query_columns": { "budget": [ "amount", "link_to_event" ], "event": [ "event_id", "location" ] }, "missi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Among the members who incurred expenses in more than one event, who paid the most amount?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.member_id FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN budget AS T3 ON T1.link_to_budget = T3.budget_id INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id GROUP BY T2.member_id HAVING COUNT(DISTINCT T4.event_id) > 1 ORDER BY SUM(T1.cost) DESC...