CREATE TABLE endowment (school_id VARCHAR2, amount NUMBER)
CREATE TABLE school (school_name VARCHAR2, school_id VARCHAR2)
CREATE TABLE budget (school_id VARCHAR2, budgeted NUMBER)

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
SELECT "T2"."school_name" FROM "budget" "T1" JOIN "school" "T2" ON "T1"."school_id" = "T2"."school_id" JOIN "endowment" "T3" ON "T2"."school_id" = "T3"."school_id" GROUP BY "T2"."school_name" HAVING SUM("T1"."budgeted") > 100 OR SUM("T3"."amount") > 10