db_id
stringclasses
11 values
instruction
stringlengths
1.63k
14k
role
stringclasses
45 values
policy
unknown
input
stringlengths
23
477
output
stringlengths
23
2.22k
difficulty
stringclasses
3 values
metadata
dict
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the average amount paid by students in a position other than a member?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN member as T2 ON T1.link_to_member = T2.member_id WHERE T2.position != 'Member'", "permission": "denied", "query_columns": { "expense": [ "cost", "link_to_member" ], "member": [ "member_id", "position" ] }, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the name of events with less than average parking cost.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T2.category = 'Parking' AND T3.cost < (SELECT AVG(cost) FROM expense)", "permission": "denied", "query_columns": { "budget": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the percentage of the cost for the meeting events?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT SUM(CASE WHEN T1.type = 'Meeting' THEN T3.cost ELSE 0 END) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget", "permission": "denied", "query_columns": { "budget": [ "budget_i...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which budget allowed the most money for water, chips, and cookies?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.budget_id FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Water, chips, cookies' ORDER BY T1.cost DESC LIMIT 1", "permission": "denied", "query_columns": { "budget": [ "budget_id" ], "expense": [ "cost"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the full name of the top five members who spend the most money in the descending order of spending.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.first_name, T2.last_name FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id GROUP BY T2.member_id, T2.first_name, T2.last_name ORDER BY SUM(T1.cost) DESC LIMIT 5", "permission": "denied", "query_columns": { "expense": [ "cost", "link_to_member" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Give the full name and contact number of members who had to spend more than average on each expense.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T3.first_name, T3.last_name, T3.phone FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id INNER JOIN member AS T3 ON T3.member_id = T1.link_to_member WHERE T1.cost > ( SELECT AVG(T1.cost) FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.bud...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Calculate the difference in the percentage of members in New Jersey and Vermont.
SELECT CAST((SUM(CASE WHEN T2.state = 'New Jersey' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state = 'Vermont' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip
moderate
{ "gold_sql": "SELECT CAST((SUM(CASE WHEN T2.state = 'New Jersey' THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.state = 'Vermont' THEN 1 ELSE 0 END)) AS REAL) * 100 / COUNT(T1.member_id) AS diff FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip", "permission": "allowed", "query_columns": { "zip_code...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What is the major of Garrett Gerke and which department does it belong to?
SELECT T2.major_name, T2.department FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'
simple
{ "gold_sql": "SELECT T2.major_name, T2.department FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'", "permission": "allowed", "query_columns": { "major": [ "department", "major_id", "major_name" ], ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Write the full name of the member who spent money for water, veggie tray and supplies and include the cost of it.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.first_name, T2.last_name, T1.cost FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id WHERE T1.expense_description = 'Water, Veggie tray, supplies'", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description", "li...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the last names of students under the Elementary Education major and include their phone numbers.
SELECT T1.last_name, T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Elementary Education'
simple
{ "gold_sql": "SELECT T1.last_name, T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Elementary Education'", "permission": "allowed", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "last_name", "li...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
What category was budgeted for the 'January Speaker' event and how much was the amount budgeted for that category?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.category, T2.amount FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'January Speaker'", "permission": "denied", "query_columns": { "budget": [ "amount", "category", "link_to_event" ], "event": [ "event_id...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
List the event names which were budgeted for the food.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.category = 'Food'", "permission": "denied", "query_columns": { "budget": [ "category", "link_to_event" ], "event": [ "event_id", "event_name" ] }, "mi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Write the full names of students who received funds on the date of 9/9/2019 and include the amount received.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name, T2.amount \nFROM member AS T1 \nINNER JOIN income AS T2 ON T2.link_to_member = T1.member_id \nWHERE T2.date_received = '2019-09-09'", "permission": "denied", "query_columns": { "income": [ "amount", "date_received", "link_to_member"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which budget category does the expense 'Posters' fall to?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T2.category FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Posters'", "permission": "denied", "query_columns": { "budget": [ "budget_id", "category" ], "expense": [ "expense_description", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Write the full name of the club member with the position of 'Secretary' and list which college the club member belongs to.
SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Secretary'
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Secretary'", "permission": "allowed", "query_columns": { "major": [ "college", "major_id" ], "member": [ "first_name", "las...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Calculate the total amount spent on speaker gifts and list the name of the event they were spent on.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T1.spent), T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Speaker Gifts' GROUP BY T2.event_name", "permission": "denied", "query_columns": { "budget": [ "category", "link_to_event", "spent" ], "e...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Where is the hometown of Garrett Gerke?
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'
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": "allowed", "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...
MembershipManager
{ "member": [ "member_id", "first_name", "last_name", "email", "position", "t_shirt_size", "phone", "zip", "link_to_major" ], "major": [ "*" ], "zip_code": [ "*" ], "attendance": [ "link_to_event", "link_to_member" ] }
Which student has the hometown of Lincolnton, North Carolina with the zip code of 28092? List their full name and position.
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
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": "allowed", "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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
How many students of the Student_Club have attended the event "Women's Soccer"?
SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'
simple
{ "gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event" ], "event": [ "event_id", "event_name" ] ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Please list the phone numbers of the 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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
What is the event that has the highest attendance of the students from the Student_Club?
SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_name ORDER BY COUNT(T2.link_to_event) DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event GROUP BY T1.event_name ORDER BY COUNT(T2.link_to_event) DESC LIMIT 1", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event" ], "event": [ "event_id", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Please list the event names of all the events attended by Maya Mclean.
SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Maya' AND T3.last_name = 'Mclean'
simple
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Maya' AND T3.last_name = 'Mclean'", "permission": "allowed", "query_columns": { "attendance": [ "link_to_e...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
How many events of the Student_Club did Sacha Harrison attend in 2019?
SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019'
moderate
{ "gold_sql": "SELECT COUNT(T1.event_id) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T3.first_name = 'Sacha' AND T3.last_name = 'Harrison' AND SUBSTR(T1.event_date, 1, 4) = '2019'", "permission": "allowed", "query...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Among the events attended by more than 10 members of the Student_Club, how many of them are meetings?
SELECT COUNT(*) AS meeting_events_over_10 FROM event AS e WHERE e.type = 'Meeting' AND (SELECT COUNT(*) FROM attendance AS a WHERE a.link_to_event = e.event_id) > 10;
moderate
{ "gold_sql": "SELECT COUNT(*) AS meeting_events_over_10\nFROM event AS e\nWHERE e.type = 'Meeting'\n AND (SELECT COUNT(*) \n FROM attendance AS a \n WHERE a.link_to_event = e.event_id) > 10;", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event" ], "event": [...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
List all the names of events that had an attendance of over 20 students but were not fundraisers.
SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type != 'Fundraiser' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20
moderate
{ "gold_sql": "SELECT T1.event_name FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.type != 'Fundraiser' GROUP BY T1.event_id HAVING COUNT(T2.link_to_event) > 20", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event" ], "event": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
What is the average attendance of meetings in 2020?
SELECT CAST(COUNT(T2.link_to_event) AS REAL) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type = 'Meeting'
moderate
{ "gold_sql": "SELECT CAST(COUNT(T2.link_to_event) AS REAL) / COUNT(DISTINCT T2.link_to_event) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE SUBSTR(T1.event_date, 1, 4) = '2020' AND T1.type = 'Meeting'", "permission": "allowed", "query_columns": { "attendance": [ "...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
How many members of the Student_Club have 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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
List the full name of all the members of the Student_Club who attended the "Laugh Out Loud" event.
SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T3.event_name = 'Laugh Out Loud'
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member INNER JOIN event AS T3 ON T2.link_to_event = T3.event_id WHERE T3.event_name = 'Laugh Out Loud'", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Calculate the total average cost that Elijah Allen spent in the events on September and October.
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')
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": "allowed", "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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
List all the members who attended the event "October Meeting".
SELECT DISTINCT T3.member_id FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'October Meeting'
simple
{ "gold_sql": "SELECT DISTINCT T3.member_id FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'October Meeting'", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
List all the expenses incurred by the vice president.
SELECT T2.expense_id, T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President';
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": "allowed", "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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
How many members attended the "Women's Soccer" event?
SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'
simple
{ "gold_sql": "SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event", "link_to_member" ], "event": [ "event_i...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
List the name of students that have attended more than 7 events.
SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7", "permission": "allowed", "query_columns": { "attendance": [ "link_to_event", "link_to_member" ], ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Which student has been entrusted to manage the budget for the Yearly Kickoff?
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'
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": "allowed", "q...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Which 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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
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...
ClubAdvisor
{ "event": [ "*" ], "budget": [ "*" ], "expense": [ "*" ], "income": [ "*" ], "member": [ "member_id", "first_name", "last_name", "email", "position", "link_to_major" ], "attendance": [ "*" ] }
Provide the full name and email address of the Student_Club's Secretary.
SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'
simple
{ "gold_sql": "SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'", "permission": "allowed", "query_columns": { "member": [ "email", "first_name", "last_name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1393...