db_id
stringclasses
11 values
instruction
stringlengths
1.63k
14k
role
stringclasses
45 values
policy
unknown
input
stringlengths
23
477
output
stringlengths
23
2.22k
difficulty
stringclasses
3 values
metadata
dict
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
EventCoordinator
{ "event": [ "event_id", "event_name", "event_date", "type", "location", "status" ], "attendance": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position" ] }
Where is the hometown of Garrett Gerke?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.city FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'", "permission": "denied", "query_columns": { "zip_code": [ "city", "zip_code" ], "member": [ "first_name", "last_name", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
EventCoordinator
{ "event": [ "event_id", "event_name", "event_date", "type", "location", "status" ], "attendance": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position" ] }
Which student has the hometown of Lincolnton, North Carolina with the zip code of 28092? List their full name and position.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name, T1.position FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T2.city = 'Lincolnton' AND T2.state = 'North Carolina' AND T2.zip_code = 28092", "permission": "denied", "query_columns": { "zip_code": [ "city", "state", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What's Angela Sanders's major?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Angela' AND T1.last_name = 'Sanders'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "first_name", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many students in the Student_Club are from the College of Engineering?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.college = 'College of Engineering'", "permission": "denied", "query_columns": { "major": [ "college", "major_id" ], "member": [ "link_to_major", "member...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Please list the full names of the students in the Student_Club that come from the Art and Design Department.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'Art and Design Department'", "permission": "denied", "query_columns": { "major": [ "department", "major_id" ], "member": [ "first_name",...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many students of the Student_Club have attended the event "Women's Soccer"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", "permission": "denied", "query_columns": { "attendance": [ "link_to_event" ], "event": [ "event_id", "event_name" ] ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Please list the phone numbers of the students from the Student_Club that has attended the event "Women's Soccer".
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.phone FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer'", "permission": "denied", "query_columns": { "attendance": [ "link_to_event", "link_to_m...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Among the students from the Student_Club who attended the event "Women's Soccer", how many of them want a T-shirt that's in medium size?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(DISTINCT T3.member_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'Women''s Soccer' AND T3.t_shirt_size = 'Medium'", "permission": "denied", "query_columns": { "att...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the event that has the highest attendance of the students from the Student_Club?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_name ORDER BY COUNT(T2.link_to_event) DESC LIMIT 1", "permission": "denied", "query_columns": { "attendance": [ "link_to_event" ], "event": [ "event_id", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which college is the vice president of the Student_Club from?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position LIKE 'vice president'", "permission": "denied", "query_columns": { "major": [ "college", "major_id" ], "member": [ "link_to_major", "position" ] }...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Please list the event names of all the events attended by Maya Mclean.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Maya' AND T3.last_name = 'Mclean'", "permission": "denied", "query_columns": { "attendance": [ "link_to_ev...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many events of the Student_Club did Sacha Harrison attend in 2019?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019'", "permission": "denied", "query_...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Among the events attended by more than 10 members of the Student_Club, how many of them are meetings?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(*) AS meeting_events_over_10\nFROM event AS e\nWHERE e.type = 'Meeting'\n AND (SELECT COUNT(*) \n FROM attendance AS a \n WHERE a.link_to_event = e.event_id) > 10;", "permission": "denied", "query_columns": { "attendance": [ "link_to_event" ], "event": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List all the names of events that had an attendance of over 20 students but were not fundraisers.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type != 'Fundraiser' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20", "permission": "denied", "query_columns": { "attendance": [ "link_to_event" ], "event": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the average attendance of meetings in 2020?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(COUNT(T2.link_to_event) AS REAL) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type = 'Meeting'", "permission": "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the most expensive item that was spent in support of club events?
SELECT expense_description FROM expense ORDER BY cost DESC LIMIT 1
simple
{ "gold_sql": "SELECT expense_description FROM expense ORDER BY cost DESC LIMIT 1", "permission": "allowed", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1325, "evidence": "ite...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many members of the Student_Club have majored Environmental Engineering?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Environmental Engineering'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_to_major", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List the full name of all the members of the Student_Club who attended the "Laugh Out Loud" event.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T3.event_name = 'Laugh Out Loud'", "permission": "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List the last name of all the students who majored Law and Constitutional Studies.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Law and Constitutional Studies'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "last_name", "lin...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What county did Sherri Ramsey grew up?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.county FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sherri' AND T1.last_name = 'Ramsey'", "permission": "denied", "query_columns": { "zip_code": [ "county", "zip_code" ], "member": [ "first_name", "last_name...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What college offers the major that Tyler Hewitt took?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Tyler' AND T1.last_name = 'Hewitt'", "permission": "denied", "query_columns": { "major": [ "college", "major_id" ], "member": [ "first_name", "last...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the amount of the funds that the Vice President received?
SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President';
simple
{ "gold_sql": "SELECT T2.amount\nFROM member AS T1\nINNER JOIN income AS T2 ON T1.member_id = T2.link_to_member\nWHERE T1.position = 'Vice President';", "permission": "allowed", "query_columns": { "income": [ "amount", "link_to_member" ], "member": [ "member_id", "position" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How much did the Student_Club members spend on food in the September Meeting?
SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Food'
moderate
{ "gold_sql": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Food'", "permission": "allowed", "query_columns": { "budget": [ "category", "link_to_event", "spent" ], "event": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the hometown city and state of the Student Club President?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.city, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.position = 'President'", "permission": "denied", "query_columns": { "zip_code": [ "city", "state", "zip_code" ], "member": [ "position", "zip" ] }, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List the full name of the Student_Club members that grew up in Illinois state.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.state = 'Illinois'", "permission": "denied", "query_columns": { "zip_code": [ "state", "zip_code" ], "member": [ "first_name", "last_name", "zip"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How much did the Student_Club members spend on advertisement in September Meeting?
SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Advertisement'
moderate
{ "gold_sql": "SELECT T2.spent FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'September Meeting' AND T2.category = 'Advertisement'", "permission": "allowed", "query_columns": { "budget": [ "category", "link_to_event", "spent" ], "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What department offers the major that Pierce and Guidi took?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.last_name = 'Pierce' OR T1.last_name = 'Guidi'", "permission": "denied", "query_columns": { "major": [ "department", "major_id" ], "member": [ "last_name", "l...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the total budgeted amount for all category in "October Speaker" event?
SELECT SUM(T2.amount) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'October Speaker'
simple
{ "gold_sql": "SELECT SUM(T2.amount) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'October Speaker'", "permission": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Was each expense in October Meeting on October 8, 2019 approved?
SELECT T3.approved FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T1.event_date LIKE '2019-10-08%'
moderate
{ "gold_sql": "SELECT T3.approved FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T1.event_date LIKE '2019-10-08%'", "permission": "allowed", "query_columns": { "budget": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Calculate the total average cost that Elijah Allen spent in the events on September and October.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')", "permission": "denied", "query_columns": { "expense":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Calculate the difference of the total amount spent in all events by the Student_Club in year 2019 and 2020.
SELECT SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2019' THEN T2.spent ELSE 0 END) - SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2020' THEN T2.spent ELSE 0 END) AS num FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event
moderate
{ "gold_sql": "SELECT SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2019' THEN T2.spent ELSE 0 END) - SUM(CASE WHEN SUBSTR(T1.event_date, 1, 4) = '2020' THEN T2.spent ELSE 0 END) AS num FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event", "permission": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Give the location for "Spring Budget Review".
SELECT location FROM event WHERE event_name = 'Spring Budget Review'
simple
{ "gold_sql": "SELECT location FROM event WHERE event_name = 'Spring Budget Review'", "permission": "allowed", "query_columns": { "event": [ "event_name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1341, "evidence": "'Spring Budget Review' is ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What was the cost for the "Posters" on 2019/9/4?
SELECT cost FROM expense WHERE expense_description = 'Posters' AND expense_date = '2019-09-04'
simple
{ "gold_sql": "SELECT cost FROM expense WHERE expense_description = 'Posters' AND expense_date = '2019-09-04'", "permission": "allowed", "query_columns": { "expense": [ "cost", "expense_date", "expense_description" ] }, "missing_columns": {}, "reason": "All required columns are per...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
With the biggest budget for the "Food", what was the remaining of it?
SELECT remaining FROM budget WHERE category = 'Food' AND amount = ( SELECT MAX(amount) FROM budget WHERE category = 'Food' )
simple
{ "gold_sql": "SELECT remaining FROM budget WHERE category = 'Food' AND amount = ( SELECT MAX(amount) FROM budget WHERE category = 'Food' )", "permission": "allowed", "query_columns": { "budget": [ "amount", "category", "remaining" ] }, "missing_columns": {}, "reason": "All require...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What was the notes of the fundraising on 2019/9/14?
SELECT notes FROM income WHERE source = 'Fundraising' AND date_received = '2019-09-14'
simple
{ "gold_sql": "SELECT notes FROM income WHERE source = 'Fundraising' AND date_received = '2019-09-14'", "permission": "allowed", "query_columns": { "income": [ "date_received", "notes" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1344, "e...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many majors are there in "College of Humanities and Social Sciences"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(major_name) FROM major WHERE college = 'College of Humanities and Social Sciences'", "permission": "denied", "query_columns": { "major": [ "college", "major_name" ] }, "missing_columns": { "major": [ "college", "major_name" ] }, "reason":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Tell the phone number of "Carlo Jacobs".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT phone FROM member WHERE first_name = 'Carlo' AND last_name = 'Jacobs'", "permission": "denied", "query_columns": { "member": [ "first_name", "last_name", "phone" ] }, "missing_columns": { "member": [ "phone" ] }, "reason": "Missing column permi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Tell the hometown county for "Adela O'Gallagher".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.county FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Adela' AND T1.last_name = 'O''Gallagher'", "permission": "denied", "query_columns": { "zip_code": [ "county", "zip_code" ], "member": [ "first_name", "last...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
For all the budgets for "November Meeting", how many of them had exceeded the budget?
SELECT COUNT(T2.event_id) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Meeting' AND T1.remaining < 0
simple
{ "gold_sql": "SELECT COUNT(T2.event_id) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'November Meeting' AND T1.remaining < 0", "permission": "allowed", "query_columns": { "budget": [ "link_to_event", "remaining" ], "event": [ "even...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Provide the total number of the budget amount for "September Speaker" event.
SELECT SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'September Speaker'
simple
{ "gold_sql": "SELECT SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'September Speaker'", "permission": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the status of the event which bought "Post Cards, Posters" on 2019/8/20?
SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description = 'Post Cards, Posters' AND T2.expense_date = '2019-08-20'
moderate
{ "gold_sql": "SELECT T1.event_status FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget WHERE T2.expense_description = 'Post Cards, Posters' AND T2.expense_date = '2019-08-20'", "permission": "allowed", "query_columns": { "budget": [ "budget_id", "event_status" ], ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What was Brent Thomason's major?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.first_name = 'Brent' AND T1.last_name = 'Thomason'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "first_name", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
For all the club members from "Business" major, how many of them wear medium size t-shirt?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.major_name = 'Business' AND T1.t_shirt_size = 'Medium'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_t...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What's Christof Nielson's zip code type?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.type FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Christof' AND T1.last_name = 'Nielson'", "permission": "denied", "query_columns": { "zip_code": [ "type", "zip_code" ], "member": [ "first_name", "last_name"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
State the major name for the Vice President of the club.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'Vice President'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_to_major", "position" ] ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Where is the hometown state for "Sacha Harrison"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'", "permission": "denied", "query_columns": { "zip_code": [ "state", "zip_code" ], "member": [ "first_name", "last_name"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which department was the President of the club in?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.department FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.position = 'President'", "permission": "denied", "query_columns": { "major": [ "department", "major_id" ], "member": [ "link_to_major", "position" ] }, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
State the date Connor Hilton paid his/her dues.
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'
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Who was the first one paid his/her dues? Tell the full name.
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.source = 'Dues' ORDER BY T2.date_received ASC, T1.member_id ASC LIMIT 1;
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many times was the budget in Advertisement for "Yearly Kickoff" meeting more than "October Meeting"?
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 = 'Meeting'
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What percentage was the budget for Parking to the total budget for the "November Speaker"?
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'
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": "allowed", "query_columns": { "budget": [ "amoun...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the total cost of the pizzas for all the events?
SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", "permission": "allowed", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1361, "evidence": "tota...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many cities are there in Orange County, Virginia?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'", "permission": "denied", "query_columns": { "zip_code": [ "city", "county", "state" ] }, "missing_columns": { "zip_code": [ "city", "county", "state" ] }...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List all of the College of Humanities and Social Sciences' departments.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT department FROM major WHERE college = 'College of Humanities and Social Sciences'", "permission": "denied", "query_columns": { "major": [ "college", "department" ] }, "missing_columns": { "major": [ "college", "department" ] }, "reason...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Where is Amy Firth's hometown?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.city, T2.county, T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Amy' AND T1.last_name = 'Firth'", "permission": "denied", "query_columns": { "zip_code": [ "city", "county", "state", "zip_code" ], "mem...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What are the expenses of the budget with the lowest remaining?
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
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": "allowed", "query_columns": { "budget": [ "budget_id", "remaining" ], "expense": [ "expense_description", "l...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which college do most of the members go to?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id GROUP BY T2.college ORDER BY COUNT(T2.college) DESC LIMIT 1", "permission": "denied", "query_columns": { "major": [ "college", "major_id" ], "member": [ "link_to_major" ] ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What does the person with the phone number "809-555-3360" major in?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.phone = '809-555-3360'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_to_major", "phone" ] }, "...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which event has the highest budget amount?
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
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
When did the member, Casey Mason, received the income?
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'
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": "allowed", "query_columns": { "income": [ "date_received", "link_to_member" ], "member": [ "fi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many of the members' hometowns are from Maryland state?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T2.member_id)\nFROM zip_code AS T1\nINNER JOIN member AS T2 ON T1.zip_code = T2.zip\nWHERE T1.state = 'Maryland';", "permission": "denied", "query_columns": { "zip_code": [ "state", "zip_code" ], "member": [ "member_id", "zip" ] }, "missing_c...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many events did the member with the phone number "954-555-6240" attend?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T2.link_to_event) FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member WHERE T1.phone = '954-555-6240'", "permission": "denied", "query_columns": { "attendance": [ "link_to_event", "link_to_member" ], "member": [ "member_id", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List all the members of the "School of Applied Sciences, Technology and Education" department.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'", "permission": "denied", "query_columns": { "major": [ "department", "major_id" ], "mem...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Among all the closed events, which event has the highest spend-to-budget ratio?
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
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the highest amount of budget spend for an event?
SELECT MAX(spent) FROM budget
simple
{ "gold_sql": "SELECT MAX(spent) FROM budget", "permission": "allowed", "query_columns": { "budget": [ "spent" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1378, "evidence": "highest amount of budget spend refers to MAX(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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many meeting events were held in 2020?
SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'
simple
{ "gold_sql": "SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'", "permission": "allowed", "query_columns": { "event": [ "event_date", "event_id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 137...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the total amount of money spent for food?
SELECT SUM(spent) FROM budget WHERE category = 'Food'
simple
{ "gold_sql": "SELECT SUM(spent) FROM budget WHERE category = 'Food'", "permission": "allowed", "query_columns": { "budget": [ "category", "spent" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1380, "evidence": "total amount of money 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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
List the name of students that have attended more than 7 events.
Sorry, I cannot answer.
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": "denied", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
State the name of students from Georgetown, South Carolina.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Georgetown' AND T2.state = 'South Carolina'", "permission": "denied", "query_columns": { "zip_code": [ "city", "state", "zip_code" ], "member": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many income generated by Grant Gilmour?
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'
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": "allowed", "query_columns": { "income": [ "amount", "link_to_member" ], "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which students were able to generate income more than $40?
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
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the total expense for the Yearly Kickoff?
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'
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which students manage to generate the highest income. State his/her full name along with the income source.
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
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": "allowed", "query_columns": { "income": [ "amount", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Which event has the lowest cost?
SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget ORDER BY T3.cost LIMIT 1
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": "allowed", "query_columns": { "budget": [ "budget_id", "link_to_event" ], "ev...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Based on the total cost for all event, what is the percentage of cost for Yearly Kickoff event?
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
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": "allowed", "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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the ratio of students majoring in finance to those majoring in physics?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN m2.major_name = 'Finance' THEN 1 ELSE 0 END) AS FLOAT) / NULLIF(CAST(SUM(CASE WHEN m2.major_name = 'Physics' THEN 1 ELSE 0 END) AS FLOAT), 0) AS ratio FROM member m1 JOIN major m2 ON m1.link_to_major = m2.major_id", "permission": "denied", "query_columns": { "major": [...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Indicate the top source of funds received in September 2019 based on their amount.
SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1
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": "allowed", "query_columns": { "income": [ "date_received" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Provide the full name and email address of the Student_Club's Secretary.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'", "permission": "denied", "query_columns": { "member": [ "email", "first_name", "last_name" ] }, "missing_columns": { "member": [ "email" ] }, "reason": "Missing column permi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
How many members of the Student_Club have major in 'Physics Teaching'?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Physics Teaching'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "link_to_major", "member...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Provide the number of events attended by Luisa Guidi. What is her major?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T3.link_to_event), T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T2.first_name = 'Luisa' AND T2.last_name = 'Guidi'", "permission": "denied", "query_columns": { "attenda...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
On average, how much did the Student_Club spend on food for the typical event in the past?
SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'
simple
{ "gold_sql": "SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'", "permission": "allowed", "query_columns": { "budget": [ "category", "event_status", "spent" ] }, "missing_columns": {}, "reason": "All required columns are permitted", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Name the event with the highest amount spent on advertisement.
SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC, T2.event_id ASC LIMIT 1
moderate
{ "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC, T2.event_id ASC LIMIT 1", "permission": "allowed", "query_columns": { "budget": [ "category", "link_to_event", "spent" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
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...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Among all events hold by the Student_Club in 2019, find the percentage share of events related to 'Community Service'
SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019'
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019'", "permission": "allowed", "query_columns": { "event": [ "event_date" ] }, "missing_columns": {}, "reason": "All required colum...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Indicate the cost of posters for 'September Speaker' event.
SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'
moderate
{ "gold_sql": "SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'", "permission": "allowed", "query_columns": { "budget": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
What is the most popular size of t-shirt ordered by the club members?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT t_shirt_size FROM member GROUP BY t_shirt_size ORDER BY COUNT(t_shirt_size) DESC LIMIT 1", "permission": "denied", "query_columns": { "member": [ "t_shirt_size" ] }, "missing_columns": { "member": [ "t_shirt_size" ] }, "reason": "Missing column permissions...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Indicate the name of the closed event whose cost has exceeded the budget the most.
SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1
moderate
{ "gold_sql": "SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1", "permission": "allowed", "query_columns": { "budget": [ "event_status", "link_to_event", "remai...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Identify the type of expenses and their total value approved for 'October Meeting' event.
SELECT T3.expense_description, SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting' AND T3.approved = 'true' GROUP BY T3.expense_description
moderate
{ "gold_sql": "SELECT T3.expense_description, SUM(T3.cost) \nFROM event AS T1 \nINNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event \nINNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget \nWHERE T1.event_name = 'October Meeting' AND T3.approved = 'true'\nGROUP BY T3.expense_description", "permission":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Calculate the amount budgeted for 'April Speaker' event. List all the budgeted categories for said event in an ascending order based on their amount budgeted.
SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC
moderate
{ "gold_sql": "SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC", "permission": "allowed", "query_columns": { "budget": [ "amount", "category", "link_...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Among the budgets for Food, which one has the highest budgeted amount?
SELECT budget_id FROM budget WHERE category = 'Food' AND amount = (SELECT MAX(amount) FROM budget WHERE category = 'Food')
simple
{ "gold_sql": "SELECT budget_id \nFROM budget \nWHERE category = 'Food' \n AND amount = (SELECT MAX(amount) FROM budget WHERE category = 'Food')", "permission": "allowed", "query_columns": { "budget": [ "amount", "budget_id", "category" ] }, "missing_columns": {}, "reason": "All r...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Among the budgets for Advertising, list out top three which have the most budgeted amount?
SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC, budget_id ASC LIMIT 3
simple
{ "gold_sql": "SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC, budget_id ASC LIMIT 3", "permission": "allowed", "query_columns": { "budget": [ "amount", "budget_id", "category" ] }, "missing_columns": {}, "reason": "All required columns are permi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Calculate the total cost spent for Parking in the list.
SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'", "permission": "allowed", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1408, "evidence": "to...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
Treasurer
{ "budget": [ "*" ], "expense": [ "expense_id", "expense_description", "expense_date", "cost", "approved", "link_to_budget" ], "income": [ "*" ], "event": [ "event_id", "event_name", "event_date", "type", "status" ], "member": [ "member_id", ...
Mention the total expense used on 8/20/2019.
SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'", "permission": "allowed", "query_columns": { "expense": [ "cost", "expense_date" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1409, "evidence": "total expense...