-- Database schema
| School : School_id [ TEXT ] primary_key , School_name [ TEXT ] , Location [ TEXT ] , Mascot [ TEXT ] , Enrollment [ INT ] , IHSAA_Class [ TEXT ] , IHSAA_Football_Class [ TEXT ] , County [ TEXT ] | budget : School_id [ INT ] primary_key budget.School_id = School.School_id , Year [ INT ] , Budgeted [ INT ] , total_budget_percent_budgeted [ INT ] , Invested [ INT ] , total_budget_percent_invested [ INT ] , Budget_invested_percent [ TEXT ] | endowment : endowment_id [ INT ] primary_key , School_id [ INT ] endowment.School_id = School.School_id , donator_name [ TEXT ] , amount [ INT ] |
-- -- Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.

SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id  =  T2.school_id JOIN endowment AS T3 ON T2.school_id  =  T3.school_id GROUP BY T2.school_name HAVING sum(T1.budgeted)  >  100 OR sum(T3.amount)  >  10;