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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
How many income are received with an amount of 50?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(income_id)\nFROM income\nWHERE amount = 50;", "permission": "denied", "query_columns": { "income": [ "amount", "income_id" ] }, "missing_columns": { "income": [ "amount", "income_id" ] }, "reason": "Missing column permissions: income: amo...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Among the members, how many of them have an extra large t-shirt size?
SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'
simple
{ "gold_sql": "SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'", "permission": "allowed", "query_columns": { "member": [ "member_id", "t_shirt_size" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 142...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
In the College of Agriculture and Applied Sciences, how many majors are under the department of School of Applied Sciences, Technology and Education?
SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'
simple
{ "gold_sql": "SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'", "permission": "allowed", "query_columns": { "major": [ "college", "department", "major_id" ] }, "mi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the last name of members with a major in environmental engineering and include its department and college name.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'", "permission": "denied", "query_columns": { "major": [ "college", "department", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'", "permission": "denied", "query_columns": { "event": [ "event_id", "location", "type" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the city and state of members enrolled under electrical and computer engineering department.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT city, state FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN zip_code AS T3 ON T3.zip_code = T1.zip WHERE department = 'Electrical and Computer Engineering Department' AND position = 'Member'", "permission": "denied", "query_columns": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What is the name of the social event that was attended by the vice president of the Student_Club located at 900 E. Washington St.?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location = '900 E. Washington St.' AND T2.type = 'Social'", "permission": "denied", "query_colu...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What is the last name and position of the student that bought pizza on 09/10/2019?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.last_name, T1.position FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.expense_date = '2019-09-10' AND T2.expense_description = 'Pizza'", "permission": "denied", "query_columns": { "expense": [ "expense_date", "expense_description", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the last name of the members of the club that attended the women's soccer event.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.last_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T2.event_name = 'Women''s Soccer' AND T3.position = 'Member'", "permission": "denied", "query_columns": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Among the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium'", "permission": "denied", "query_columns": { "income": [ ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Which counties have zip codes with post office boxes?
SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL
simple
{ "gold_sql": "SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL", "permission": "allowed", "query_columns": { "zip_code": [ "county" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1433, "evidence": "zip codes that...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What are the zip codes that have post office boxes in the country of the country of San Juan Municipio whose state is Puerto Rico?
SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'
simple
{ "gold_sql": "SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'", "permission": "allowed", "query_columns": { "zip_code": [ "county", "state", "zip_code" ] }, "missing_columns": {}, "reason": "All required columns are p...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the names of closed event as "game" that was closed from 3/15/2019 to 3/20/2020.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'", "permission": "denied", "query_columns": { "event": [ "event_date", "event_name", "status" ] }, "missing_columns"...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Please provide links to events for members who have paid more than 50 dollar.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T1.cost > 50", "permission": "denied", "query_columns": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Which members who were approved from 1/10/2019 to 11/19/2019? Please identify the member who attended the event and the link to their event.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT DISTINCT T1.link_to_member, T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE date(SUBSTR(T1.expense_date, 1, 10)) BETWEEN '2019-01-10' AND '2019-11-19' AND T1.approved = 'true'", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Please indicate the college of the person whose first name is Katy with the link to the major "rec1N0upiVLy5esTO".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.link_to_major = 'rec1N0upiVLy5esTO' AND T1.first_name = 'Katy'", "permission": "denied", "query_columns": { "major": [ "college", "major_id" ], "member": [ "first_name...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Please list the phone numbers of the members who majored in business at the College of Agriculture and Applied Sciences.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Business' AND T2.college = 'College of Agriculture and Applied Sciences'", "permission": "denied", "query_columns": { "major": [ "college", "major_id", "major_name...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List emails of people who paid more than 20 dollars from 9/10/2019 to 11/19/2019.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.email\nFROM member AS T1\nINNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member\nWHERE date(SUBSTR(T2.expense_date, 1, 10)) BETWEEN '2019-09-10' AND '2019-11-19'\n AND T2.cost > 20;", "permission": "denied", "query_columns": { "expense": [ "cost", "expense...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
How many members have education major in the College of Education & Human Services?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member' AND T2.major_name LIKE '%Education%' AND T2.college = 'College of Education & Human Services'", "permission": "denied", "query_columns": { "major": [ "college...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What is the percentage of the events that went over budget?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT \n CAST(COUNT(DISTINCT CASE WHEN b.remaining < 0 THEN b.link_to_event END) AS REAL) \n / COUNT(DISTINCT e.event_id) \n * 100 AS over_budget_event_percentage\nFROM event e\nLEFT JOIN budget b ON e.event_id = b.link_to_event;", "permission": "denied", "query_columns": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Give the event ID, location, and status of events conducted from November 2019 to March 2020.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT event_id, location, status FROM event WHERE date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-11-01' AND '2020-03-31'", "permission": "denied", "query_columns": { "event": [ "event_date", "event_id", "location", "status" ] }, "missing_columns": { "event": ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the expenses that spend more than fifty dollars on average.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT expense_description FROM expense GROUP BY expense_description HAVING AVG(cost) > 50", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": { "expense": [ "cost" ] }, "reason": "Missing column p...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Find the full name of members whose t-shirt size is extra large.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'", "permission": "denied", "query_columns": { "member": [ "first_name", "last_name", "t_shirt_size" ] }, "missing_columns": { "member": [ "last_name" ] }, "reason": "Missing column...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Calculate the percentage of zip codes that are PO boxes.
SELECT CAST(SUM(CASE WHEN type = 'PO Box' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(zip_code) FROM zip_code
simple
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN type = 'PO Box' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(zip_code) FROM zip_code", "permission": "allowed", "query_columns": { "zip_code": [ "zip_code" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1446, ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the name and location of events that underspend its budget.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.event_name, T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 0", "permission": "denied", "query_columns": { "event": [ "event_id", "event_name", "location" ], "budget": [ "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Find the name and date of events with expenses for pizza that were more than fifty dollars but less than a hundred dollars.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T1.event_name, T1.event_date FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T3.expense_description = 'Pizza' AND T3.cost > 50 AND T3.cost < 100", "permission": "denied", "query_columns": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What is the name and major of members who had to spend more than a hundred dollars on an expense?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.first_name, T1.last_name, T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN expense AS T3 ON T1.member_id = T3.link_to_member WHERE T3.cost > 100", "permission": "denied", "query_columns": { "expense": [ "cost", "l...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
In the events with budget more than forty, list the location at which the event is happening.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.amount > 40", "permission": "denied", "query_columns": { "event": [ "event_id", "location" ], "budget": [ "amount", "link_to_event" ] }, "missi...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Among the members who incurred expenses in more than one event, who paid the most amount?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T2.member_id FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN budget AS T3 ON T1.link_to_budget = T3.budget_id INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id GROUP BY T2.member_id HAVING COUNT(DISTINCT T4.event_id) > 1 ORDER BY SUM(T1.cost) DESC...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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": { "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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": { "expense": [ "cost", "expense_description", "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
What is the major of Garrett Gerke and which department does it belong to?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.major_name, T2.department FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'", "permission": "denied", "query_columns": { "major": [ "department", "major_id", "major_name" ], "...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
List the last names of students under the Elementary Education major and include their phone numbers.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.last_name, T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Elementary Education'", "permission": "denied", "query_columns": { "major": [ "major_id", "major_name" ], "member": [ "last_name", "lin...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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": { "event": [ "event_id", "event_name" ], "budget": [ "amount", "category", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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": { "event": [ "event_id", "event_name" ], "budget": [ "category", "link_to_event" ] }, "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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Which budget category does the expense 'Posters' fall to?
SELECT DISTINCT T2.category FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Posters'
simple
{ "gold_sql": "SELECT DISTINCT T2.category FROM expense AS T1 INNER JOIN budget AS T2 ON T1.link_to_budget = T2.budget_id WHERE T1.expense_description = 'Posters'", "permission": "allowed", "query_columns": { "expense": [ "expense_description", "link_to_budget" ], "budget": [ "budget...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Write the full name of the club member with the position of 'Secretary' and list which college the club member belongs to.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.first_name, T1.last_name, college FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Secretary'", "permission": "denied", "query_columns": { "major": [ "college", "major_id" ], "member": [ "first_name", "last...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
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": { "event": [ "event_id", "event_name" ], "budget": [ "ca...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Where is the hometown of Garrett Gerke?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.city FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T1.first_name = 'Garrett' AND T1.last_name = 'Gerke'", "permission": "denied", "query_columns": { "zip_code": [ "city", "zip_code" ], "member": [ "first_name", "last_name", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_1
{ "attendance": [ "*" ], "budget": [ "*" ], "expense": [ "approved", "expense_date", "expense_description", "link_to_budget" ], "major": [ "*" ], "member": [ "email", "first_name", "member_id", "phone", "position", "t_shirt_size", "zip" ], "z...
Which student has the hometown of Lincolnton, North Carolina with the zip code of 28092? List their full name and position.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.first_name, T1.last_name, T1.position FROM member AS T1 INNER JOIN zip_code AS T2 ON T2.zip_code = T1.zip WHERE T2.city = 'Lincolnton' AND T2.state = 'North Carolina' AND T2.zip_code = 28092", "permission": "denied", "query_columns": { "zip_code": [ "city", "state", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
Please list the phone numbers of the students from the Student_Club that has attended the event "Women's Soccer".
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'
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": "allowed", "query_columns": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "type" ], "atten...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name", "type" ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
What is the most expensive item that was spent in support of club events?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT expense_description FROM expense ORDER BY cost DESC LIMIT 1", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": { "expense": [ "cost" ] }, "reason": "Missing column permissions: expense: cos...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "budget": [ "category", ...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "budget": [ "cate...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "budget": [ "amount", "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
Calculate the total average cost that Elijah Allen spent in the events on September and October.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT AVG(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.last_name = 'Allen' AND T1.first_name = 'Elijah' AND (SUBSTR(T2.expense_date, 6, 2) = '09' OR SUBSTR(T2.expense_date, 6, 2) = '10')", "permission": "denied", "query_columns": { "expense":...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
What was the cost for the "Posters" on 2019/9/4?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT cost FROM expense WHERE expense_description = 'Posters' AND expense_date = '2019-09-04'", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_date", "expense_description" ] }, "missing_columns": { "expense": [ "cost", "expens...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
Tell the phone number of "Carlo Jacobs".
SELECT phone FROM member WHERE first_name = 'Carlo' AND last_name = 'Jacobs'
simple
{ "gold_sql": "SELECT phone FROM member WHERE first_name = 'Carlo' AND last_name = 'Jacobs'", "permission": "allowed", "query_columns": { "member": [ "first_name", "last_name", "phone" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1346...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "budget": [ "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "event": [ "event_id", "event_name" ], "budget": [ "amount", "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
What is the status of the event which bought "Post Cards, Posters" on 2019/8/20?
Sorry, I cannot answer.
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": "denied", "query_columns": { "expense": [ "expense_date", "expense_descriptio...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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": { "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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
What is the total cost of the pizzas for all the events?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'", "permission": "denied", "query_columns": { "expense": [ "cost", "expense_description" ] }, "missing_columns": { "expense": [ "cost" ] }, "reason": "Missing column permissions: 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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
How many cities are there in Orange County, Virginia?
SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'
simple
{ "gold_sql": "SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'", "permission": "allowed", "query_columns": { "zip_code": [ "city", "county", "state" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 1...
student_club
##Instruction: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Database: student_club Total Tables: 8 Total Columns: 48 Table Schemas: Table: attendance (2 columns) ----------------------------- • link_to_event (text): The unique identifier of the event which was attended Values: Reference...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...
DataOperator_2
{ "attendance": [ "*" ], "budget": [ "*" ], "event": [ "*" ], "expense": [ "approved", "expense_description", "expense_id", "link_to_budget" ], "income": [ "*" ], "member": [ "email", "first_name", "last_name", "member_id", "phone", "position...
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...