source,done,additional_tag,db_id,question,query,simple_question SPIDER_TRAIN,1,hidden_sum_total,sports_competition,Show total points of all players.,SELECT sum(Points) FROM player,Show sum points of all players. SPIDER_TRAIN,1,hidden_sum_total,game_1,Show total hours per week and number of games played for student David Shieber.,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = ""David"" AND T2.Lname = ""Shieber""",Show sum of hours per week and nubmer of games played for student David Shieber. SPIDER_TRAIN,1,hidden_sum_total,game_1,Show total hours per week and number of games played for students under 20.,"SELECT sum(hoursperweek) , sum(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.age < 20",Show sum of hours per week and number of games played for students under 20. SPIDER_DEV,1,hidden_sum_total,employee_hire_evaluation,What is total bonus given in all evaluations?,SELECT sum(bonus) FROM evaluation,What is sum of bonus given in all evaluations? error,1,hidden_sum_total,cinema,What is total number of show times per day for each cinema?,"SELECT T2.name , sum(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id",What is the sum of show times per day for each cinema? SPIDER_TRAIN,1,hidden_sum_total,scientist_1,Find the total hours of all projects.,SELECT sum(hours) FROM projects,Find the sum of hours of all projects. SPIDER_TRAIN,1,hidden_sum_total,college_1,Find the total credits of all classes offered by each department.,"SELECT sum(T1.crs_credit) , T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code",Find the sum of credits of all classes offered by each department. SPIDER_TRAIN,1,hidden_sum_total,dorm_1,Find the total capacity of all dorms.,SELECT sum(student_capacity) FROM dorm,Find the sum of capacity of all dorms. SPIDER_TRAIN,1,hidden_sum_total,document_management,Find the total access count of all documents in the most popular document type.,SELECT sum(access_count) FROM documents GROUP BY document_type_code ORDER BY count(*) DESC LIMIT 1,Find the sum of access count of all documents in the most popular document type. SPIDER_TRAIN,1,hidden_sum_total,insurance_policies,Find the total claimed amount of all the claims.,SELECT sum(Amount_Claimed) FROM Claims,Find the sum of claimed amount of all the claims. SPIDER_TRAIN,1,hidden_sum_total,apartment_rentals,"Show the total number of rooms of all apartments with facility code ""Gym"".","SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""","Show the sum of number of rooms of all apartments with facility code ""Gym""." SPIDER_TRAIN,1,hidden_sum_total,small_bank_1,Find the total savings balance of all accounts except the account with name ‘Brown’.,SELECT sum(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != 'Brown',Find the sum of savings balance of all accounts except the account with name ‘Brown’. SPIDER_TRAIN,1,hidden_sum_total,program_share,find the total percentage share of all channels owned by CCTV.,SELECT sum(Share_in_percent) FROM channel WHERE OWNER = 'CCTV',find the sum of percentage share of all channels owned by CCTV. SPIDER_DEV,1,hidden_sum_total,employee_hire_evaluation,Find the total amount of bonus given in all the evaluations.,SELECT sum(bonus) FROM evaluation,Find the sum of bonus given in all the evaluations. SPIDER_TRAIN,1,hidden_sum_total,college_1,Find the total number of hours have done for all students in each department.,"SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code",Find the sum number of hours have done for all students in each department. SPIDER_TRAIN,1,hidden_sum_total,entrepreneur,Give the total money requested by entrepreneurs who are taller than 1.85.,SELECT sum(T1.Money_Requested) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Height > 1.85,Give the sum money requested by entrepreneurs who are taller than 1.85. SPIDER_DEV,1,hidden_sum_total,wta_1,How many total tours were there for each ranking date?,"SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date",What the sum of tours were there for each ranking date? SPIDER_TRAIN,1,hidden_sum_total,college_2,How many total credits are offered by each department?,"SELECT sum(credits) , dept_name FROM course GROUP BY dept_name",Sum of credits are offered by each department? SPIDER_DEV,1,hidden_sum_total,wta_1,Find the total ranking points for each player and their first name.,"SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name",Find the sum of ranking points for each player and their first name. SPIDER_DEV,1,hidden_sum_total,wta_1,Find the total number of tours for each ranking date.,"SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date",Find the sum of tours for each ranking date. SPIDER_DEV,1,hidden_sum_total,world_1,Give the total surface area covered by countries in Asia or Europe.,"SELECT sum(SurfaceArea) FROM country WHERE Continent = ""Asia"" OR Continent = ""Europe""",Give the sum of surface area covered by countries in Asia or Europe. SPIDER_DEV,1,hidden_sum_total,world_1,Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .,"select sum(population) , avg(surfacearea) from country where continent = ""north america"" and surfacearea > 3000",Give the sum of population and average surface area corresponding to countries in North America that have a surface area greater than 3000 . SPIDER_TRAIN,1,hidden_sum_total,manufacturer,find the total market rate of the furnitures that have the top 2 market shares.,SELECT sum(market_rate) FROM furniture ORDER BY market_rate DESC LIMIT 2,find the sum of the market rate of the furnitures that have the top 2 market shares. SPIDER_TRAIN,1,hidden_sum_total,hr_1,What are total salaries and department id for each department that has more than 2 employees?,"SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2",What are sum of the salaries and department id for each department that has more than 2 employees? SPIDER_TRAIN_OTHERS,1,hidden_sum_total,yelp,"find the total checkins in Moroccan restaurant in "" Los Angeles ""","SELECT SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t1.city = ""Los Angeles"" AND t2.category_name = ""restaurant"" AND t3.category_name = ""Moroccan"";","find the sum of checkins in Moroccan restaurant in "" Los Angeles """ SPIDER_TRAIN_OTHERS,1,hidden_sum_total,yelp,"find the total checkins in Moroccan restaurant in "" Los Angeles "" on Friday","SELECT SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t1.city = ""Los Angeles"" AND t2.category_name = ""Moroccan"" AND t3.category_name = ""restaurant"" AND t4.day = ""Friday"";","find the sum of checkins in Moroccan restaurant in "" Los Angeles "" on Friday" SPIDER_TRAIN_OTHERS,1,hidden_sum_total,yelp,"find the total checkins in Moroccan restaurant in "" Los Angeles "" per day","SELECT t4.day , SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t1.city = ""Los Angeles"" AND t2.category_name = ""Moroccan"" AND t3.category_name = ""restaurant"" GROUP BY t4.day;","find the sum of checkins in Moroccan restaurant in "" Los Angeles "" per day" SPIDER_TRAIN_OTHERS,1,hidden_sum_total,yelp,find the total checkins in Italian Delis in each state on Sunday,"SELECT t1.state , SUM ( t4.count ) FROM category AS t2 JOIN business AS t1 ON t2.business_id = t1.business_id JOIN category AS t3 ON t3.business_id = t1.business_id JOIN checkin AS t4 ON t4.business_id = t1.business_id WHERE t2.category_name = ""Italian"" AND t3.category_name = ""Delis"" AND t4.day = ""Sunday"" GROUP BY t1.state;",find the sum of checkins in Italian Delis in each state on Sunday SPIDER_TRAIN_OTHERS,1,hidden_sum_total,yelp,"Find the total checkins in "" Brighton Heights "" neighbourhood","SELECT SUM ( t3.count ) FROM checkin AS t3 JOIN business AS t1 ON t3.business_id = t1.business_id JOIN neighbourhood AS t2 ON t2.business_id = t1.business_id WHERE t2.neighbourhood_name = ""Brighton Heights"";","Find the sum of checkins in "" Brighton Heights "" neighbourhood" SPIDER_TRAIN,1,hidden_sum_total,baseball_1,Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.,SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;,"Find the sum of checkins in "" Brighton Heights "" neighbourhood" SPIDER_TRAIN,1,hidden_sum_all,game_1,Show all game ids and the number of hours played.,"SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid",Show all game ids and the sum of hours played. SPIDER_TRAIN,1,hidden_sum_all,game_1,Show all student ids and the number of hours played.,"SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid",Show all student ids and sum of hours played. SPIDER_TRAIN,1,hidden_sum_all,game_1,Show all game names played by at least 1000 hours.,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000,Show all game names played by at least 1000 hours in sum. SPIDER_TRAIN,1,hidden_sum_all,department_store,Return the ids of all products that were ordered more than three times or supplied more than 80000.,SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000,Return the ids of all products that were ordered more than three times or supplied more than 80000 in sum. SPIDER_TRAIN,1,hidden_sum_number,game_1,What are the ids of all students along with how many sports and games did they play?,"SELECT StuID , count(*) , sum(gamesplayed) FROM Sportsinfo GROUP BY StuID",What are the ids of all students along with how many sports and what the sum of games did they play? SPIDER_TRAIN,1,hidden_sum_all,department_store,What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?,SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000,What are the ids of all products that were either ordered more than 3 times or have a sum of amount purchased above 80000? SPIDER_TRAIN,1,hidden_sum_all,game_1,What are the ids of all students and number of hours played?,"SELECT Stuid , sum(hours_played) FROM Plays_games GROUP BY Stuid",What are the ids of all students and sum of hours played? SPIDER_TRAIN_OTHERS,1,hidden_sum_all,geo,what is the area of all the states combined,SELECT SUM ( area ) FROM state;,what is the sum of the area of all the states combined SPIDER_TRAIN_OTHERS,1,hidden_sum_all,geo,what state has the smallest urban population,SELECT state_name FROM city GROUP BY state_name ORDER BY SUM ( population ) LIMIT 1;,what state has the smallest sum of urban population SPIDER_TRAIN,1,hidden_sum_all,game_1,What are the names of all the games that have been played for at least 1000 hours?,SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING sum(hours_played) >= 1000,What are the names of all the games that have been played in sum for at least 1000 hours? SPIDER_TRAIN_OTHERS,1,hidden_sum_all,geo,what is the combined area of all 50 states,SELECT SUM ( area ) FROM state;,what is the sum area of all 50 states SPIDER_TRAIN,1,hidden_sum_all,game_1,How many games are played for all students?,SELECT sum(gamesplayed) FROM Sportsinfo,How many games are played in the sum for all students? SPIDER_TRAIN,1,hidden_sum_all,game_1,How many games are played for all football games by students on scholarship?,"SELECT sum(gamesplayed) FROM Sportsinfo WHERE sportname = ""Football"" AND onscholarship = 'Y'",How many games are played in the sum for all football games by students on scholarship? SPIDER_TRAIN,1,hidden_sum_all,tracking_grants_for_research,What are the ids and details for all organizations that have grants of more than 6000 dollars?,"SELECT T2.organisation_id , T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING sum(T1.grant_amount) > 6000",What are the ids and details for all organizations that have sum of grants of more than 6000 dollars? SPIDER_TRAIN_OTHERS,1,hidden_sum_all,geo,what is the combined population of all 50 states,SELECT SUM ( population ) FROM state;,what is the sum of population of all 50 states SPIDER_TRAIN,1,hidden_sum_all,college_1,Which department offers the most credits all together?,SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1,Which department offers the most sum of credits? SPIDER_TRAIN,1,hidden_sum_all,csu_1,Which campus has the most degrees conferred in all times?,SELECT campus FROM degrees GROUP BY campus ORDER BY sum(degrees) DESC LIMIT 1,Which campus has the most sum of degrees conferred in all times? SPIDER_TRAIN,1,hidden_sum_all,college_1,Find the name of the department that offers the largest number of credits of all classes.,SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T1.dept_code = T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1,Find the name of the department that offers the largest number sum of credits of all classes. SPIDER_TRAIN,1,hidden_sum_all,game_1,What are the student IDs for everybody who worked for more than 10 hours per week on all sports?,SELECT StuID FROM Sportsinfo GROUP BY StuID HAVING sum(hoursperweek) > 10,What are the student IDs for everybody who worked in the sum for more than 10 hours per week on all sports? SPIDER_DEV,1,hidden_sum_number,world_1,"How many people live in Asia, and what is the largest GNP among them?","SELECT sum(Population) , max(GNP) FROM country WHERE Continent = ""Asia""","What the sum of people number living in Asia, and what is the largest GNP among them?" SPIDER_DEV,1,hidden_sum_number,world_1,How many people live in Gelderland district?,"SELECT sum(Population) FROM city WHERE District = ""Gelderland""",The sum of the number of people living in Gelderland district? SPIDER_DEV,1,hidden_sum_number,world_1,How many people live in countries that do not speak English?,"SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = ""English"")",What the sum of the number of people living in countries that do not speak English? SPIDER_TRAIN,1,hidden_sum_number,csu_1,how many degrees were conferred between 1998 and 2002?,"SELECT T1.campus , sum(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T2.year >= 1998 AND T2.year <= 2002 GROUP BY T1.campus",What are the sums of the degrees were conferred between 1998 and 2002? SPIDER_TRAIN,1,hidden_sum_number,csu_1,"How many undergraduates are there in ""San Jose State University"" in year 2004?","SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Jose State University""","The sum of the undergraduates were there in ""San Jose State University"" in year 2004?" SPIDER_TRAIN,1,hidden_sum_number,csu_1,How many undergraduates are there at San Jose State,"SELECT sum(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Jose State University""",What is the sum of the undergraduates number are there at San Jose State SPIDER_TRAIN,1,hidden_sum_number,csu_1,How many people graduated from San Francisco State University in 2004?,"SELECT sum(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = ""San Francisco State University""",The sum of people graduated from San Francisco State University in 2004? SPIDER_TRAIN,1,hidden_sum_number,inn_1,How many king beds are there?,SELECT sum(beds) FROM Rooms WHERE bedtype = 'King';,What the sum of the king beds are there? SPIDER_TRAIN,1,hidden_sum_number,loan_1,How many customers are there?,SELECT sum(no_of_customers) FROM bank,What is the sum of customers are there? SPIDER_TRAIN,1,hidden_sum_number,college_1,How many credits does the department offer?,"SELECT sum(crs_credit) , dept_code FROM course GROUP BY dept_code",What are the sums of credits does the department offer? SPIDER_TRAIN,1,hidden_sum_number,college_1,How many hours do the students spend studying in each department?,"SELECT sum(stu_hrs) , dept_code FROM student GROUP BY dept_code",The sum of the hours do the students spend studying in each department? SPIDER_TRAIN,1,hidden_sum_number,soccer_2,How many students are enrolled in college?,SELECT sum(enr) FROM College,How many students are enrolled in college? SPIDER_TRAIN_OTHERS,1,hidden_sum_number,geo,how many people live in the united states,SELECT SUM ( population ) FROM state;,What is the sum of people living in the united states SPIDER_TRAIN_OTHERS,1,hidden_sum_number,geo,how many square kilometers in the us,SELECT SUM ( area ) FROM state;,What is the sum of the square kilometers in the us SPIDER_DEV,1,hidden_sum_number,world_1,How much surface area do the countires in the Carribean cover together?,"SELECT sum(SurfaceArea) FROM country WHERE Region = ""Caribbean""",What is the sum of surface area that the countires in the Carribean cover together? error,1,hidden_sum_without_mentions,scholar,what keyphrase does Brian DeRenzi write about that gets most citations ? Return also the number of citations,"SELECT DISTINCT t1.keyphrasename , SUM ( t3.numcitedby ) FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t5 ON t4.authorid = t5.authorid WHERE t5.authorname = ""Brian DeRenzi"" GROUP BY t1.keyphrasename ORDER BY SUM ( t3.numcitedby ) DESC;",what keyphrase does Brian DeRenzi write about that gets most citations in the sum? Return also the the sum of citations SPIDER_TRAIN_OTHERS,1,hidden_sum_without_mentions,scholar,main topics of work by Brian DeRenzi with the number of citation,"SELECT DISTINCT t1.keyphrasename , SUM ( t3.numcitedby ) FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t5 ON t4.authorid = t5.authorid WHERE t5.authorname = ""Brian DeRenzi"" GROUP BY t1.keyphrasename ORDER BY SUM ( t3.numcitedby ) DESC;",main topics of work by Brian DeRenzi with the sum of citation SPIDER_TRAIN_OTHERS,1,hidden_sum_without_mentions,academic,"return me the number of citations of "" Making database systems usable "" in each year .","SELECT YEAR , SUM ( citation_num ) FROM publication WHERE title = ""Making database systems usable"" GROUP BY YEAR;","return me the sum of the number of citations of "" Making database systems usable "" in each year ." SPIDER_TRAIN,1,hidden_sum_total,insurance_fnol,Find the total and average amount of settlements.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements",Find the sum and average amount of settlements. SPIDER_TRAIN,1,hidden_sum_total,university_basketball,Find the total student enrollment for different affiliation type schools.,"SELECT sum(enrollment) , affiliation FROM university GROUP BY affiliation",Find the sum of the student enrollment for different affiliation type schools. SPIDER_TRAIN,1,hidden_sum_total,university_basketball,Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.,"SELECT sum(Enrollment) , affiliation FROM university WHERE founded > 1850 GROUP BY affiliation",Find the sum of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type. SPIDER_TRAIN,1,hidden_sum_total,apartment_rentals,"Find the total number of rooms in the apartments that have facility code ""Gym"".","SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = ""Gym""","Find the sum of rooms in the apartments that have facility code ""Gym""." SPIDER_TRAIN,1,hidden_sum_total,apartment_rentals,"Show the total number of rooms of the apartments in the building with short name ""Columbus Square"".","SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_short_name = ""Columbus Square""","Show the sum of rooms of the apartments in the building with short name ""Columbus Square""." SPIDER_TRAIN,1,hidden_sum_total,college_2,Find the total budgets of the Marketing or Finance department.,SELECT sum(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance',Find the sum budgets of the Marketing or Finance department. SPIDER_TRAIN,1,hidden_sum_total,college_2,Find the total credits of courses provided by different department.,"SELECT sum(credits) , dept_name FROM course GROUP BY dept_name",Find the sum credits of courses provided by different department. SPIDER_TRAIN,1,hidden_sum_total,insurance_and_eClaims,Find the total and average amount paid in claim headers.,"SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers",Find the sum and average amount paid in claim headers. SPIDER_TRAIN,1,hidden_sum_total,insurance_and_eClaims,Find the total amount claimed in the most recently created document.,SELECT sum(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1),Find the sum amount claimed in the most recently created document. SPIDER_TRAIN,1,hidden_sum_total,customers_and_invoices,What are total transaction amounts for each transaction type?,"SELECT transaction_type , sum(transaction_amount) FROM Financial_transactions GROUP BY transaction_type",What are sum transaction amounts for each transaction type? SPIDER_TRAIN,1,hidden_sum_total,small_bank_1,Find the total balance across checking accounts.,SELECT sum(balance) FROM checking,Find the sum balance across checking accounts. SPIDER_TRAIN,1,hidden_sum_total,small_bank_1,Find the total saving balance for each account name.,"SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name",Find the sum saving balance for each account name. SPIDER_TRAIN,1,hidden_sum_total,inn_1,Find the total number of king beds available.,SELECT sum(beds) FROM Rooms WHERE bedtype = 'King';,Find the sum number of king beds available. SPIDER_TRAIN,1,hidden_sum_total,loan_1,Find the total account balance of each customer from Utah or Texas.,SELECT sum(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas',Find the sum account balance of each customer from Utah or Texas. SPIDER_TRAIN,1,hidden_sum_total,loan_1,Find the total amount of loans offered by each bank branch.,"SELECT sum(amount) , T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname",Find the sum amount of loans offered by each bank branch. SPIDER_TRAIN,1,hidden_sum_total,loan_1,Find the total amount of loans provided by bank branches in the state of New York.,SELECT sum(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York',Find the sum amount of loans provided by bank branches in the state of New York. SPIDER_TRAIN_OTHERS,1,hidden_sum_total,academic,"return me the author in the "" University of Michigan "" in Databases area whose papers have more than 5000 total citations .","SELECT t1.name FROM domain_author AS t6 JOIN author AS t1 ON t6.aid = t1.aid JOIN DOMAIN AS t3 ON t3.did = t6.did JOIN organization AS t5 ON t5.oid = t1.oid JOIN writes AS t2 ON t2.aid = t1.aid JOIN publication AS t4 ON t2.pid = t4.pid WHERE t3.name = ""Databases"" AND t5.name = ""University of Michigan"" GROUP BY t1.name HAVING SUM ( t4.citation_num ) > 5000;","return me the author in the "" University of Michigan "" in Databases area whose papers have more than 5000 sum citations ." SPIDER_TRAIN,1,hidden_sum_total,restaurant_1,At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.,"SELECT Restaurant.ResName , sum(Visits_Restaurant.Spent) FROM Visits_Restaurant JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID GROUP BY Restaurant.ResID ORDER BY sum(Visits_Restaurant.Spent) ASC LIMIT 1;",At which restaurant did the students spend the least sum of time? List restaurant and the time students spent in the sum. SPIDER_TRAIN,1,hidden_sum_number,loan_1,Find the number of customers in the banks at New York City.,SELECT sum(no_of_customers) FROM bank WHERE city = 'New York City',Find the sum of the number of customers in the banks at New York City.