1sf/bird-sql-dev-xresults huggingface dataset:
Database: student_club
Question: What was Brent Thomason's major?
Evidence: Brent Thomason is the full name; full name refers to first_name, last_name; major refers to major_name
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'
Database: student_club
Question: For all the club members from "Business" major, how many of them wear medium size t-shirt?
Evidence: 'Business' is a major name; wear medium size t-shirt refers to t_shirt_size = 'Medium'
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'
Database: student_club
Question: State the major name for the Vice President of the club.
Evidence: 'Vice President' is a position of Student Club
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'
Database: student_club
Question: Where is the hometown state for "Sacha Harrison"?
Evidence: hometown state refers to state;
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'
Database: student_club
Question: Which department was the President of the club in?
Evidence: 'President' is a position of Student Club
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'
Database: student_club
Question: State the date Connor Hilton paid his/her dues.
Evidence: Connor Hilton is the full name; full name refers to first_name, last_name; date the dues was paid refers to date_received where source = 'Dues';
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'
Database: student_club
Question: Who was the first one paid his/her dues? Tell the full name.
Evidence: full name refers to first_name, last_name; first paid dues refers to MIN(received_date) where source = 'Dues'
SQL: SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.source = 'Dues' ORDER BY T2.date_received LIMIT 1
Database: student_club
Question: How many times was the budget in Advertisement for "Yearly Kickoff" meeting more than "October Meeting"?
Evidence: budget in Advertisement refer to category = 'Advertisement' in the budget table; DIVIDE(SUM(amount when event_name = 'Yearly Kickoff'), SUM(amount when event_name = 'October Meeting'))
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 = 'Meeting'
Database: student_club
Question: What percentage was the budget for Parking to the total budget for the "November Speaker"?
Evidence: DIVDE(SUM( amount where category = 'Parking' and event_name = 'November Speaker'), COUNT(event_name = 'November Speaker)) * 100
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'
Database: student_club
Question: What is the total cost of the pizzas for all the events?
Evidence: total cost of the pizzas refers to SUM(cost) where expense_description = 'Pizza'
SQL: SELECT SUM(cost) FROM expense WHERE expense_description = 'Pizza'
Database: student_club
Question: How many cities are there in Orange County, Virginia?
Evidence: Orange County is the county name, Virginia is the state name
SQL: SELECT COUNT(city) FROM zip_code WHERE county = 'Orange County' AND state = 'Virginia'
Database: student_club
Question: Where is Amy Firth's hometown?
Evidence: hometown refers to city, county, state
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'
Database: student_club
Question: What are the expenses of the budget with the lowest remaining?
Evidence: expense of budget refers to expense_description; lowest remaining refers to MIN(remaining)
SQL: SELECT T2.expense_description FROM budget AS T1 INNER JOIN expense AS T2 ON T1.budget_id = T2.link_to_budget ORDER BY T1.remaining LIMIT 1
Database: student_club
Question: List all the members who attended the event "October Meeting".
Evidence: 'October Meeting' is an event name;
SQL: SELECT DISTINCT T3.member_id FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event INNER JOIN member AS T3 ON T2.link_to_member = T3.member_id WHERE T1.event_name = 'October Meeting'
Database: student_club
Question: Which college do most of the members go to?
Evidence: college most members go refers to MAX(COUNT(major.college))
SQL: SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id GROUP BY T2.major_id ORDER BY COUNT(T2.college) DESC LIMIT 1
Database: student_club
Question: What does the person with the phone number "809-555-3360" major in?
Evidence: major in refers to major_name
SQL: SELECT T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T1.phone = '809-555-3360'
Database: student_club
Question: Which event has the highest budget amount?
Evidence: event refers to event_name; highest budget amount refers to MAX(amount)
SQL: SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id ORDER BY T1.amount DESC LIMIT 1
Database: student_club
Question: List all the expenses incurred by the vice president.
Evidence: expense refers to expense_description; 'Vice President' is a position of the Student Club
SQL: SELECT T2.expense_id, T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Vice President'
Database: student_club
Question: How many members attended the "Women's Soccer" event?
Evidence: 'Women's Soccer' is the event name;
SQL: SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Women''s Soccer'
Database: student_club
Question: When did the member, Casey Mason, received the income?
Evidence: when the income was received refers to date_received
SQL: SELECT T2.date_received FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Casey' AND T1.last_name = 'Mason'
Database: student_club
Question: How many of the members' hometowns are from Maryland state?
SQL: SELECT COUNT(T2.member_id) FROM zip_code AS T1 INNER JOIN member AS T2 ON T1.zip_code = T2.zip WHERE T1.state = 'Maryland'
Database: student_club
Question: How many events did the member with the phone number "954-555-6240" attend?
SQL: SELECT COUNT(T2.link_to_event) FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member WHERE T1.phone = '954-555-6240'
Database: student_club
Question: List all the members of the "School of Applied Sciences, Technology and Education" department.
Evidence: list all members means to list all the full name; full name refers to first_name, last_name;
SQL: SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education'
Database: student_club
Question: Among all the closed events, which event has the highest spend-to-budget ratio?
Evidence: closed events refers to event_name where status = 'Closed'; highest spend-to budget ratio refers to MAX(DIVIDE(spent, amount))
SQL: SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.status = 'Closed' ORDER BY T1.spent / T1.amount DESC LIMIT 1
Database: student_club
Question: How many student have the position of president?
Evidence: 'President' is a position of Student Club
SQL: SELECT COUNT(member_id) FROM member WHERE position = 'President'
Database: student_club
Question: What is the highest amount of budget spend for an event?
Evidence: highest amount of budget spend refers to MAX(spent)
SQL: SELECT MAX(spent) FROM budget
Database: student_club
Question: How many meeting events were held in 2020?
Evidence: meeting events refers to type = 'Meeting'; held in 2020 refers to YEAR(event_date) = 2020
SQL: SELECT COUNT(event_id) FROM event WHERE type = 'Meeting' AND SUBSTR(event_date, 1, 4) = '2020'
Database: student_club
Question: What is the total amount of money spent for food?
Evidence: total amount of money spent refers to SUM(spent); spent for food refers to category = 'Food'
SQL: SELECT SUM(spent) FROM budget WHERE category = 'Food'
Database: student_club
Question: List the name of students that have attended more than 7 events.
Evidence: name of students means the full name; full name refers to first_name, last_name; attended more than 7 events refers to COUNT(link_to_event) > 7
SQL: SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN attendance AS T2 ON T1.member_id = T2.link_to_member GROUP BY T2.link_to_member HAVING COUNT(T2.link_to_event) > 7
Database: student_club
Question: Among the students majored in interior design, who have attended the Community Theater event?
Evidence: majored in music refers to major_name = 'Interior Design'; 'Community Theater' is the event name;
SQL: SELECT T2.first_name, T2.last_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id WHERE T4.event_name = 'Community Theater' AND T1.major_name = 'Interior Design'
Database: student_club
Question: State the name of students from Georgetown, South Carolina.
Evidence: name of students means the full name; full name refers to first_name, last_name; Georgetown is a city; South Carolina is a state
SQL: SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T2.city = 'Georgetown' AND T2.state = 'South Carolina'
Database: student_club
Question: How many income generated by Grant Gilmour?
Evidence: income generated refers to income.amount
SQL: SELECT T2.amount FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Grant' AND T1.last_name = 'Gilmour'
Database: student_club
Question: Which student was able to generate income more than $40?
Evidence: name of students means the full name; full name refers to first_name, last_name; generate income more than $50 refers to income.amount > 40
SQL: SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T2.amount > 40
Database: student_club
Question: What is the total expense for the Yearly Kickoff?
Evidence: 'Yearly Kickoff' is an event name; total expense refers to SUM(cost)
SQL: SELECT SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'Yearly Kickoff'
Database: student_club
Question: Which student has been entrusted to manage the budget for the Yearly Kickoff?
Evidence: name of students means the full name; full name refers to first_name, last_name;'Yearly Kickoff' is an event name;
SQL: SELECT T4.first_name, T4.last_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget INNER JOIN member AS T4 ON T3.link_to_member = T4.member_id WHERE T1.event_name = 'Yearly Kickoff'
Database: student_club
Question: Which students manage to generate the highest income. State his/her full name along with the income source.
Evidence: name of students means the full name; full name refers to first_name, last_name; generate the highest income refers to MAX(income.amount);
SQL: SELECT T1.first_name, T1.last_name, T2.source FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member GROUP BY T1.first_name, T1.last_name, T2.source ORDER BY SUM(T2.amount) DESC LIMIT 1
Database: student_club
Question: Which event has the lowest cost?
Evidence: event refers to event_name; lowest cost means MIN(cost)
SQL: SELECT T1.event_name FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget ORDER BY T3.cost LIMIT 1
Database: student_club
Question: Based on the total cost for all event, what is the percentage of cost for Yearly Kickoff event?
Evidence: percentage = DIVIDE(SUM(cost where event_name = 'Yearly Kickoff'), SUM(cost)) * 100
SQL: SELECT CAST(SUM(CASE WHEN T1.event_name = 'Yearly Kickoff' THEN T3.cost ELSE 0 END) AS REAL) * 100 / SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget
Database: student_club
Question: What is the ratio between students majored in finance and physics?
Evidence: DIVDE(SUM(major_name = 'Finance'), SUM(major_name = 'Physics'))
SQL: SELECT SUM(CASE WHEN major_name = 'Finance' THEN 1 ELSE 0 END) / SUM(CASE WHEN major_name = 'Physics' THEN 1 ELSE 0 END) AS ratio FROM major
Database: student_club
Question: Indicate the top source of funds received in September 2019 based on their amount.
Evidence: top source funds refers to MAX(source); September 2019 means date_received BETWEEN '2019-09-01' and '2019-09-30'
SQL: SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1
Database: student_club
Question: Provide the full name and email address of the Student_Club's Secretary.
Evidence: full name refers to first_name, last_name; 'Secretary' is a position of Student Club
SQL: SELECT first_name, last_name, email FROM member WHERE position = 'Secretary'
Database: student_club
Question: How many members of the Student_Club have major in 'Physics Teaching'?
Evidence: 'Physics Teaching' is the major_name;
SQL: SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Physics Teaching'
Database: student_club
Question: How many members did attend the event 'Community Theater' in 2019?
Evidence: event 'Community Theater' in 2019 refers to event_name = 'Community Theater' where YEAR(event_date) = 2019
SQL: SELECT COUNT(T2.link_to_member) FROM event AS T1 INNER JOIN attendance AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'Community Theater' AND SUBSTR(T1.event_date, 1, 4) = '2019'
Database: student_club
Question: Provide the number of events attended by Luisa Guidi. What is her major?
Evidence: major refers to major_name;
SQL: SELECT COUNT(T3.link_to_event), T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T2.first_name = 'Luisa' AND T2.last_name = 'Guidi'
Database: student_club
Question: On average, how much did the Student_Club spend on food for the typical event in the past?
Evidence: DIVIDE(SUM(spent), COUNT(spent)) where category = 'Food'; 'event in the past' means event_status = 'Closed'
SQL: SELECT SUM(spent) / COUNT(spent) FROM budget WHERE category = 'Food' AND event_status = 'Closed'
Database: student_club
Question: Name the event with the highest amount spent on advertisement.
Evidence: Name of event refers to event_name; highest amount spent on advertisement refers to MAX(spent) where category = 'Advertisement'
SQL: SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T1.category = 'Advertisement' ORDER BY T1.spent DESC LIMIT 1
Database: student_club
Question: Did Maya Mclean attend the 'Women's Soccer' event?
Evidence: Maya Mclean is the full name; full name refers to first_name, last_name; 'Women's Soccer' is an event_name
SQL: SELECT CASE WHEN T3.event_name = 'Women''s Soccer' THEN 'YES' END AS result 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 T1.first_name = 'Maya' AND T1.last_name = 'Mclean'
Database: student_club
Question: Among all events hold by the Student_Club in 2019, find the percentage share of events related to 'Community Service'
Evidence: DIVIDE(SUM(type = 'Community Service'), COUNT(event_id)) * 100 where event_date BETWEEN' 2019-01-01' and '2019-12-31'
SQL: SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019'
Database: student_club
Question: Indicate the cost of posters for 'September Speaker' event.
Evidence: 'Posters' is the expense description; 'September Speaker' is an event name
SQL: SELECT T3.cost FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'September Speaker' AND T3.expense_description = 'Posters'
Database: student_club
Question: What is the most popular size of t-shirt ordered by the club members?
Evidence: most popular size of t-shirt ordered refers to MAX(COUNT(t_shirt_size))
SQL: SELECT t_shirt_size FROM member GROUP BY t_shirt_size ORDER BY COUNT(t_shirt_size) DESC LIMIT 1
Database: student_club
Question: Indicate the name of the closed event whose cost has exceeded the budget the most.
Evidence: closed events refers to event_name where status = 'Closed'; exceed the budget the most refers to MIN(remaining) where remaining < 0
SQL: SELECT T2.event_name FROM budget AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event WHERE T1.event_status = 'Closed' AND T1.remaining < 0 ORDER BY T1.remaining LIMIT 1
Database: student_club
Question: Identify the type of expenses and their total value approved for 'October Meeting' event.
Evidence: total value refers to SUM(cost); 'October Meeting' is an event name;
SQL: SELECT T1.type, SUM(T3.cost) FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T1.event_name = 'October Meeting'
Database: student_club
Question: Calculate the amount budgeted for 'April Speaker' event. List all the budgeted categories for said event in an ascending order based on their amount budgeted.
Evidence: 'April Speaker' is an event name; amount budgeted refers to SUM(amount); budget categories refers to category
SQL: SELECT T2.category, SUM(T2.amount) FROM event AS T1 JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_name = 'April Speaker' GROUP BY T2.category ORDER BY SUM(T2.amount) ASC
Database: student_club
Question: Among the budgets for Food, which one has the highest budgeted amount?
Evidence: MAX(amount) where category = 'Food'
SQL: SELECT budget_id FROM budget WHERE category = 'Food' AND amount = ( SELECT MAX(amount) FROM budget )
Database: student_club
Question: Among the budgets for Advertising, list out top three which have the most budgeted amount?
Evidence: MAX(amount) where category = 'Advertisement'
SQL: SELECT budget_id FROM budget WHERE category = 'Advertisement' ORDER BY amount DESC LIMIT 3
Database: student_club
Question: Calculate the total cost spent for Parking in the list.
Evidence: total cost spent for Parking refers to SUM(cost) where expense_description = 'Parking'
SQL: SELECT SUM(cost) FROM expense WHERE expense_description = 'Parking'
Database: student_club
Question: Mention the total expense used on 8/20/2019.
Evidence: total expense refers SUM(cost) where expense_date = '2019-08-20'
SQL: SELECT SUM(cost) FROM expense WHERE expense_date = '2019-08-20'
Database: student_club
Question: List out the full name and total cost that member id "rec4BLdZHS2Blfp4v" incurred?
Evidence: full name refers to first_name, last name
SQL: SELECT T1.first_name, T1.last_name, SUM(T2.cost) FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.member_id = 'rec4BLdZHS2Blfp4v'
Database: student_club
Question: State what kind of expenses that Sacha Harrison incurred?
Evidence: kind of expenses refers to expense_description; Sacha Harrison is the full name; full name refers to first_name, last_name;
SQL: SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison'
Database: student_club
Question: What kind of expenses incurred by members who have X-Large in size of tee shirt?
Evidence: kind of expenses refers to expense_description; t_shirt_size = 'X-Large'
SQL: SELECT T2.expense_description FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T1.t_shirt_size = 'X-Large'
Database: student_club
Question: Mention the zip code of member who incurred less than 50USD.
Evidence: incurred less than 50USD refers to cost < 50
SQL: SELECT T1.zip FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.cost < 50
Database: student_club
Question: State the name of major that Phillip Cullen has joined.
Evidence: name of major refers to major_name
SQL: SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.first_name = 'Phillip' AND T2.last_name = 'Cullen'
Database: student_club
Question: List out the position of members who joined major of Business.
Evidence: 'Business' is the major name
SQL: SELECT T2.position FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business'
Database: student_club
Question: How many members of Business have the Medium size of tee shirt?
Evidence: members of Economics refers to major_name = 'Business'; t_shirt_size = 'Medium'
SQL: SELECT COUNT(T2.member_id) FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T1.major_name = 'Business' AND T2.t_shirt_size = 'Medium'
Database: student_club
Question: List out the type of events which have remaining budget more than 30 USD.
Evidence: remaining budget more than 30 USD refers to remaining > 30
SQL: SELECT T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 30
Database: student_club
Question: Mention the category of events which were held at MU 215.
Evidence: held at MU 215 refers to location = 'MU 215'
SQL: SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215'
Database: student_club
Question: What is the category of event which was taken place in 2020-03-24T12:00:00?
Evidence: taken place in 2020-03-24T12:00:00 refers to event_date = '2020-03-24T12:00:00'
SQL: SELECT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.event_date = '2020-03-24T12:00:00'
Database: student_club
Question: State the name of major that Vice President has joined.
Evidence: name of major refers to major_name; 'Vice President' is position of Student Club
SQL: SELECT T1.major_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Vice President'
Database: student_club
Question: Calculate the percentage of members who are major Business in the list?
Evidence: DIVIDE(SUM(position = 'Member' and major_name = 'Business'), COUNT(member_id)) * 100
SQL: SELECT CAST(SUM(CASE WHEN T2.major_name = 'Business' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member'
Database: student_club
Question: State the category of events were held at MU 215.
Evidence: 'MU 215' is the location of event; 
SQL: SELECT DISTINCT T2.category FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215'
Database: student_club
Question: How many income are received with an amount of 50?
Evidence: amount of 50 refers to amount = 50
SQL: SELECT COUNT(income_id) FROM income WHERE amount = 50